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

オープン
#3,934 コメント 5 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@srnsksyp がすでに取り組んでいます。

2026年11月29日 から。

  • #3938 @srnsksyp による — オープン

評価

この issue はまだ評価されていません。

説明

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
主要言語
TypeScript
スター
246
フォーク
436
平均マージ
9時間 33分
マージ済み PR(30日)
213

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Priyanshu-byte-coder/devtrack のほかの issue

Priyanshu-byte-coder/devtrack の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。