Skip to content

Ghazi - 🔥 resources made available in the add task modal (main) - #3577

Open
Ghazi1212 wants to merge 8579 commits into
ghazi_fix_resources_dropdownfrom
main
Open

Ghazi - 🔥 resources made available in the add task modal (main)#3577
Ghazi1212 wants to merge 8579 commits into
ghazi_fix_resources_dropdownfrom
main

Conversation

@Ghazi1212

Copy link
Copy Markdown
Contributor

Description

Refactored TagsSearch component and AddTask modal to improve resources visibility and availability.

Related PRS (if any):

No related PRs

Main changes explained:

  • TagsSearch Component:

  • Prioritized members (from allMembers) as the main data source.

  • Shows full member list on input focus, filters when typing.

  • Retains Redux search fallback if members is unavailable.

  • Handles varied member object formats (_id, userID, firstName, etc.).

  • Simplified dropdown visibility logic and added developer debug info.

  • AddTaskModal Component:

  • Imported fetchAllMembers action.

  • Triggered fetchAllMembers when the modal opens using useEffect.

  • Ensures TagsSearch has access to full member list without relying on search.

How to test:

  1. check into current branch
  2. do npm install and ... to run this PR locally
  3. Clear site data/cache
  4. log as admin user
  5. go to view profile→ projects→Assign Project→ Click to access WBSs → Add new WBS → Add Task…
  6. verify that the resources are visible in a dropdown in the resources field and the task is successfully allotted to the user.
  7. verify this new feature works in dark mode

Screenshots or videos of changes:

Screen.Recording.2025-05-26.at.03.46.05.mov

Loading
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.