Skip to content

refactor: Revamp admin settings — card-based layout with section navigation#41339

Draft
rodrigok wants to merge 1 commit into
developfrom
feat/admin-accounts-registration-revamp
Draft

refactor: Revamp admin settings — card-based layout with section navigation#41339
rodrigok wants to merge 1 commit into
developfrom
feat/admin-accounts-registration-revamp

Conversation

@rodrigok

@rodrigok rodrigok commented Jul 13, 2026

Copy link
Copy Markdown
Member

Proposed changes

Refreshes the look of every admin settings group by refactoring the shared settings-rendering template components — not by reorganizing settings. All existing groups, sections, names, and descriptions are preserved; this is a presentational refactor that applies uniformly across the admin.

Based on the design mockup (Accounts page), generalized to the whole settings template.

What changed

  • SettingsSection — renders each section as a titled card (bordered, padded, surface background) instead of an accordion item. The title stays an <h2> so existing selectors keep working; data-qa-section is preserved.
  • SettingsGroupPage — replaces the single <Accordion> with a two-column layout: stacked section cards on the left and an in-page "Settings in {group}" section navigation on the right that scroll-jumps to each section.
  • GenericGroupPage / OAuthGroupPage — compute stable section anchor ids and the nav item list; a shared getSettingsSectionAnchorId helper keeps the anchors and nav in sync.
  • Skeletons updated to match the card layout (last Accordion usage removed).
  • One new i18n key: Settings_in_group ("Settings in {{group}}") for the nav header.

Because the change lives in the generic renderer, it applies to all groups automatically (Accounts, Message, Layout, OAuth, LDAP, Assets, Omnichannel, …). No settings were moved, renamed, or re-described.

Behavior notes

  • Sections are now always expanded (cards) rather than collapsible; the right-side nav replaces expand/collapse as the way to move between sections.
  • Save / Cancel / per-section Reset and the editable-settings dirty tracking are unchanged.
  • Dropped an obsolete accordion-expand click from the Layout settings e2e (administration-settings.spec.ts), since the "Custom CSS" section is always visible now.

Verification

  • tsc --noEmit (meteor app): 0 errors.
  • ESLint: clean on all changed files.
  • Reviewed e2e selectors that touched settings sections (data-qa-section h2 lookups, omnichannel group() clicks) — still valid.
  • ⚠️ Visual/interaction QA in a running workspace is recommended before merge.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Redesigned admin settings pages with card-based sections.
    • Added in-page navigation for quickly moving between settings sections.
    • Added smooth scrolling and active-section highlighting.
    • Preserved existing setting groups, names, descriptions, and controls.
  • Bug Fixes

    • Improved settings page loading placeholders to match the updated layout.

@rodrigok rodrigok requested a review from a team as a code owner July 13, 2026 14:39
@changeset-bot

changeset-bot Bot commented Jul 13, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4af39f0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@rocket.chat/meteor Minor
@rocket.chat/core-typings Minor
@rocket.chat/rest-typings Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dionisio-bot

dionisio-bot Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Looks like this PR is not ready to merge, because of the following issues:

  • This PR is missing the 'stat: QA assured' label
  • This PR is missing the required milestone or project

Please fix the issues and try again

If you have any trouble, please check the PR guidelines

@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

Admin settings sections now render as cards instead of accordions, with optional translated side navigation that scrolls to stable section anchors. Generic and OAuth groups provide navigation data, skeletons match the new layout, and the related end-to-end test no longer expands an accordion.

Changes

Admin settings layout

Layer / File(s) Summary
Section layout and navigation
apps/meteor/client/views/admin/settings/SettingsGroupPage/*, apps/meteor/client/views/admin/settings/SettingsSection/*, packages/i18n/src/locales/en.i18n.json
Replaces accordion-based sections with card-style sections and adds translated in-page navigation with active-state tracking and smooth scrolling.
Group navigation integration
apps/meteor/client/views/admin/settings/groups/GenericGroupPage.tsx, apps/meteor/client/views/admin/settings/groups/OAuthGroupPage/*, apps/meteor/client/views/admin/settings/groups/getSettingsSectionAnchorId.ts
Generates translated navigation items and stable section IDs for generic and OAuth settings groups.
Loading and validation updates
apps/meteor/client/views/admin/settings/SettingsGroupPage/SettingsGroupPageSkeleton.tsx, apps/meteor/client/views/admin/settings/SettingsSection/SettingsSectionSkeleton.tsx, apps/meteor/tests/e2e/administration-settings.spec.ts, .changeset/admin-settings-card-layout.md
Updates skeleton layouts, removes the accordion-opening test step, and records a minor package release.
Estimated code review effort: 3 (Moderate) ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Admin
  participant SettingsGroupPage
  participant SettingsSectionNav
  participant SettingsSection
  Admin->>SettingsGroupPage: open settings group
  SettingsGroupPage->>SettingsSectionNav: render section links
  SettingsSectionNav->>SettingsSection: scroll to selected anchor
  SettingsSection->>Admin: display selected settings card
Loading

Possibly related PRs

Suggested labels: type: feature

Suggested reviewers: abhinavkrin, julia jforesti, tassoevan

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: a refactor of admin settings to a card-based layout with section navigation.

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot added the type: feature Pull requests that introduces new feature label Jul 13, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (2)
apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/RegistrationAdvancedSection.tsx (1)

9-9: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Remove the code comment per coding guidelines.

The comment on line 9 violates the project guideline: "Avoid code comments in the implementation" for **/*.{ts,tsx,js} files. The HIGHLIGHTED_SETTINGS constant name is sufficiently descriptive.

