Adithya Refactor main dashboard to display real data#4538
Merged
one-community merged 6 commits intodevelopmentfrom Mar 22, 2026
Merged
Adithya Refactor main dashboard to display real data#4538one-community merged 6 commits intodevelopmentfrom
one-community merged 6 commits intodevelopmentfrom
Conversation
✅ Deploy Preview for highestgoodnetwork-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Description
Implements # Phase 2: Refactor the main dashboard component to display real-time data instead of static placeholders.
This PR replaces the hardcoded "DummyData" in the Project Dashboard with live data fetched directly from the database. It integrates the
bmProjectMembersandallTeamsRedux states to provide a real-time view of members currently working on specific buildings, resolving the "No Team" display issue caused by inconsistent backend data population.Related PRs (if any):
Main changes explained:
useEffectto re-fetch the project list if the Redux store is empty (e.g., on a hard refresh), preventing the "Project Not Found" crash.findTeamNameForUserhelper function to handle inconsistent User ID formats.DummyDataarray with dynamic mapping of thebmProjectMembersRedux state.How to test:
adithya_dashboard_refactor_realtime_data.npm installand start the application locally.Screenshots or videos of changes:
Previously:

My changes:
