Skip to content
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

Appointment Dashboard - Add notifications for new appointments #126

Merged
merged 17 commits into from
Sep 27, 2023

Conversation

5hraddha
Copy link
Collaborator

@5hraddha 5hraddha commented Sep 25, 2023

Description

As part of this PR, I've:

  • added color codes to status badges
image image image image image image
  • added feature such that no of new appointments are shown in All, Emergency and Normal tabs for the current logged in admin.
image
  • When an admin logs in, if there are any new appointment request, a toast is triggered to show the number of new appointments to work on.
  • The new appointments are highlighted on the dashboard to inform the admin. The highlight goes away when the admin clicks and views the appointment.
  • If an admin is already logged in and a new appointment request is made, the dashboard updates in realtime highlighting the new request and a toast notification is triggered to inform the admin.
  • Removed the separate API calls for each type of appointment. Now, we have only one API call and the rest is taken care by the code.
  • Added modified date column to the DB
  • Updated the code such that the appointments in the Scheduled and Cancelled Tabs are sorted by modified date column as it seems more logical.

Related Issue

Closes #120 and #115

Acceptance Criteria

  • No of new appointments should be shown in each tab for the current logged in admin.
  • Toast probably for any new Emergency appointments.
  • If the appointment is new, it should appear in bold in the dashboard to for users to differentiate visually.
  • Currently, there's no distinct color scheme to visually distinguish between various appointment tags. It would significantly enhance the user experience to assign unique colors to each tag category.

Type of Changes

Type
🐛 Bug fix
✨ New feature
🔨 Refactoring
💯 Add tests
🔗 Update dependencies
📜 Docs

Updates

Before

image

After

dashboard_notification.mp4

Note for release in production

Since we're creating a new column in DB, we have to manually setup modified_at values to created_at column initially, to keep the values proper. There on, the code will take care.

Copy link
Contributor

@mentalcaries mentalcaries left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work with this one Shradda!

@mentalcaries mentalcaries merged commit 3620b47 into main Sep 27, 2023
1 check passed
@mentalcaries mentalcaries deleted the feature/shraddha/dashboard branch September 27, 2023 15:45
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.

Appointment Dashboard - Enhancement Features
3 participants