Skip to content

PR1: Moved the routes array to RouteConfig.js#1715

Merged
evanugarte merged 54 commits intodevfrom
devTA_shortcut_key
Jul 5, 2025
Merged

PR1: Moved the routes array to RouteConfig.js#1715
evanugarte merged 54 commits intodevfrom
devTA_shortcut_key

Conversation

@Pikalot
Copy link
Copy Markdown
Collaborator

@Pikalot Pikalot commented Jun 19, 2025

  • Moved the routes array to RouteConfig.js -> RouteConfig.js is renamed into Routes.js.
  • PrivateRouting checks access permission.
  • Combined code with PR Add Keyboard Shortcut #1738

@Pikalot Pikalot mentioned this pull request Jun 19, 2025
@Pikalot Pikalot requested review from evanugarte and weslayer June 19, 2025 04:41
Pikalot added 20 commits June 21, 2025 12:58
2. Suggestions instantly display hardcoded pages recommendations.
3. Suggestions show user search results after a short delay for authorized users only and if there is any user matched
@Pikalot Pikalot force-pushed the devTA_shortcut_key branch from f157158 to 9cd8d54 Compare July 3, 2025 06:20
Pikalot and others added 5 commits July 3, 2025 11:11
Co-authored-by: Evan Ugarte <36345325+evanugarte@users.noreply.github.com>
Co-authored-by: Evan Ugarte <36345325+evanugarte@users.noreply.github.com>
…d CSS and renamed the class from modal to search-modal. Added a check for an empty suggestions list before handling search.
@evanugarte evanugarte merged commit 3390863 into dev Jul 5, 2025
4 checks passed
@evanugarte evanugarte deleted the devTA_shortcut_key branch July 5, 2025 05:30
aeiouny pushed a commit to aeiouny/Clark that referenced this pull request Jul 7, 2025
* Debug: remove dessert pages

* Fixed bug: user should land homepage after loggin in

* Update: Prevent unnecessary API calls — user data is now fetched only when the search input actually changes.

* chore: move routes array to its own file

* Removed search UI

* Re-commit for PR 1

* Added search UI

* update: Only 5 search suggestions are shown at once. Scroll to see more.

* Resolved conflict when merging with latest dev

* Resolved incoming conflict when merging with dev

* Removed search UI codes and improved permission check logic by implementing Lookup table

* Fixed irrelevant permission check

* Fixed lookup table to prevent excessive fetching

* Improved routes caching in SearchModal using useMemo

* 1. Removed scrollable dropdown codes. Just shows top 5 results.
2. Suggestions instantly display hardcoded pages recommendations.
3. Suggestions show user search results after a short delay for authorized users only and if there is any user matched

* removed e.key === 'K', only implement api fetch for users list when officer is Officer and Manager

* Fix: hide search suggestions when input is empty

* Refactor: removed duplicate route filtering and improved keyboard selection logic

* Update src/Components/ShortcutKeyModal/SearchModal.js

Co-authored-by: Evan Ugarte <36345325+evanugarte@users.noreply.github.com>

* Update src/Components/ShortcutKeyModal/SearchModal.js

Co-authored-by: Evan Ugarte <36345325+evanugarte@users.noreply.github.com>

* Committed changes as suggestions

* Undo the changes in Home.js

* Removed a space in line 1 of Home.js

* Spitted PR and moved searching debounce logic to the new PR

* Updated PERMISSION_LOOKUP_TABLE in Private Route -> no more functions mapping, cleaner code

* Removed the commented out section - old SpeakerPage component

* Removed unnecessary pageName prop

* Resolved conflicts due to auto correction

* Fixed typo: signedInRoutes

* Added more arrays to RouteConfig.js

* Changed RouteConfig.js to Routes.js and fixed linting errors

* Merged with Aidan's routes.js code

* Fixed casing: 'user manager' -> 'User Manager'.

* Update src/index.js

Co-authored-by: Evan Ugarte <36345325+evanugarte@users.noreply.github.com>

* Update src/Components/ShortcutKeyModal/SearchModal.js

Co-authored-by: Evan Ugarte <36345325+evanugarte@users.noreply.github.com>

* Used scoped CSS

* Moved suggestions rendering to a separate function. Switched to scoped CSS and renamed the class from modal to search-modal. Added a check for an empty suggestions list before handling search.

* Rerversed merging with PR2. Waiting for approval

---------

Co-authored-by: Evan Ugarte <36345325+evanugarte@users.noreply.github.com>
Co-authored-by: Aidan Spies <spiesaidan@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants