-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Improve: Rewrite admin sidebar in React #17801
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…rewrite_admin_sidebar * 'develop' of github.com:RocketChat/Rocket.Chat: (30 commits) Readme: Update Raspberry Pi 2 to Pi 4 (#17031) [NEW] Accept variable `#{userdn}` on LDAP group filter (#16273) [FIX] Spotify embed link opens in same tab (#13637) [FIX] Markdown links not accepting URLs with parentheses (#13605) [NEW][API] Endpoint `settings.addCustomOAuth` to create Custom OAuth services (#14912) [IMPROVE] Make the implementation of custom code easier by having placeholders for a custom folder (#15106) [NEW] Skip Export Operations that haven't been updated in over a day (#16135) [NEW] Highlight matching words in message search results (#16166) [FIX] Set `x-content-type-options: nosniff` header (#16232) [FIX] Disabling `Json Web Tokens protection to file uploads` disables the File Upload protection entirely (#16262) Fixes some italian word (#14008) Bump version to 3.4.0-develop Bump version to 3.3.0 Bump version to 3.3.0-rc.4 Bump version to 3.3.0-rc.3 Bump version to 3.3.0-rc.2 Bump version to 3.3.0-rc.1 Bump version to 3.3.0-rc.0 [FIX] Slack importer Link handling (#17595) Bump version to 3.2.2 ...
…rewrite_admin_sidebar * 'develop' of github.com:RocketChat/Rocket.Chat: [FIX] When the message is too long declining to send as an attachment does not restore the content into the composer (#16332) [IMPROVE][Federation] Add support for _tcp and protocol DNS entries (#17818) Fix the update check not working (#17809) Add Apps-Engine to Engine Versions on History (#17810) [FIX] Link preview containing HTML encoded chars (#16512) [FIX] Email link "go to message" being incorrectly escaped (#17803) [FIX] Error when re-installing an App (#17789) Update Apps-Engine version (#17804) Fix invalid develop payload to release service (#17799)
client/admin/sidebar/AdminSidebar.js
Outdated
| const params = useMemo(() => ({ group: pathGroup }), [pathGroup]); | ||
| const path = useRoutePath(href, params); | ||
| const isActive = path === currentPath || false; | ||
| return useMemo(() => <Box |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not React.memo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ggazzo React.memo() returns a new component, which should be declared outside this component scope.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure I know , but why not wrap the component as a memoized component instead if this approach?
…ket.Chat into new/rewrite_admin_sidebar * 'new/rewrite_admin_sidebar' of github.com:RocketChat/Rocket.Chat: Always initialize CIRCLE_BRANCH env var on CI (#17874)
|
This pull request introduces 2 alerts when merging d94ade6 into 70498a4 - view on LGTM.com new alerts:
|
…into new/apps_rewrite_local * 'new/apps_rewrite' of github.com:RocketChat/Rocket.Chat: correct outdated dev start info [IMPROVE] Rewrite Federation Dashboard (#17900) [FIX] Duplicated placeholderaceholder (#17898) Wrap components with React.memo (#17899) Fix Review [FIX] Some Login Buttons disappear after refreshing OAuth Services (#17808) Change some components' location (#17893) [IMPROVE] Rewrite admin sidebar in React (#17801) Always initialize CIRCLE_BRANCH env var on CI (#17874)
…o threads-alpha * 'threads-alpha' of github.com:RocketChat/Rocket.Chat: (23 commits) [IMPROVE][Performance] Add new database indexes to improve data query performance (#17839) [FIX] Undesirable message updates after user saving profile (#17930) Remove unused accounts-js integration (#17921) [IMPROVE] Don't send emails to online users and remove delay when away/idle (#17907) [IMPROVE] Split NOTIFICATIONS_SCHEDULE_DELAY into three separate variables (#17669) correct outdated dev start info [IMPROVE] Rewrite Federation Dashboard (#17900) [FIX] Duplicated placeholderaceholder (#17898) Wrap components with React.memo (#17899) [FIX] Some Login Buttons disappear after refreshing OAuth Services (#17808) Change some components' location (#17893) [IMPROVE] Rewrite admin sidebar in React (#17801) Always initialize CIRCLE_BRANCH env var on CI (#17874) [NEW] Blocked Media Types setting (#17617) [FIX] Reorder hljs (#17854) [FIX] SAML LogoutRequest sending wrong NameID (#17860) [FIX] Apps room events losing data (#17827) [FIX] Importers progress sending too much update events to clients (#17857) [FIX] Omnichannel message link is broken in email notifications (#17843) [FIX] Logic for room type was inverted in edit panel (#17851) (#17853) ...
|
Looks like this rewrite does not take into account, that Rocket.Chat might run with a path prefix like eg. /rocketchat, then you can NOT use the administration anymore see #18105 Can someone please have a look and fix that. Ralf |
…tChat#18105) Closes: RocketChat#18105 Related: RocketChat#17801 Steps to reproduce: 1. Start server with ROOT_URL http://localhost:3000/rc 2. Navigate to /rc/admin Before: 3. Observe admin closes After: 3. Observe admin remains open Additional test cases: 1. Start server with ROOT_URL http://localhost:3000 2. Navigate to /rc/admin 3. Observer admin remains open
…tChat#18105) Closes: RocketChat#18105 Related: RocketChat#17801 Steps to reproduce: 1. Start server with ROOT_URL http://localhost:3000/rc 2. Navigate to /rc/admin Before: 3. Observe admin closes After: 3. Observe admin remains open Additional test cases: 1. Start server with ROOT_URL http://localhost:3000 2. Navigate to /rc/admin 3. Observer admin remains open
…tChat#18105) Closes: RocketChat#18105 Related: RocketChat#17801 Steps to reproduce: 1. Start server with ROOT_URL http://localhost:3000/rc 2. Navigate to /rc/admin Before: 3. Observe admin closes After: 3. Observe admin remains open Additional test cases: 1. Start server with ROOT_URL http://localhost:3000 2. Navigate to /admin 3. Observer admin remains open
No description provided.