Skip to content

feat(ui): profiles list as rows + page-size 8 + settings/runtime cleanup#38

Merged
Cmochance merged 3 commits into
mainfrom
feat/profiles-rows-and-settings-cleanup
May 16, 2026
Merged

feat(ui): profiles list as rows + page-size 8 + settings/runtime cleanup#38
Cmochance merged 3 commits into
mainfrom
feat/profiles-rows-and-settings-cleanup

Conversation

@Cmochance
Copy link
Copy Markdown
Owner

Summary

  • Profiles page: account cards collapse to single-row list items (name + plan on top; 5h quota | weekly quota | actions in one horizontal track). 8 entries per page now (was 4); DEFAULT_PAGE_SIZE raised in paths.rs + matching frontend defaults.
  • Removed the unwired Runtime tab + entire <section id="page-runtime"> page; dropped "runtime" from ShellRoute.
  • Top nav centered horizontally instead of right-aligned.
  • Settings page trimmed: removed Forward port / Admin port / Launch at login / Configuration backup rows (none had a backend). Codex CLI path row collapsed from two-line --stacked to a single inline row with the Change button on the right and ellipsis on long paths.
  • Docs: README.md / README.zh-CN.md / CHANGELOG.md (Unreleased) updated.

CSS edits mirrored across shared/front/base.css, mac/front/styles.css, win/front/styles.css because the mac/win sheets currently re-declare the shared selectors. Cleaning up that duplication is a separate refactor.

Unused i18n keys (navRuntime, settingsForwardPort, …) and .runtime-grid / .settings-panel--runtime CSS left in place — they're harmless dead strings and best swept in a follow-up.

Test plan

  • macOS dev (npm run tauri:dev): account list renders as rows, 8 per page, paging works
  • macOS: Runtime tab is gone, hash #runtime falls back to dashboard
  • macOS: Settings page shows only Language / Theme / Update URL / Codex CLI path / Version / License / Check updates / GitHub
  • macOS: Codex CLI Change button on the same row as the path
  • Windows build (CI): Tauri tauri build --target x86_64-pc-windows-msvc succeeds
  • Cargo tests green

Cmochance added 2 commits May 16, 2026 03:39
Profile cards collapse to single-row list items so 8 accounts fit per page
without scrolling on a typical window. Each row is `[name + plan]` on top with
`[5h quota | weekly quota | actions]` underneath in one horizontal grid track,
mirrored across base.css, mac/front/styles.css, and win/front/styles.css since
mac/win still duplicate the shared selectors.

Drops the unwired Runtime tab + page entirely (ShellRoute, route-tabs entry,
`<section id="page-runtime">`) and centers the top nav. On the settings page,
removes 4 placeholder rows that never had a backend (Forward port, Admin port,
Launch at login, Configuration backup w/ backup/export/import) and squashes the
Codex CLI path row from the two-line `--stacked` layout to a single inline row
with the Change button on the right, with text-overflow ellipsis on long paths.

Page size raised from 4 to 8: DEFAULT_PAGE_SIZE in shared/runtime/paths.rs,
state.pageSize default, and the preview snapshot in tauri.ts.

README.md / README.zh-CN.md / CHANGELOG.md (Unreleased) updated.

Unused i18n keys + .runtime-grid / .settings-panel--runtime CSS left in place;
they're harmless dead strings best swept in a follow-up cleanup.
Renames the Unreleased CHANGELOG section to 1.5.10. version-sync writes the
new version into package.json / package-lock.json / src-tauri/Cargo.toml;
Cargo.lock refreshed by `cargo check`.
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: 89f63202f8

ℹ️ 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 src-tauri/shared/front/tauri.ts
@Cmochance
Copy link
Copy Markdown
Owner Author

版本号已 bump 到 1.5.10(package.json / package-lock.json / Cargo.toml / Cargo.lock 同步),CHANGELOG 的 Unreleased 段重命名为 ## 1.5.10 - 2026-05-16

CI 跟踪已在后台轮询,全绿后告知。

需要 @Cmochance 完成的事项:

  • CI 全绿后 squash-merge(保留 feat(ui): profiles list as rows + page-size 8 + settings/runtime cleanup 作为 squash title;如需精简 body 可手动收紧)
  • merge 后按 release workflow 出 1.5.10(按全局规则默认 draft,等你确认转 Latest)

后续可选清理(不在本 PR 范围):

  • 删除 i18n.ts 中无引用的 navRuntime / runtimeTitle / runtimeSubtitle / runtime* / settingsForwardPort / settingsAdminPort / settingsLaunchAtLogin / settingsConfigBackup / settingsBackupNow / settingsExportConfig / settingsImportConfig / settingsNoBackup / settingsBackupCopy 等 key
  • 删除 base.css 中 .runtime-grid / .settings-panel--runtime 死规则
  • 把 mac/win styles.css 与 base.css 重复的 .profile-card / .profile-quota-* / .profile-action-button* 段去重(这次三处镜像编辑暴露了违反 share-don't-duplicate 的问题)

The earlier bump only patched the literal inside refreshPreviewSnapshot();
the initial `let previewSnapshot = { page_size: 4, ... }` declaration was
left untouched because the indentation differed. In `!hasTauriRuntime`
preview mode the very first `get_profiles_snapshot` returns this literal
directly, so paging silently kept the old 4-per-page behaviour until a
mutating action ran. Caught by chatgpt-codex-connector review on PR #38.
@Cmochance Cmochance merged commit 9bdba61 into main May 16, 2026
3 checks passed
@Cmochance Cmochance deleted the feat/profiles-rows-and-settings-cleanup branch May 16, 2026 03:38
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