-
Notifications
You must be signed in to change notification settings - Fork 646
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
Fix: Enhance LocationMap with interactive features and tooltips #11142
base: develop
Are you sure you want to change the base?
Fix: Enhance LocationMap with interactive features and tooltips #11142
Conversation
WalkthroughThe changes update the facility location pages by introducing an Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant LS as LocationList
participant LM as LocationMap
participant LC as LocationMapContent
participant RF as ReactFlow
participant CN as CustomNode
U->>LS: Opens location editing sheet
LS->>LM: Passes isEditing (from isSheetOpen)
LM->>LC: Initializes editing mode based on isEditing
LC->>RF: Configures draggable state and fitView accordingly
LM->>CN: Utilizes viewport hook to update icons/tooltips
U->>LM: Toggles interactive mode via Controls
LM->>LC: Updates draggable state dynamically
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms (4)
🔇 Additional comments (11)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
✅ Deploy Preview for care-ohc ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Proposed Changes
Fixes Enhance LocationMap with interactive features and tooltips #11134
Add viewport-aware tooltips for location names
Implement draggable toggle and viewport preservation
Replace Folder icon with Hospital icon for facility nodes
Support editing state with viewport management
New interaction lock
Screenshot
Screen.Recording.2025-03-08.at.4.56.36.PM.mov
@ohcnetwork/care-fe-code-reviewers
Merge Checklist
Summary by CodeRabbit