♻️ Proposed fix
-// Settings already surfaced by the redesigned cards in RegistrationSignupSection.
 const HIGHLIGHTED_SETTINGS = [
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/RegistrationAdvancedSection.tsx`
at line 9, Remove the comment above HIGHLIGHTED_SETTINGS in
RegistrationAdvancedSection.tsx, leaving the descriptive constant and
surrounding implementation unchanged.

Source: Coding guidelines

apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/useEditableSettingField.ts (1)

8-12: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Remove the JSDoc comment block per the project's coding guideline.

The guideline for **/*.{ts,tsx,js} files states: "Avoid code comments in the implementation." The JSDoc block on lines 8–12 should be removed to comply.

♻️ Proposed fix
-/**
- * Reads and writes a single setting through the editable-settings (draft) store,
- * mirroring the dispatch logic of the generic `<Setting>` component so that the
- * redesigned fields persist through the standard save/cancel pipeline.
- */
 export const useEditableSettingField = (settingId: string) => {
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/useEditableSettingField.ts`
around lines 8 - 12, Remove the JSDoc comment block immediately preceding the
editable setting hook implementation, leaving the surrounding code unchanged.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/AccountsSettingsNav.tsx`:
- Around line 41-59: Update the anchor-rendering Box in the items map to add
aria-current, setting it to 'true' when isActive and leaving it undefined
otherwise.

---

Nitpick comments:
In
`@apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/RegistrationAdvancedSection.tsx`:
- Line 9: Remove the comment above HIGHLIGHTED_SETTINGS in
RegistrationAdvancedSection.tsx, leaving the descriptive constant and
surrounding implementation unchanged.

In
`@apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/useEditableSettingField.ts`:
- Around line 8-12: Remove the JSDoc comment block immediately preceding the
editable setting hook implementation, leaving the surrounding code unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0ab44893-6239-4dc1-ab14-550a9727c8de

📥 Commits

Reviewing files that changed from the base of the PR and between edbaeef and 0970b1e.

📒 Files selected for processing (11)
  • .changeset/admin-accounts-registration-revamp.md
  • apps/meteor/client/views/admin/settings/SettingsGroupSelector/SettingsGroupSelector.tsx
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/AccountsGroupPage.tsx
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/AccountsSettingsNav.tsx
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/RegistrationAdvancedSection.tsx
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/RegistrationSignupSection.tsx
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/SignupCard.tsx
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/SignupToggleField.tsx
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/index.ts
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/useEditableSettingField.ts
  • packages/i18n/src/locales/en.i18n.json
📜 Review details
⏰ Context from checks skipped due to timeout. (5)
  • GitHub Check: 📦 Build Packages
  • GitHub Check: Hacktron Security Check
  • GitHub Check: cubic · AI code reviewer
  • GitHub Check: CodeQL-Build
  • GitHub Check: CodeQL-Build
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{ts,tsx,js}

📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)

**/*.{ts,tsx,js}: Write concise, technical TypeScript/JavaScript with accurate typing in Playwright tests
Avoid code comments in the implementation

Files:

  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/index.ts
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/SignupCard.tsx
  • apps/meteor/client/views/admin/settings/SettingsGroupSelector/SettingsGroupSelector.tsx
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/SignupToggleField.tsx
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/useEditableSettingField.ts
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/RegistrationAdvancedSection.tsx
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/AccountsSettingsNav.tsx
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/AccountsGroupPage.tsx
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/RegistrationSignupSection.tsx
🧠 Learnings (7)
📚 Learning: 2026-02-10T16:32:42.586Z
Learnt from: tassoevan
Repo: RocketChat/Rocket.Chat PR: 38528
File: apps/meteor/client/startup/roles.ts:14-14
Timestamp: 2026-02-10T16:32:42.586Z
Learning: In Rocket.Chat's Meteor client code, DDP streams use EJSON and Date fields arrive as Date objects; do not manually construct new Date() in stream handlers (for example, in sdk.stream()). Only REST API responses return plain JSON where dates are strings, so implement explicit conversion there if needed. Apply this guidance to all TypeScript files under apps/meteor/client to ensure consistent date handling in DDP streams and REST responses.

Applied to files:

  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/index.ts
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/useEditableSettingField.ts
📚 Learning: 2026-05-11T20:30:35.265Z
Learnt from: tassoevan
Repo: RocketChat/Rocket.Chat PR: 40480
File: apps/meteor/client/meteor/startup/accounts.ts:59-61
Timestamp: 2026-05-11T20:30:35.265Z
Learning: In Rocket.Chat’s Meteor client code, when calling `dispatchToastMessage` with `{ type: 'error' }`, pass the raw caught error object as `message` without manual normalization. `dispatchToastMessage` is designed to accept `message: unknown` for error toasts, so avoid converting errors to strings (e.g., `String(error)`) or extracting `error.message` before passing them.

Applied to files:

  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/index.ts
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/useEditableSettingField.ts
📚 Learning: 2026-02-26T19:25:44.063Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 38778
File: packages/ui-voip/src/providers/useMediaSession.ts:192-192
Timestamp: 2026-02-26T19:25:44.063Z
Learning: In the Rocket.Chat repository, do not reference Biome lint rules in code review feedback. Biome is not used even if biome.json exists; only reference Biome rules if there is explicit, project-wide usage documented. For TypeScript files, review lint implications without Biome guidance unless the project enables Biome rules.

Applied to files:

  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/index.ts
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/useEditableSettingField.ts
📚 Learning: 2026-02-26T19:25:44.063Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 38778
File: packages/ui-voip/src/providers/useMediaSession.ts:192-192
Timestamp: 2026-02-26T19:25:44.063Z
Learning: In this repository (RocketChat/Rocket.Chat), Biome lint rules are not used even if a biome.json exists. When reviewing TypeScript files (e.g., packages/ui-voip/src/providers/useMediaSession.ts), ensure lint suggestions do not reference Biome-specific rules. Rely on general ESLint/TypeScript lint rules and project conventions instead.

Applied to files:

  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/index.ts
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/useEditableSettingField.ts
📚 Learning: 2026-05-06T12:21:44.083Z
Learnt from: juliajforesti
Repo: RocketChat/Rocket.Chat PR: 40256
File: apps/meteor/client/components/CreateDiscussion/CreateDiscussion.tsx:121-149
Timestamp: 2026-05-06T12:21:44.083Z
Learning: Field wrappers in rocket.chat/fuselage-forms (Field, FieldLabel, FieldRow, FieldError, FieldHint) auto-create htmlFor/id associations, aria-describedby, and role="alert" for errors. Do not manually set htmlFor, id, aria-describedby, or role attributes when using these wrappers. This automatic wiring does not apply to plain rocket.chat/fuselage components, which require explicit ID wiring per the accessibility docs. In code reviews, prefer using fuselage-forms wrappers for form fields and verify there is no unnecessary manual ID/aria wiring in files that use these wrappers. If a component uses plain fuselage components, ensure proper id wiring as per docs.

Applied to files:

  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/index.ts
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/SignupCard.tsx
  • apps/meteor/client/views/admin/settings/SettingsGroupSelector/SettingsGroupSelector.tsx
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/SignupToggleField.tsx
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/useEditableSettingField.ts
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/RegistrationAdvancedSection.tsx
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/AccountsSettingsNav.tsx
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/AccountsGroupPage.tsx
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/RegistrationSignupSection.tsx
📚 Learning: 2026-03-27T14:52:56.865Z
Learnt from: dougfabris
Repo: RocketChat/Rocket.Chat PR: 39892
File: apps/meteor/client/views/room/contextualBar/Threads/Thread.tsx:150-155
Timestamp: 2026-03-27T14:52:56.865Z
Learning: In Rocket.Chat, there are two different `ModalBackdrop` components with different prop APIs. During review, confirm the import source: (1) `rocket.chat/fuselage` `ModalBackdrop` uses `ModalBackdropProps` based on `BoxProps` (so it supports `onClick` and other Box/DOM props) and does not have an `onDismiss` prop; (2) `rocket.chat/ui-client` `ModalBackdrop` uses a narrower props interface like `{ children?: ReactNode; onDismiss?: () => void }` and handles Escape keypress and outside mouse-up, and it does not forward arbitrary DOM props such as `onClick`. Flag mismatched props (e.g., `onDismiss` passed to the fuselage component or `onClick` passed to the ui-client component) and ensure the usage matches the correct component being imported.

Applied to files:

  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/SignupCard.tsx
  • apps/meteor/client/views/admin/settings/SettingsGroupSelector/SettingsGroupSelector.tsx
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/SignupToggleField.tsx
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/RegistrationAdvancedSection.tsx
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/AccountsSettingsNav.tsx
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/AccountsGroupPage.tsx
  • apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/RegistrationSignupSection.tsx
📚 Learning: 2026-03-16T21:50:37.589Z
Learnt from: amitb0ra
Repo: RocketChat/Rocket.Chat PR: 39676
File: .changeset/migrate-users-register-openapi.md:3-3
Timestamp: 2026-03-16T21:50:37.589Z
Learning: For changes related to OpenAPI migrations in Rocket.Chat/OpenAPI, when removing endpoint types and validators from rocket.chat/rest-typings (e.g., UserRegisterParamsPOST, /v1/users.register) document this as a minor changeset (not breaking) per RocketChat/Rocket.Chat-Open-API#150 Rule 7. Note that the endpoint type is re-exposed via a module augmentation .d.ts in the consuming package (e.g., packages/web-ui-registration/src/users-register.d.ts). In reviews, ensure the changeset clearly states: this is a non-breaking change, the major version should not be bumped, and the changeset reflects a minor version bump. Do not treat this as a breaking change during OpenAPI migrations.

Applied to files:

  • .changeset/admin-accounts-registration-revamp.md
🔇 Additional comments (8)
apps/meteor/client/views/admin/settings/SettingsGroupSelector/SettingsGroupSelector.tsx (1)

5-5: LGTM!

Also applies to: 39-41

apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/index.ts (1)

1-1: LGTM!

.changeset/admin-accounts-registration-revamp.md (1)

1-6: LGTM!

apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/AccountsGroupPage.tsx (1)

9-9: Check the REGISTRATION_SECTION_ID/translation-key contract before merge.

apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/SignupCard.tsx (1)

1-19: LGTM!

apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/RegistrationSignupSection.tsx (1)

42-42: Verify whether manual htmlFor/id attributes are needed with fuselage-forms Field wrappers.

Same concern as SignupToggleField.tsx: FieldLabel and Select/TextInput manually set htmlFor/id to the setting ID. If the fuselage-forms Field/FieldLabel wrappers auto-create these associations, the manual attributes are redundant and could conflict with auto-generated IDs. Please verify and remove if unnecessary.

Based on learnings, Field wrappers in rocket.chat/fuselage-forms auto-create htmlFor/id associations; do not manually set htmlFor, id, aria-describedby, or role attributes when using these wrappers.

Also applies to: 48-48, 68-68, 74-74

Source: Learnings

packages/i18n/src/locales/en.i18n.json (1)

427-447: LGTM!

apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/SignupToggleField.tsx (1)

29-29: Check the Field wrapper’s ID wiring — keep the explicit htmlFor/id pair unless this specific Field composition auto-generates matching IDs.

Comment on lines +41 to +59
{items.map(({ id, label }) => {
const isActive = id === activeId;
return (
<Box
key={id}
is='a'
href={`#${id}`}
onClick={(event: MouseEvent<HTMLAnchorElement>) => handleClick(event, id)}
pb={8}
pis={12}
mbe={4}
fontScale='p2'
color={isActive ? 'info' : 'hint'}
fontWeight={isActive ? 700 : 400}
style={{ cursor: 'pointer', textDecoration: 'none' }}
>
{label}
</Box>
);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win

