Skip to content

Conversation

@rahu1ramesh
Copy link
Contributor

JIRA -> BN-19

This PR implements comprehensive navigation improvements for the Consultation Page, making it more user-friendly and aligned with standard Bahmni navigation patterns.

Key Changes

  • Refactored dashboard selection logic into a dedicated ConsultationPageService
  • Added breadcrumb navigation to show path hierarchy (Home → Clinical → Current Patient)
  • Implemented global action buttons for search, notifications, and user profile
  • Created utility functions to handle dashboard configuration and sidebar navigation items
  • Improved error handling for missing dashboard configurations

Technical Details

  • Added getDefaultDashboard() utility to find and prioritize dashboard configurations
  • Created getSidebarItems() to convert dashboard sections into sidebar navigation components
  • Used centralized path constants from app.ts for consistent navigation URLs
  • Enhanced the page with loading states for progressive content rendering

Testing

All components have corresponding unit tests that validate the added functionality.

@rahu1ramesh rahu1ramesh requested a review from mohan-13 May 9, 2025 10:06
@rahu1ramesh rahu1ramesh changed the title BN-19 | Add. HeaderWSideNav Component BN-19 | Add. HeaderWSideNav Component With Scroll On Click May 11, 2025
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
flex: 0 0 auto; // Don't grow, don't shrink, auto basis
}
// .header {
Copy link
Member

Choose a reason for hiding this comment

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

@rahu1ramesh Please remove unused class

@mohan-13 mohan-13 merged commit 4021ed4 into main May 12, 2025
2 checks passed
@mohan-13 mohan-13 deleted the BN-19-header branch May 12, 2025 02:25
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.

3 participants