Skip to content

feat(portal): tab 独立 URL + 加载状态#15

Merged
eggfly merged 1 commit into
mainfrom
feat/portal-tab-routes-loading
Jul 22, 2026
Merged

feat(portal): tab 独立 URL + 加载状态#15
eggfly merged 1 commit into
mainfrom
feat/portal-tab-routes-loading

Conversation

@eggfly

@eggfly eggfly commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

解决三个问题:

  1. 上传软件包 / 我的软件包 改成独立 URL hash(#/upload、#/mine),刷新、收藏、浏览器前进后退都会停留在当前 tab,不再总是回到「上传」。
  2. 启动时(拉 /api/me 期间)加了 spinner,首屏不再整页空白像出 bug。
  3. 「我的软件包」读取线上 APT 索引期间显示 spinner,空表不再被误认为坏了。

Made with Cursor

- Upload and My Packages are now distinct URL hashes (#/upload, #/mine),
  so refreshing (or bookmarking / back-forward) keeps the current tab
  instead of always snapping back to Upload.
- Add a boot spinner while /api/me is fetched, so the page no longer
  looks blank/broken on first paint.
- Show a spinner in the My Packages table while the APT index loads.

Co-authored-by: Cursor <cursoragent@cursor.com>
@eggfly
eggfly merged commit 0143696 into main Jul 22, 2026
@eggfly
eggfly deleted the feat/portal-tab-routes-loading branch July 22, 2026 05:40
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