Skip to content

feat(CalculationsDialog): add keyboard support and improve UX [UX-159] - #1844

Open
arina-gutuboe wants to merge 14 commits into
masterfrom
feat/UX-159-calculations-dialog-keyboard-support
Open

feat(CalculationsDialog): add keyboard support and improve UX [UX-159]#1844
arina-gutuboe wants to merge 14 commits into
masterfrom
feat/UX-159-calculations-dialog-keyboard-support

Conversation

@arina-gutuboe

@arina-gutuboe arina-gutuboe commented Sep 7, 2026

Copy link
Copy Markdown

Implements UX-159

Description

Improves the Сalculations dialog so formulas can be built from the keyboard and the layout is easier to scan.


Key features

  • Single-click to add data elements and operators (double-click is no longer required).
  • Type operators (+, -, *, /, (, )) to append them after the selected item; numbers are still added by clicking.
  • Move the highlighted formula item left/right with the arrow keys.
  • Calculation name field moved to the top of the dialog.
  • Operators and actions combined into one toolbar above a taller formula area.
  • “Remove item” shown only when something is selected, with a delete icon.
  • Validation result applied to the whole formula area (status border + message at the bottom).
  • Modal width is fluid between a min and max based on window size.
  • Formula items show full labels; truncation and hover tooltips are removed.
  • Double-click no longer deletes items from the formula.

Deferred for future

  • adding drag and drop between data elements field and formula field
  • allow typing numbers

TODO

  • Storybook updated

Screenshots

Before/after:
Screenshot 2026-09-08 at 13 09 06
Screenshot 2026-09-08 at 13 09 16

Validation output:
Screenshot 2026-09-08 at 13 13 25

@sonarqubecloud

sonarqubecloud Bot commented Sep 8, 2026

Copy link
Copy Markdown

@arina-gutuboe
arina-gutuboe marked this pull request as ready for review September 8, 2026 11:16
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