Skip to content

Add availability filter to Note Type Maintenance#136

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/update-note-type-maintenance
Draft

Add availability filter to Note Type Maintenance#136
Copilot wants to merge 2 commits intomainfrom
copilot/update-note-type-maintenance

Conversation

Copy link
Contributor

Copilot AI commented Feb 6, 2026

Adds a dropdown filter to Note Type Maintenance allowing users to filter note types by availability in Work Orders, Shifts, or Timesheets sections.

Changes

  • View: Added filter select with "All" option and dynamically-named section options
  • Handler: Passes section names from getConfigProperty('*.sectionName') to template
  • Frontend: Filters note types client-side based on isAvailable* boolean flags, preserving panel state on re-render

Implementation

Filter values map to availability flags:

if (availabilityFilter === 'workOrders') return noteType.isAvailableWorkOrders
if (availabilityFilter === 'shifts') return noteType.isAvailableShifts
if (availabilityFilter === 'timesheets') return noteType.isAvailableTimesheets

Screenshots

All note types (default)
All

Filtered by Work Orders
Work Orders

Filtered by Shifts
Shifts

Original prompt

Update Note Type Maintenance to add an availability filter select. Include the options "All", "Work Orders", "Shifts", and "Timesheets". The displayed text should use the section names retrieved for the "getConfigProperty" function.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@deepsource-io
Copy link

deepsource-io bot commented Feb 6, 2026

Here's the code health analysis summary for commits 81bbc24..4728048. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource JavaScript LogoJavaScript❌ Failure
❗ 257 occurences introduced
🎯 1 occurence resolved
View Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

Co-authored-by: dangowans <19495149+dangowans@users.noreply.github.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 6, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
9.3% Duplication on New Code (required ≤ 3%)
C Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Copilot AI changed the title [WIP] Update Note Type Maintenance to add availability filter select Add availability filter to Note Type Maintenance Feb 6, 2026
Copilot AI requested a review from dangowans February 6, 2026 21:36
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.

2 participants