Repository navigation
Save buttons turn grey once saved, active again after a change (#121) - #123
Merged
Merged
Conversation
Team change request R15. shell.SaveButton disables a form's Save button while the fields show what is saved and enables it when one differs; used on the Social media settings, Weekly update, Project details, User details and Repository name forms. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 #121 (team change request R15).
What's new
"no-hashtag" is not a hashtag) it stays red, because nothing was stored.shell.SaveButton(fields, on_click, label="Save"):Nonecount as the same, spaces around text don't matter, and neither does the order of a multiple choice;saved()after a successful save._project_formnow also returns its fields);docs/CHANGELOG.md: R15 entry, plus History lines for Save buttons turn grey once saved, active again after a change #121 and the PR of Social media: video upload and processing, weekly backup, disk warning #113.Tests
test_save_buttons.pycovers all five forms:🤖 Generated with Claude Code