Repository navigation
Say why an action key the task does not offer did nothing - #1093
Merged
Merged
Conversation
An action key (p, a, x, r, s, c, A) the target does not offer now sets the action bar's status — "retry: not available while running", or that the cursor is on a group, that none of the selection offers it, or that a chat holds the task — on the board and in the workspace, instead of doing nothing. E is hinted only where it works, the workspace on a step with text to edit, and pressed elsewhere says why. Closes #1059
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1059 (fourth in #1084's suggested order). Merges into
tui-audit.Action keys
p,a,x,r,s,c,A) now sends nothing and sets the action bar's status, on the board and in the task workspace. The status says:retry: not available while runningfor an action the task's state does not allow;select a task — it acts on one task, not a groupon a group row;none of the selected tasks offers itunder a selection;not available while chat #N holds the task — close the chat firston a locked task.pnames resume on a paused task.j/kkeep navigating. No other meaning shares the action keys on the surfaces that call the bar.Eedit+retrytaskActions.editRetryis set only by the task workspace, and only on a step with a prompt or command to edit. The footer and the pinned card hintEonly when it is set.Eis no longer advertised on the board, which has no editor, or on a gate or fan-out step.Esays why: there is nothing to edit (withrto retry as is), or the state does not allow retry.Recorded behaviour changed
Two tests encoded the old rule that an unoffered key stays silent:
TestActionKeyIsIgnoredWhenTheActionIsNotOfferedandTestEditRetryUnavailableOnAGate's comment. This issue reverses that rule on purpose. The tests now assert the explanations, and the cascade-retry live test assertsEexplains rather than staying quiet.Checks
go test ./internal/tuipasses andmage lintallis clean.