perf: load session table data from shared client-side endpoint#286
Conversation
Dokploy Preview Deployment
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe session page now fetches and validates data client-side, prerenders session detail routes from server-fetched summaries, and displays a reusable loading skeleton. The session API is also added to application prerender targets. ChangesSession data and loading
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant SessionPage
participant SessionAPI
participant NuxtPrerenderer
SessionPage->>SessionAPI: Fetch and validate sessions by day
SessionAPI-->>SessionPage: Return typed session summaries
SessionPage->>NuxtPrerenderer: Register session detail routes
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 97456352d7
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@app/pages/session.vue`:
- Around line 26-29: Update the useFetch call in the session page setup to
remove await and enable lazy fetching, preserving the existing /api/session
request and status-based isSessionLoading computed state so the page renders
immediately with its loading skeleton.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: ed50f4c6-93e1-4718-9910-dde1462d118a
📒 Files selected for processing (3)
app/app.vueapp/components/feature/CpSessionLoadingSkeleton.vueapp/pages/session.vue
|
從 PREVIEW 看起來 議程表直接不見了 |
已修正 preview: https://preview-coscup-2026-nuxt-hubug4-nsrryb.rileychh.dev/2026/session |
|
我在自己環境 build 會沒有議程誒 OAO |
請問有出現錯誤訊息嗎? |
大概就是... 這樣議程表打開會說尚未公布 btw.. 看起來是正常的 |
但在 Preview 環境中,相同內容會以 為了相容兩種情境,額外加入 |
WOW!! 先受小弟一拜 |


Summary
將完整議程 table 資料改為由 client 端透過共用的靜態
/api/session載入,避免每個/session/<id>頁的_payload.json都重複包含整份 session 資料。同時保留 SSG 產生 session detail 靜態頁的能力,確保 GitHub Pages 部署後仍可直接開啟 detail URL。Changes
app/pages/session.vue的完整議程資料改為server: false,讓 table 資料只在 client 端請求。$fetch('/api/session')取得 session 清單,只用來註冊/session/<id>prerender routes。app/app.vue明確加入/api/sessionprerender,確保靜態部署時 client 可請求 session JSON。Summary by CodeRabbit
Summary by CodeRabbit
New Features
/api/sessionand generate session detail routes when applicable.Bug Fixes