Split the 2,000-line Settings page into section components

Open
#3,934 5 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@srnsksyp is already working on this.

Since Nov 29, 2026.

  • #3938 by @srnsksyp — open

Assessment

This issue has not been assessed yet.

Description

level 2 level:intermediate status:assigned type:refactor
Summary

src/app/dashboard/settings/page.tsx is about 2,100 lines in one component. Every Settings change touches the same file, so contributors' PRs keep conflicting with each other (privacy, webhooks, sharing and translation PRs all hit it this week), and it's hard to review or test one section.

Expected outcome

Move each section into its own component under src/components/settings/ (for example Profile, Privacy and visibility, Notifications and Discord, Heatmap colours, Language, Integrations), keeping page.tsx as the layout that loads settings once and passes them down. Use the shared useUserSettings hook (#3913) instead of a separate fetch where it fits.

Pure move, no behaviour or design changes in this PR.

Acceptance criteria
  • page.tsx under ~300 lines
  • No visible change: before/after screenshots of Settings at 1280px and 390px
  • Existing settings e2e tests (e2e/settings.spec.js) and unit tests pass unchanged
  • Comment on this issue before starting; it touches a hot file, so only one person should take it
Dominant language
TypeScript
Stars
246
Forks
436
Avg merge
9h 33m
Merged PRs (30d)
213

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Priyanshu-byte-coder/devtrack

All issues in Priyanshu-byte-coder/devtrack

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.