feat: add track (議程軌) row pinning#239
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
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/components/feature/CpSessionTrackTable.vue`:
- Around line 134-140: The first-visit default pin in CpSessionTrackTable is
being derived from the current day-filtered tracks list, so it can save an empty
pinned state before the main track appears. Update the initialization logic in
the watch(tracks, ...) block to use an event-wide track source instead of
tracks.value when choosing the default main track, so the initial pinnedKeys is
set correctly regardless of selectedDay changes. Keep the persisted
coscup-pinned-tracks behavior, but make the default selection independent of the
first loaded day.
🪄 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: 4d796b97-e92f-4ea5-b51a-783e8f23f009
📒 Files selected for processing (1)
app/components/feature/CpSessionTrackTable.vue
23b12d1 to
70fe7d6
Compare
526ba78 to
2f2d5c8
Compare
依 Figma 新設計為桌面版「議程軌(社群)模式」議程表加入議程軌釘選(pin)功能,並預設釘選主議程。此為 #238 的後續,基底為
session-track-mode分支。變更內容
localStorage保存並跨重新載入;區分「從未造訪」(預設釘選主議程)與「使用者取消全部釘選」(保留空清單)。#3b82f6)、blue-50 底色、藍色軌名/教室代碼、填色釘選按鈕;未釘選列維持預設中性樣式。Summary by CodeRabbit
New Features
UI Improvements