Add creator-owned pad settings defaults#7545
Add creator-owned pad settings defaults#7545JohnMcLear wants to merge 7 commits intoether:developfrom
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Review Summary by QodoAdd creator-owned pad settings with enforcement and My View defaults
WalkthroughsDescription• Add creator-owned pad settings with enforcement capability • Separate user preferences from pad defaults with override logic • Seed new pads from user's My View preferences • Implement chat suppression and settings UI controls Diagramflowchart LR
A["Pad Creator"] -->|"Set Pad Settings"| B["PadSettings Storage"]
B -->|"enforceSettings=true"| C["Enforce on All Users"]
B -->|"enforceSettings=false"| D["Allow User Overrides"]
E["User My View Prefs"] -->|"New Pad Creation"| F["Seed Pad Defaults"]
D -->|"Merge with User Prefs"| G["Effective Options"]
C -->|"Ignore User Prefs"| G
G -->|"Apply to UI"| H["Rendered Pad"]
File Changes1. src/node/db/Pad.ts
|
Code Review by Qodo
1.
|
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
| @@ -1005,6 +1050,8 @@ const handleClientReady = async (socket:any, message: ClientReadyMessage) => { | |||
|
|
|||
| // Warning: never ever send sessionInfo.padId to the client. If the client is read only you | |||
| // would open a security hole 1 swedish mile wide... | |||
| }; | ||
|
|
||
| const msg = { | ||
| const msg: any = { |
Summary
Testing