Add aria-current to the active nav link.

The active link is visually distinguished by color='info' and fontWeight={700}, but screen reader users have no programmatic indication of which section is active. Add aria-current={isActive ? 'true' : undefined} to the anchor element.

♿ Proposed fix
 					fontScale='p2'
 					color={isActive ? 'info' : 'hint'}
 					fontWeight={isActive ? 700 : 400}
+					aria-current={isActive ? 'true' : undefined}
 					style={{ cursor: 'pointer', textDecoration: 'none' }}
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
{items.map(({ id, label }) => {
const isActive = id === activeId;
return (
<Box
key={id}
is='a'
href={`#${id}`}
onClick={(event: MouseEvent<HTMLAnchorElement>) => handleClick(event, id)}
pb={8}
pis={12}
mbe={4}
fontScale='p2'
color={isActive ? 'info' : 'hint'}
fontWeight={isActive ? 700 : 400}
style={{ cursor: 'pointer', textDecoration: 'none' }}
>
{label}
</Box>
);
{items.map(({ id, label }) => {
const isActive = id === activeId;
return (
<Box
key={id}
is='a'
href={`#${id}`}
onClick={(event: MouseEvent<HTMLAnchorElement>) => handleClick(event, id)}
pb={8}
pis={12}
mbe={4}
fontScale='p2'
color={isActive ? 'info' : 'hint'}
fontWeight={isActive ? 700 : 400}
aria-current={isActive ? 'true' : undefined}
style={{ cursor: 'pointer', textDecoration: 'none' }}
>
{label}
</Box>
);
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/AccountsSettingsNav.tsx`
around lines 41 - 59, Update the anchor-rendering Box in the items map to add
aria-current, setting it to 'true' when isActive and leaving it undefined
otherwise.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3 issues found across 11 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/AccountsSettingsNav.tsx">

<violation number="1" location="apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/AccountsSettingsNav.tsx:21">
P3: Section navigation does not update the URL fragment, so a selected Accounts section cannot be bookmarked/shared and browser history has no section state. Preserve/update the hash while retaining smooth scrolling.</violation>

<violation number="2" location="apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/AccountsSettingsNav.tsx:54">
P3: The current section is conveyed only by color/weight. Expose the active navigation item with `aria-current="location"` so assistive technology receives the same state.</violation>
</file>

<file name="apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/RegistrationAdvancedSection.tsx">

<violation number="1" location="apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/RegistrationAdvancedSection.tsx:12">
P1: Admins can no longer rotate or replace a Secret URL: this exclusion removes the only generic setting editor, while the new preview input is read-only. Keep this setting in Advanced options or add an editable secret-value control so an exposed registration URL can be revoked.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

// Settings already surfaced by the redesigned cards in RegistrationSignupSection.
const HIGHLIGHTED_SETTINGS = [
'Accounts_RegistrationForm',
'Accounts_RegistrationForm_SecretURL',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1: Admins can no longer rotate or replace a Secret URL: this exclusion removes the only generic setting editor, while the new preview input is read-only. Keep this setting in Advanced options or add an editable secret-value control so an exposed registration URL can be revoked.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/RegistrationAdvancedSection.tsx, line 12:

<comment>Admins can no longer rotate or replace a Secret URL: this exclusion removes the only generic setting editor, while the new preview input is read-only. Keep this setting in Advanced options or add an editable secret-value control so an exposed registration URL can be revoked.</comment>

<file context>
@@ -0,0 +1,52 @@
+// Settings already surfaced by the redesigned cards in RegistrationSignupSection.
+const HIGHLIGHTED_SETTINGS = [
+	'Accounts_RegistrationForm',
+	'Accounts_RegistrationForm_SecretURL',
+	'Accounts_ManuallyApproveNewUsers',
+	'Accounts_EmailVerification',
</file context>

mbe={4}
fontScale='p2'
color={isActive ? 'info' : 'hint'}
fontWeight={isActive ? 700 : 400}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: The current section is conveyed only by color/weight. Expose the active navigation item with aria-current="location" so assistive technology receives the same state.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/AccountsSettingsNav.tsx, line 54:

<comment>The current section is conveyed only by color/weight. Expose the active navigation item with `aria-current="location"` so assistive technology receives the same state.</comment>

<file context>
@@ -0,0 +1,65 @@
+						mbe={4}
+						fontScale='p2'
+						color={isActive ? 'info' : 'hint'}
+						fontWeight={isActive ? 700 : 400}
+						style={{ cursor: 'pointer', textDecoration: 'none' }}
+					>
</file context>

const [activeId, setActiveId] = useState(items[0]?.id);

const handleClick = (event: MouseEvent<HTMLAnchorElement>, id: string): void => {
event.preventDefault();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: Section navigation does not update the URL fragment, so a selected Accounts section cannot be bookmarked/shared and browser history has no section state. Preserve/update the hash while retaining smooth scrolling.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/meteor/client/views/admin/settings/groups/AccountsGroupPage/AccountsSettingsNav.tsx, line 21:

<comment>Section navigation does not update the URL fragment, so a selected Accounts section cannot be bookmarked/shared and browser history has no section state. Preserve/update the hash while retaining smooth scrolling.</comment>

<file context>
@@ -0,0 +1,65 @@
+	const [activeId, setActiveId] = useState(items[0]?.id);
+
+	const handleClick = (event: MouseEvent<HTMLAnchorElement>, id: string): void => {
+		event.preventDefault();
+		setActiveId(id);
+		document.getElementById(id)?.scrollIntoView({ behavior: 'smooth', block: 'start' });
</file context>

@codecov

codecov Bot commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.04%. Comparing base (edbaeef) to head (4af39f0).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop   #41339   +/-   ##
========================================
  Coverage    69.04%   69.04%           
========================================
  Files         3757     3757           
  Lines       147735   147723   -12     
  Branches     26395    26385   -10     
========================================
- Hits        102000   101992    -8     
- Misses       41234    41238    +4     
+ Partials      4501     4493    -8     
Flag Coverage Δ
unit 70.50% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

…vigation

Refreshes the look of every admin settings group by refactoring the shared
settings-rendering components, without reorganizing any settings or changing
their names/descriptions.

- SettingsSection now renders each section as a titled card instead of an
  accordion item (title kept as an h2 for existing selectors).
- SettingsGroupPage renders sections in a two-column layout: stacked cards on
  the left and a sticky in-page "Settings in <group>" section navigation on
  the right, replacing the single accordion.
- GenericGroupPage / OAuthGroupPage compute stable section anchor ids and the
  nav item list; a shared getSettingsSectionAnchorId helper keeps ids in sync.
- Skeletons updated to match the card layout.

Applies uniformly across all settings groups via the generic template.
Also drops an obsolete accordion-expand step from the Layout settings e2e,
since sections are now always visible.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@rodrigok rodrigok force-pushed the feat/admin-accounts-registration-revamp branch from 0970b1e to 4af39f0 Compare July 13, 2026 15:02
@rodrigok rodrigok changed the title feat: Revamp admin Accounts settings — redesigned Registration & sign-up page refactor: Revamp admin settings — card-based layout with section navigation Jul 13, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

♻️ Duplicate comments (1)
apps/meteor/client/views/admin/settings/SettingsGroupPage/SettingsSectionNav.tsx (1)

46-64: 🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win

Add aria-current to the active nav link.

The active link is only distinguished visually (color/fontWeight); screen reader users get no programmatic indication of the active section.

♿ Proposed fix
 					fontScale='p2'
 					color={isActive ? 'info' : 'hint'}
 					fontWeight={isActive ? 700 : 400}
+					aria-current={isActive ? 'true' : undefined}
 					style={{ cursor: 'pointer', textDecoration: 'none' }}
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@apps/meteor/client/views/admin/settings/SettingsGroupPage/SettingsSectionNav.tsx`
around lines 46 - 64, Add an aria-current attribute to the anchor Box rendered
in the items.map callback, setting it to "page" (or the appropriate
current-state value) only when isActive is true and leaving it unset otherwise.
Preserve the existing visual active styling and navigation behavior.
🧹 Nitpick comments (1)
apps/meteor/client/views/admin/settings/SettingsGroupPage/SettingsSectionNav.tsx (1)

16-28: 🎯 Functional Correctness | 🔵 Trivial | 🏗️ Heavy lift

Active section only updates on click, not on scroll.

If the user scrolls manually instead of clicking a nav link, activeId never updates, so the highlighted item can drift out of sync with what's actually in view. Consider an IntersectionObserver-based scroll-spy to keep it accurate.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@apps/meteor/client/views/admin/settings/SettingsGroupPage/SettingsSectionNav.tsx`
around lines 16 - 28, Update SettingsSectionNav to observe the section elements
with an IntersectionObserver and set activeId as the visible section changes
during manual scrolling. Initialize or refresh the observer when items changes,
disconnect it during cleanup, and preserve the existing click handling and
fallback to items[0]?.id.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@apps/meteor/client/views/admin/settings/groups/OAuthGroupPage/OAuthGroupPage.tsx`:
- Around line 26-30: Update the navItems useMemo mapping in OAuthGroupPage to
cast each sectionName to TranslationKey before passing it to t(). Preserve the
existing filtering, anchor ID generation, and dependency array.

---

Duplicate comments:
In
`@apps/meteor/client/views/admin/settings/SettingsGroupPage/SettingsSectionNav.tsx`:
- Around line 46-64: Add an aria-current attribute to the anchor Box rendered in
the items.map callback, setting it to "page" (or the appropriate current-state
value) only when isActive is true and leaving it unset otherwise. Preserve the
existing visual active styling and navigation behavior.

---

Nitpick comments:
In
`@apps/meteor/client/views/admin/settings/SettingsGroupPage/SettingsSectionNav.tsx`:
- Around line 16-28: Update SettingsSectionNav to observe the section elements
with an IntersectionObserver and set activeId as the visible section changes
during manual scrolling. Initialize or refresh the observer when items changes,
disconnect it during cleanup, and preserve the existing click handling and
fallback to items[0]?.id.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 9a665026-73f3-4a2e-a041-8ed8a3d538f3

📥 Commits

Reviewing files that changed from the base of the PR and between 0970b1e and 4af39f0.

📒 Files selected for processing (11)
  • .changeset/admin-settings-card-layout.md
  • apps/meteor/client/views/admin/settings/SettingsGroupPage/SettingsGroupPage.tsx
  • apps/meteor/client/views/admin/settings/SettingsGroupPage/SettingsGroupPageSkeleton.tsx
  • apps/meteor/client/views/admin/settings/SettingsGroupPage/SettingsSectionNav.tsx
  • apps/meteor/client/views/admin/settings/SettingsSection/SettingsSection.tsx
  • apps/meteor/client/views/admin/settings/SettingsSection/SettingsSectionSkeleton.tsx
  • apps/meteor/client/views/admin/settings/groups/GenericGroupPage.tsx
  • apps/meteor/client/views/admin/settings/groups/OAuthGroupPage/OAuthGroupPage.tsx
  • apps/meteor/client/views/admin/settings/groups/getSettingsSectionAnchorId.ts
  • apps/meteor/tests/e2e/administration-settings.spec.ts
  • packages/i18n/src/locales/en.i18n.json
💤 Files with no reviewable changes (1)
  • apps/meteor/tests/e2e/administration-settings.spec.ts
📜 Review details
⏰ Context from checks skipped due to timeout. (3)
  • GitHub Check: CodeQL-Build
  • GitHub Check: Hacktron Security Check
  • GitHub Check: CodeQL-Build
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{ts,tsx,js}

📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)

**/*.{ts,tsx,js}: Write concise, technical TypeScript/JavaScript with accurate typing in Playwright tests
Avoid code comments in the implementation

Files:

  • apps/meteor/client/views/admin/settings/SettingsSection/SettingsSectionSkeleton.tsx
  • apps/meteor/client/views/admin/settings/groups/getSettingsSectionAnchorId.ts
  • apps/meteor/client/views/admin/settings/SettingsGroupPage/SettingsGroupPageSkeleton.tsx
  • apps/meteor/client/views/admin/settings/SettingsGroupPage/SettingsSectionNav.tsx
  • apps/meteor/client/views/admin/settings/groups/GenericGroupPage.tsx
  • apps/meteor/client/views/admin/settings/SettingsGroupPage/SettingsGroupPage.tsx
  • apps/meteor/client/views/admin/settings/groups/OAuthGroupPage/OAuthGroupPage.tsx
  • apps/meteor/client/views/admin/settings/SettingsSection/SettingsSection.tsx
🧠 Learnings (7)
📚 Learning: 2026-03-16T21:50:37.589Z
Learnt from: amitb0ra
Repo: RocketChat/Rocket.Chat PR: 39676
File: .changeset/migrate-users-register-openapi.md:3-3
Timestamp: 2026-03-16T21:50:37.589Z
Learning: For changes related to OpenAPI migrations in Rocket.Chat/OpenAPI, when removing endpoint types and validators from rocket.chat/rest-typings (e.g., UserRegisterParamsPOST, /v1/users.register) document this as a minor changeset (not breaking) per RocketChat/Rocket.Chat-Open-API#150 Rule 7. Note that the endpoint type is re-exposed via a module augmentation .d.ts in the consuming package (e.g., packages/web-ui-registration/src/users-register.d.ts). In reviews, ensure the changeset clearly states: this is a non-breaking change, the major version should not be bumped, and the changeset reflects a minor version bump. Do not treat this as a breaking change during OpenAPI migrations.

Applied to files:

  • .changeset/admin-settings-card-layout.md
📚 Learning: 2026-03-27T14:52:56.865Z
Learnt from: dougfabris
Repo: RocketChat/Rocket.Chat PR: 39892
File: apps/meteor/client/views/room/contextualBar/Threads/Thread.tsx:150-155
Timestamp: 2026-03-27T14:52:56.865Z
Learning: In Rocket.Chat, there are two different `ModalBackdrop` components with different prop APIs. During review, confirm the import source: (1) `rocket.chat/fuselage` `ModalBackdrop` uses `ModalBackdropProps` based on `BoxProps` (so it supports `onClick` and other Box/DOM props) and does not have an `onDismiss` prop; (2) `rocket.chat/ui-client` `ModalBackdrop` uses a narrower props interface like `{ children?: ReactNode; onDismiss?: () => void }` and handles Escape keypress and outside mouse-up, and it does not forward arbitrary DOM props such as `onClick`. Flag mismatched props (e.g., `onDismiss` passed to the fuselage component or `onClick` passed to the ui-client component) and ensure the usage matches the correct component being imported.

Applied to files:

  • apps/meteor/client/views/admin/settings/SettingsSection/SettingsSectionSkeleton.tsx
  • apps/meteor/client/views/admin/settings/SettingsGroupPage/SettingsGroupPageSkeleton.tsx
  • apps/meteor/client/views/admin/settings/SettingsGroupPage/SettingsSectionNav.tsx
  • apps/meteor/client/views/admin/settings/groups/GenericGroupPage.tsx
  • apps/meteor/client/views/admin/settings/SettingsGroupPage/SettingsGroupPage.tsx
  • apps/meteor/client/views/admin/settings/groups/OAuthGroupPage/OAuthGroupPage.tsx
  • apps/meteor/client/views/admin/settings/SettingsSection/SettingsSection.tsx
📚 Learning: 2026-05-06T12:21:44.083Z
Learnt from: juliajforesti
Repo: RocketChat/Rocket.Chat PR: 40256
File: apps/meteor/client/components/CreateDiscussion/CreateDiscussion.tsx:121-149
Timestamp: 2026-05-06T12:21:44.083Z
Learning: Field wrappers in rocket.chat/fuselage-forms (Field, FieldLabel, FieldRow, FieldError, FieldHint) auto-create htmlFor/id associations, aria-describedby, and role="alert" for errors. Do not manually set htmlFor, id, aria-describedby, or role attributes when using these wrappers. This automatic wiring does not apply to plain rocket.chat/fuselage components, which require explicit ID wiring per the accessibility docs. In code reviews, prefer using fuselage-forms wrappers for form fields and verify there is no unnecessary manual ID/aria wiring in files that use these wrappers. If a component uses plain fuselage components, ensure proper id wiring as per docs.

Applied to files:

  • apps/meteor/client/views/admin/settings/SettingsSection/SettingsSectionSkeleton.tsx
  • apps/meteor/client/views/admin/settings/groups/getSettingsSectionAnchorId.ts
  • apps/meteor/client/views/admin/settings/SettingsGroupPage/SettingsGroupPageSkeleton.tsx
  • apps/meteor/client/views/admin/settings/SettingsGroupPage/SettingsSectionNav.tsx
  • apps/meteor/client/views/admin/settings/groups/GenericGroupPage.tsx
  • apps/meteor/client/views/admin/settings/SettingsGroupPage/SettingsGroupPage.tsx
  • apps/meteor/client/views/admin/settings/groups/OAuthGroupPage/OAuthGroupPage.tsx
  • apps/meteor/client/views/admin/settings/SettingsSection/SettingsSection.tsx
📚 Learning: 2026-02-10T16:32:42.586Z
Learnt from: tassoevan
Repo: RocketChat/Rocket.Chat PR: 38528
File: apps/meteor/client/startup/roles.ts:14-14
Timestamp: 2026-02-10T16:32:42.586Z
Learning: In Rocket.Chat's Meteor client code, DDP streams use EJSON and Date fields arrive as Date objects; do not manually construct new Date() in stream handlers (for example, in sdk.stream()). Only REST API responses return plain JSON where dates are strings, so implement explicit conversion there if needed. Apply this guidance to all TypeScript files under apps/meteor/client to ensure consistent date handling in DDP streams and REST responses.

Applied to files:

  • apps/meteor/client/views/admin/settings/groups/getSettingsSectionAnchorId.ts
📚 Learning: 2026-05-11T20:30:35.265Z
Learnt from: tassoevan
Repo: RocketChat/Rocket.Chat PR: 40480
File: apps/meteor/client/meteor/startup/accounts.ts:59-61
Timestamp: 2026-05-11T20:30:35.265Z
Learning: In Rocket.Chat’s Meteor client code, when calling `dispatchToastMessage` with `{ type: 'error' }`, pass the raw caught error object as `message` without manual normalization. `dispatchToastMessage` is designed to accept `message: unknown` for error toasts, so avoid converting errors to strings (e.g., `String(error)`) or extracting `error.message` before passing them.

Applied to files:

  • apps/meteor/client/views/admin/settings/groups/getSettingsSectionAnchorId.ts
📚 Learning: 2026-02-26T19:25:44.063Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 38778
File: packages/ui-voip/src/providers/useMediaSession.ts:192-192
Timestamp: 2026-02-26T19:25:44.063Z
Learning: In the Rocket.Chat repository, do not reference Biome lint rules in code review feedback. Biome is not used even if biome.json exists; only reference Biome rules if there is explicit, project-wide usage documented. For TypeScript files, review lint implications without Biome guidance unless the project enables Biome rules.

Applied to files:

  • apps/meteor/client/views/admin/settings/groups/getSettingsSectionAnchorId.ts
📚 Learning: 2026-02-26T19:25:44.063Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 38778
File: packages/ui-voip/src/providers/useMediaSession.ts:192-192
Timestamp: 2026-02-26T19:25:44.063Z
Learning: In this repository (RocketChat/Rocket.Chat), Biome lint rules are not used even if a biome.json exists. When reviewing TypeScript files (e.g., packages/ui-voip/src/providers/useMediaSession.ts), ensure lint suggestions do not reference Biome-specific rules. Rely on general ESLint/TypeScript lint rules and project conventions instead.

Applied to files:

  • apps/meteor/client/views/admin/settings/groups/getSettingsSectionAnchorId.ts
🔇 Additional comments (10)
apps/meteor/client/views/admin/settings/SettingsGroupPage/SettingsGroupPageSkeleton.tsx (1)

1-1: LGTM!

Also applies to: 11-17

apps/meteor/client/views/admin/settings/SettingsSection/SettingsSectionSkeleton.tsx (1)

1-18: LGTM!

apps/meteor/client/views/admin/settings/SettingsGroupPage/SettingsGroupPage.tsx (1)

2-2: LGTM!

Also applies to: 11-12, 24-24, 36-36, 153-170

apps/meteor/client/views/admin/settings/SettingsSection/SettingsSection.tsx (2)

2-2: LGTM!

Also applies to: 74-114


17-22: 🎯 Functional Correctness

solo has been removed from all SettingsSection callers.

packages/i18n/src/locales/en.i18n.json (1)

5005-5005: LGTM!

.changeset/admin-settings-card-layout.md (1)

1-6: LGTM!

apps/meteor/client/views/admin/settings/groups/getSettingsSectionAnchorId.ts (1)

1-8: LGTM!

apps/meteor/client/views/admin/settings/groups/GenericGroupPage.tsx (1)

1-6: LGTM!

Also applies to: 22-31, 32-42

apps/meteor/client/views/admin/settings/groups/OAuthGroupPage/OAuthGroupPage.tsx (1)

107-107: LGTM!

Also applies to: 124-124, 144-146

Comment on lines +26 to +30
const navItems = useMemo(
() =>
settingSections.filter(Boolean).map((sectionName) => ({ id: getSettingsSectionAnchorId(_id, sectionName), label: t(sectionName) })),
[settingSections, _id, t],
);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Inspect the useTranslation import/type used in OAuthGroupPage.tsx and its t() signature.
sed -n '1,10p' apps/meteor/client/views/admin/settings/groups/OAuthGroupPage/OAuthGroupPage.tsx
rg -n "export.*useTranslation" packages/ui-contexts/src 2>/dev/null

Repository: RocketChat/Rocket.Chat

Length of output: 980


🏁 Script executed:

#!/bin/bash
sed -n '1,220p' packages/ui-contexts/src/hooks/useTranslation.ts
printf '\n---\n'
rg -n "type TranslationContextValue|interface TranslationContextValue|TranslationKey" packages/ui-contexts/src packages/ui-contexts -g '!**/dist/**'

Repository: RocketChat/Rocket.Chat

Length of output: 2467


🏁 Script executed:

#!/bin/bash
sed -n '1,220p' apps/meteor/client/views/admin/settings/groups/OAuthGroupPage/OAuthGroupPage.tsx
printf '\n---\n'
rg -n "useEditableSettingsGroupSections|settingSections" apps/meteor/client/views/admin/settings -g '!**/dist/**'

Repository: RocketChat/Rocket.Chat

Length of output: 6871


🏁 Script executed:

#!/bin/bash
sed -n '1,220p' apps/meteor/client/views/admin/settings/EditableSettingsContext.tsx
printf '\n---\n'
rg -n "useEditableSettingsGroupSections" apps/meteor/client/views/admin/settings -g '!**/dist/**'

Repository: RocketChat/Rocket.Chat

Length of output: 1180


🏁 Script executed:

#!/bin/bash
fd -a "EditableSettingsContext.*" apps/meteor/client/views/admin/settings
printf '\n---\n'
fd -a "EditableSettingsContext.*" apps/meteor/client/views/admin
printf '\n---\n'
git ls-files | rg "EditableSettingsContext\.(ts|tsx)$"

Repository: RocketChat/Rocket.Chat

Length of output: 388


🏁 Script executed:

#!/bin/bash
sed -n '1,240p' apps/meteor/client/views/admin/EditableSettingsContext.ts
printf '\n---\n'
sed -n '1,220p' apps/meteor/client/views/admin/settings/groups/GenericGroupPage.tsx
printf '\n---\n'
sed -n '1,220p' apps/meteor/client/views/admin/settings/groups/SettingsSection.tsx

Repository: RocketChat/Rocket.Chat

Length of output: 5995


Add the TranslationKey cast here too. useEditableSettingsGroupSections() returns string[], but t() only accepts TranslationKey, so t(sectionName) here is a type mismatch.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@apps/meteor/client/views/admin/settings/groups/OAuthGroupPage/OAuthGroupPage.tsx`
around lines 26 - 30, Update the navItems useMemo mapping in OAuthGroupPage to
cast each sectionName to TranslationKey before passing it to t(). Preserve the
existing filtering, anchor ID generation, and dependency array.

@rodrigok rodrigok marked this pull request as draft July 13, 2026 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature Pull requests that introduces new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant