Skip to content

Remove KYP from queue dropdown

Damanagari Sathwika requested to merge feat/remove-kyp-queue into develop

Overview

This MR removes "Know Your Patient Queue" from the Queue dropdown in Volunteer Actions to improve workflow clarity and avoid confusion, as it is not a queue-based feature.


What does this MR do and why?

This change removes the "Know Your Patient Queue" option from the Queue dropdown since "Know Your Patient" is a direct action and not part of the queue workflow. Previously, its presence in the dropdown created confusion for users, making them assume it behaves like other queues. This MR ensures a clear separation between queue-based tasks and standalone actions without affecting backend logic or routing.


Changes Made

  • Removed "Know Your Patient Queue" from Queue dropdown
  • Updated queue filtering logic in VolunteerActions component
  • Ensured no impact on other queue items
  • No backend or API changes

Technical Details

The queue list rendering logic was updated to exclude the "Know Your Patient" entry. This was handled via filtering instead of deleting core logic to avoid breaking dependencies and maintain flexibility for future changes.


Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 📝 Documentation update
  • 🎨 UI/UX improvement
  • ️ Refactor (no functional changes)
  • Performance improvement
  • 🧪 Test update
  • 🔧 Configuration change
  • 🚨 Security fix

Related Issues / References

Closes #<304>


Screenshots or Screen Recordings

Before After
Screenshot_from_2026-04-09_11-54-07 Shows "Know Your Patient Queue" in dropdown Screenshot_from_2026-04-09_12-32-27 Item removed from dropdown

How to Set Up and Validate Locally

  1. Checkout this branch
  2. Install dependencies bun install
  3. Run development server bun dev
  4. Navigate to Volunteer Actions page
  5. Open Queue dropdown
  6. Verify "Know Your Patient Queue" is not visible

Testing Done

  • Manual testing completed
  • Unit tests added/updated

Test Cases Covered:

Scenario Expected Result Status
Dropdown opens Shows only valid queues
KYP removed Not visible in dropdown
Other queues Unaffected

Code Quality Checklist

Code Standards

  • Code follows project conventions
  • No console.log() or debugger statements
  • No unused imports or variables
  • No duplicate code
  • i18n check passed
  • TypeScript types properly defined
  • ESLint and Prettier checks pass

React Best Practices

  • Components follow single responsibility
  • Hooks rules followed
  • State management appropriate
  • No unnecessary re-renders
  • Event handlers handled correctly

Component Patterns

  • Tailwind classes used correctly
  • Responsive design maintained
  • Accessibility attributes included

API & Data Fetching

  • No API changes required

Error Handling

  • No new error cases introduced

Documentation

  • Not required

Known Limitations / Technical Debt

None


Additional Notes

This is a UX improvement to ensure proper separation between queue-based workflows and standalone actions.


MR Acceptance Checklist

Edited by Damanagari Sathwika

Merge request reports

Loading