Skip to content

refactor: split home_page and settings_page into part files#3

Merged
anonymoussoft merged 1 commit intomasterfrom
refactor/split-home-settings-pages
Mar 13, 2026
Merged

refactor: split home_page and settings_page into part files#3
anonymoussoft merged 1 commit intomasterfrom
refactor/split-home-settings-pages

Conversation

@anonymoussoft
Copy link
Copy Markdown
Owner

  • home_page: extract persistence (home_page_persistence.dart), plugins (home_page_plugins.dart), and session bootstrap init (home_page_bootstrap.dart) via part/extension; add _bootstrapSetState for extension setState usage
  • settings_page: extract UI widgets (_HoverableSettingsRow, _AccountCardItem) to settings_page_widgets.dart and list content to settings_page_build.dart (_buildSettingsChildren); add _settingsSetState
  • Other: tim_sdk_initializer, account_summary model, and related session/bootstrap/account changes

Made-with: Cursor

- home_page: extract persistence (home_page_persistence.dart), plugins
  (home_page_plugins.dart), and session bootstrap init
  (home_page_bootstrap.dart) via part/extension; add _bootstrapSetState
  for extension setState usage
- settings_page: extract UI widgets (_HoverableSettingsRow,
  _AccountCardItem) to settings_page_widgets.dart and list content to
  settings_page_build.dart (_buildSettingsChildren); add _settingsSetState
- Other: tim_sdk_initializer, account_summary model, and related
  session/bootstrap/account changes

Made-with: Cursor
@anonymoussoft anonymoussoft merged commit b83abe2 into master Mar 13, 2026
1 check failed
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 86483f2396

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/util/prefs.dart
keysToRemove.add(_passwordSaltKey(toxId));

// 3) Legacy single-account keys: remove only when clearing current account
if (current == toxId) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Clear legacy keys when account is deleted from logged-out state

Guarding legacy key removal behind current == toxId leaves _kNickname, _kStatusMsg, and _kAutoLogin behind when an account is deleted from the login page after logout (where current_account_tox_id is already null). That stale state is still consumed by startup (main.dart reads nickname/auto-login first), so the app can treat a deleted account as still configured and enter the legacy auto-login path. Please clear legacy login identity keys when deleting the target account in this context (at least when no matching account remains).

Useful? React with 👍 / 👎.

@anonymoussoft anonymoussoft deleted the refactor/split-home-settings-pages branch March 13, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant