Skip to content

[Form] Pin clear selection above sorted visit options#11016

Open
Montekkundan wants to merge 1 commit into
aces:mainfrom
Montekkundan:montek/10987-select-element-pin-option
Open

[Form] Pin clear selection above sorted visit options#11016
Montekkundan wants to merge 1 commit into
aces:mainfrom
Montekkundan:montek/10987-select-element-pin-option

Conversation

@Montekkundan

Copy link
Copy Markdown
Contributor

Brief summary of changes

  • Adds an optional pinnedOption property to SelectElement when option sorting is enabled.
  • Adds the property to the SelectElement TypeScript declaration.
  • Pins the Clear Selection option above the sorted dashboard visit options.
  • Uses the stable __clear__ option key so translated labels do not affect the pinned option.
  • Keeps the remaining visit options alphabetically sorted.

Testing instructions

  • Configure a visit with a label beginning with a special character, such as (Screening).
  • Run target=statistics npm run compile.
  • Open http://localhost:8080/.
  • Open the filters for a dashboard chart.
  • Confirm -- Clear Selection -- appears above the special-character visit.
  • Confirm the remaining visits remain alphabetically sorted.
  • Select the special-character visit and confirm it can be cleared using -- Clear Selection --.

Link(s) to related issue(s)

@Montekkundan Montekkundan self-assigned this Jul 25, 2026
@github-actions github-actions Bot added Language: Javascript PR or issue that update Javascript code Module: statistics PR or issue related to statistics module labels Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Language: Javascript PR or issue that update Javascript code Module: statistics PR or issue related to statistics module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Form] SelectElement Pin Option To Top

1 participant