Add showAuthorColors padOption to default authorship colors off#7510
Closed
JohnMcLear wants to merge 4 commits intodevelopfrom
Closed
Add showAuthorColors padOption to default authorship colors off#7510JohnMcLear wants to merge 4 commits intodevelopfrom
JohnMcLear wants to merge 4 commits intodevelopfrom
Conversation
Adds a new padOptions.showAuthorColors setting (default: true) that lets admins default authorship colors to off for new users. Users can still toggle colors on via the checkbox — their cookie preference always overrides the server default. - Settings.ts: add showAuthorColors to padOptions type and defaults - pad.ts: process showAuthorColors from padOptions, apply as default, ensure cookie preference (true or false) overrides server setting - settings.json.template + settings.json.docker: document the option - SocketIOMessage.ts: add to PadOption type Fixes #5563 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Review Summary by QodoAdd showAuthorColors padOption to default authorship colors off
WalkthroughsDescription• Add showAuthorColors padOption to control authorship colors default state • Implement priority system: user cookie preference overrides server setting • Preserve existing behavior with default value of true • Update type definitions and configuration templates with new option Diagramflowchart LR
A["Server padOptions<br/>showAuthorColors"] --> B["Initial Default<br/>for New Users"]
C["User Cookie<br/>Preference"] --> D["Final State<br/>Colors On/Off"]
B --> D
C -->|"Overrides"| D
E["noColors Setting<br/>Completely Disables"] -.->|"Unchanged"| D
File Changes1. src/node/utils/Settings.ts
|
Code Review by Qodo
|
- Fix pre-existing bug: noColors query param disabled colors but left the checkbox checked. Now the checkbox correctly reflects the state. - Add Playwright tests for: - Default checkbox state (checked) - noColors=true unchecks the checkbox - Toggling the checkbox works Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <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.
Summary
Adds
padOptions.showAuthorColors(default:true) so admins can default authorship colors to off for new users who haven't set a preference yet.Priority order:
padOptions.showAuthorColorssetting (applied when no cookie exists)true— preserves existing behavior)The existing
noColorsoption is unchanged — it completely disables the color toggle.showAuthorColors: falsejust changes the default checkbox state.Fixes
Closes #5563
Changes
Settings.ts: add to padOptions type and defaultspad.ts: process from padOptions, apply as initial default, cookie overridesSocketIOMessage.ts: add to PadOption typesettings.json.template+settings.json.docker: document the new optionTest plan
showAuthorColors: true): colors on by default (existing behavior)showAuthorColors: false: colors off for new users, checkbox uncheckedtrue→ persists across reloads🤖 Generated with Claude Code