Dashboard pagination causes full page reloads on self-hosted Cap

未关闭 适合新手
#2,305 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
88/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
nextjs, typescript
领域
frontend, web-dev

调研方向

先阅读 apps/web/app/(org)/dashboard/caps/components/CapPagination.tsx 和 packages/ui/src/components/Pagination.tsx,然后在 /dashboard/caps 复现该行为。更新分页导航,使页面切换时 dashboard shell 保持挂载,并验证点击页码和 Next/Previous 不再导致整页重新加载。

由索引模型根据 Issue 内容生成。

描述

Description

While testing a migration from Loom to self-hosted Cap, I noticed that pagination in the My Caps dashboard triggers a full page/app reload on every page change. This makes browsing a large video library feel sluggish.

Expected: pagination updates the video list using client-side navigation, keeping the dashboard shell mounted.

Actual: clicking a page number or Next/Previous reloads the whole page.

Reproduction
  1. Open a self-hosted Cap Web instance and sign in.
  2. Have enough recordings in My Caps to display pagination.
  3. Navigate to /dashboard/caps.
  4. Click the next page number or Next/Previous.
  5. Observe a full page reload rather than an in-app transition.
Additional Context
  • Cap version: ghcr.io/capsoftware/cap-web:latest, confirmed against the published image on September 17, 2026.
  • Image build date: September 7, 2026.

The current source appears to explain the behavior:

  • CapPagination.tsx supplies dashboard page URLs to PaginationLink, PaginationNext, and PaginationPrevious.
  • The shared PaginationLink renders an ordinary <a> element rather than using Next.js client-side navigation.

Could dashboard pagination use Next.js Link or equivalent client-side routing so changing pages does not reload the entire app?

主要语言
Rust
星标
22.5k
派生
1.9k
平均合并
6 小时 33 分钟
30 天内合并 PR
77

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CapSoftware/Cap 的其他 Issue

查看 CapSoftware/Cap 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。