Feat: [PR 1/3] Core FAB Foundation#49
Feat: [PR 1/3] Core FAB Foundation#49Aaratrika-Shelly wants to merge 2 commits intoSrinjoyeeDey:mainfrom
Conversation
|
Hey @Aaratrika-Shelly , thanks again for working on the Quick Actions buttons! 🙌 I wanted to give a detailed suggestion to make the Quick Actions menu professional, visually appealing, and very user-friendly. Right now, the three big buttons beside the map feel a bit overwhelming and colorful. Here’s a more structured approach:
Use a Floating Action Button (FAB) instead of large standalone buttons beside the map. Place it in the bottom-right corner of the map. On click, it expands to reveal the three quick actions: Report Issue, Check Safe Route, Send Assets. This keeps the map clean and uncluttered while ensuring the actions are always accessible. Layout Example :[ Map Area ] On click (vertical stack): ┌───────────────┐
Radial expansion around the FAB can also be used for a modern, professional look.
Muted tones or single accent color: Avoid bright red, blue, green. Use subtle, professional colors. Subtle shadows or glows: Creates a “floating” effect without being distracting. Consistency: All buttons should follow the same style for a clean and professional design. Important Here’s how each feature should behave to make the buttons quick, intuitive, and professional: a. Hover Effects When the user hovers over a button (or taps on mobile), it should have a subtle visual change: Slight scale-up (e.g., 1.05x) to indicate it’s interactive. Slight shadow enhancement to make the button feel “lifted” from the map. Benefit: Users can immediately recognize which element is clickable, improving speed and confidence. b. Click Effects When a user clicks/taps a button: Add a ripple, fade, or brief color change to show the action has been registered. Can also include a tiny slide or bounce animation for feedback. Benefit: Gives users instant feedback, so they don’t have to guess whether the action worked. c. Animated Expansion/Collapse The FAB should expand smoothly to reveal all three actions, using: Vertical slide, fade-in, or gentle bounce. When collapsing, the buttons should slide/fade back smoothly. Benefit: Makes the menu feel polished and intuitive, while keeping the map uncluttered. d. Tooltips Small text descriptions appear on hover or long press on mobile. Example: “Report Issue → Report any safety hazard near your location.” Benefit: Helps new users understand the function without reading documentation. e. Badge Notifications Small badges can appear on buttons for dynamic updates. Example: a small number on “Send Assets” if there are pending items. Benefit: Users can quickly see urgent or new items at a glance. f. Expandable Mini Menu FAB should allow buttons to expand vertically or radially with smooth easing. Benefit: Efficient use of space and visually appealing for the user. [optional] Buttons can adapt based on zoom level, location, or nearby points of interest. Example: “Safe Route” highlights only when the user is near a road or path. Benefit: Speeds up user decisions and avoids showing irrelevant options. i. Dark/Light Mode Adaptation Buttons should automatically adjust colors, shadows, and hover effects depending on the theme. Benefit: Professional appearance across themes, better readability, and user comfort. j. Integration with Notifications Clicking actions can trigger toast messages, subtle animations, or alerts. Example: “Report Issue submitted successfully” slides in briefly at the bottom. Benefit: Immediate visual confirmation improves trust and usability. This layout and behavior would make the Quick Actions menu both visually appealing and extremely functional. feel free to reach out on further questions |
|
@Aaratrika-Shelly , Prefer to work on the above adjustments and right after that I will merge , please notify me about your actions , looking forward for your PR soon , Thank YOu |
|
Hi @SrinjoyeeDey, My plan would be: Remove the current "Quick Actions" card from the layout. Create a new FAB component that is positioned in the bottom-right corner of the map area. Implement the state management so that clicking the FAB toggles the visibility of the three action buttons. The action buttons will appear in a simple, clean vertical stack above the FAB when it's open. This PR would deliver the core functionality of the FAB. The more advanced features like custom animations, tooltips, and context-sensitive actions could then be tackled in future issues. |
|
Yes go ahead @Aaratrika-Shelly , but I would like you to modify the following [let me know if you can ] a.Tooltips Small text descriptions appear on hover or long press on mobile. Example: “Report Issue → Report any safety hazard near your location.” Benefit: Helps new users understand the function without reading documentation. FAB should allow buttons to expand vertically or radially with smooth easing. Benefit: Efficient use of space and visually appealing for the user c. Dark/Light Mode Adaptation Buttons should automatically adjust colors, shadows, and hover effects depending on the theme. Benefit: Professional appearance across themes, better readability, and user comfort. d. Integration with Notifications Clicking actions can trigger toast messages, subtle animations, or alerts. Example: “Report Issue submitted successfully” slides in briefly at the bottom. Benefit: Immediate visual confirmation improves trust and usability. |
|
Hi @SrinjoyeeDey PR #1: The Core FAB Foundation PR #2: Animations & User Feedback PR #3: System Integration & Notifications This phased approach ensures each part is well-tested and allows you to merge progress incrementally. Please let me know if this three-part plan works for you!" |
|
Ok go ahead @Aaratrika-Shelly , Hope to see your PR soon |
|
Hi @Aaratrika-Shelly , any updates ? Would like to know how much you have progressed |
594fcaf to
3e781f9
Compare
|
Hi @Aaratrika-Shelly , the layout is perfect but from the screenshot I could see the old dashboard . Recently multiple features have been updated, make sure to update your local repo with latest changes and then make your own changes and then commit or push the PR to prevent conflicts |
|
Also resolve the existing merge conflicts |
|
hi @SrinjoyeeDey I just noticed. I will do the needful and submit it soon. |
3e781f9 to
644fe22
Compare
|
Hii @Aaratrika-Shelly , any progress ? |
|
Hi @SrinjoyeeDey |
|
Hii @Aaratrika-Shelly , can you connect the buttons with the backend so that the buttons are functional or are you only comfortable with the frontend |
|
Hi @SrinjoyeeDey, |
|
okayy go ahead, but I would like you to split it into 2 sections @Aaratrika-Shelly - 1) UI and animations and tooltips 2) backend API calls to make the buttons fully functional, along with the toast notifications. , If its okay with you then you can update this current PR with animation and tooltips and I will merge it . Then raise a new issue to implement API calls and I will assign you, make sure to update your current repo everytime |
|
Hi @SrinjoyeeDey, |
|
Okay @Aaratrika-Shelly , Then I guess you have to raise other two issues and then submit the PR . You can raise them and explain in details exactly what improvements would you like to implement. Also for the animation and tooltips I would like to have some unique hover effects and some extra features added to it . Happy to see you contributing. I will merge it . |
|
Hii @Aaratrika-Shelly , I will merge this PR but I just wanted to highlight something before merging — recently, the dashboard has been updated . If I merge your PR right now, it might overwrite those recent changes since your local repo seems to be behind the latest version. can you please update your local repo and then make the changes so that I can merge this PR |
644fe22 to
0955037
Compare
|
"Hi @SrinjoyeeDey, |
|
Heyy @Aaratrika-Shelly , your PR shows the old animation on the dashboard cards and also Home route is not redirecting to the landing page , if I merge yours it might overlap . Please make sure it is up to date |
0955037 to
717aecc
Compare
|
Hi @SrinjoyeeDey, |
|
Hey @Aaratrika-Shelly , thanks for your contribution earlier! |
|
Check that the dashboard cards have a glassmorphic effect, in your PR the dashboard cards animation is not visible |
717aecc to
97f4916
Compare
|
Hi @SrinjoyeeDey, The PR is 100% up-to-date and safe to merge. Thank you for your guidance! |
|
Hi @SrinjoyeeDey, |




Description (PR 1 of 3)
This is the first of three planned pull requests to implement the new Floating Action Button (FAB) feature, as discussed in the comments.
This foundational PR includes:
EmergencyFab.tsxcomponent.isOpen).apiimport and function from the Dashboard for better code health.This PR intentionally does not include animations or tooltips, as those will be handled in PR #2.
Related Issue
Screenshots
Desktop View:


Mobile View (Expanded Menu):

