You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(group): #326 normalize panel slowMode and preserve permissions - #326
Editing a group panel’s name or other fields no longer drops its permissions or valid slow-mode settings.
Slow-mode settings are now consistently validated and saved. Empty or null values are treated as unset, extra fields are discarded, and invalid settings or slow mode on non-text panels are rejected.
Changing or clearing slow mode resets its counters; editing a panel’s name alone does not.
No actionable comments were generated in the recent review.
Walkthrough
The panel form now manages permission fields separately from general metadata. Client helpers prepare slow-mode values for submission. The group service normalizes slow-mode metadata during group and panel creation or modification.
Changes: Group panel updates
Layer / File(s)
Summary
Prepare panel values for form submission client/web/src/components/modals/GroupPanel/helper.ts, client/web/src/components/modals/GroupPanel/__tests__/helper.spec.ts
The helper initializes slowMode as undefined when absent and includes it in metadata only when it is valid for a text panel. Tests cover valid and invalid values, and preservation of unrelated fields.
Separate form state from permissions client/web/src/components/modals/GroupPanel/ModifyGroupPanel.tsx, client/web/src/components/modals/GroupPanel/__tests__/ModifyGroupPanel.spec.tsx
The modal renders an extracted form after panel data loads. The form excludes permissionMap and fallbackPermissions from general form state. Tests check permission retention and slow-mode submission.
Normalize slow-mode metadata on writes server/services/core/group/group.service.ts, server/test/integration/group/panelSlowMode.spec.ts
Group and panel writes store normalized metadata. Empty slow-mode values are removed, invalid values are rejected, and extra slow-mode fields are removed. Tests also check counter resets when slow-mode settings change.
msgbyte/tailchat#322 — The issue reports that saving panel permissions with slow mode unset fails. The changes cover that save path by excluding empty slow-mode values and preserving permission fields.
Merge Risk: Minimal · up to 09930
This change keeps panel permissions intact when other panel fields are edited, and it cleans up empty or invalid slow-mode values on both the client and the server. No concrete merge-blocking risk was found. The new tests cover the main cases.
Pre-merge checks: 4
Check name
Status
Explanation
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the fix area (group panel), the main behavior change (slowMode normalization), and the permission preservation fix. The changeset matches: slowMode normalization in group.service.ts an…
Full details: Title check
Explanation
The title names the fix area (group panel), the main behavior change (slowMode normalization), and the permission preservation fix. The changeset matches: slowMode normalization in group.service.ts and helper.ts, and permissions kept out of the form's metadata in ModifyGroupPanel. The title is specific and on topic, with the issue number as a minor extra detail.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.
moonrailgun
changed the title
fix(group): normalize panel slowMode and preserve permissions
fix(group): #326 normalize panel slowMode and preserve permissions
Nov 25, 2026
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
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 #322
Summary by CodeRabbit