Disable toolbar buttons when not relevant
- Dominant language
- Haskell
- Stars
- 1.3k
- Forks
- 201
- PR merge metrics
- No merged PRs in 30d
Description
The new toolbar is useful, but sometimes misleading. If there's no selection, then Cut and Copy should be disabled. If Undo or Redo are not possible (because there's no history in that direction), then they should be disabled, as well. In general, if there were an easy way to enable or disable toolbar buttons, then there are probably a lot of checks we could add to guard them.
Contributor guide
Research direction
Start by locating the new toolbar implementation and its button-state logic. Trace how selection and undo/redo history are represented, then verify that Cut and Copy reflect selection state and Undo and Redo reflect available history; done means irrelevant buttons are disabled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100