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

Aperta
#3,934 5 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@srnsksyp ci sta già lavorando.

Dal 29/11/2026.

  • #3938 di @srnsksyp — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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
Lingua principale
TypeScript
Stelle
246
Fork
436
Merge medio
9h 33m
PR unite (30g)
213

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Priyanshu-byte-coder/devtrack

Tutte le issue di Priyanshu-byte-coder/devtrack

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.