google / google/codeworld

Disable toolbar buttons when not relevant

Open
#910 0 comments 0 reactions 0 assignees View on GitHub
enhancement
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.