Skip to content

fix: detail panel star button sync#156

Merged
vakovalskii merged 1 commit intovakovalskii:mainfrom
akolotov:fix/detail-star-button
Apr 10, 2026
Merged

fix: detail panel star button sync#156
vakovalskii merged 1 commit intovakovalskii:mainfrom
akolotov:fix/detail-star-button

Conversation

@akolotov
Copy link
Copy Markdown
Contributor

@akolotov akolotov commented Apr 9, 2026

User-facing issue

When a user opened a session in the detail panel and clicked the star button, the session was starred or unstarred in storage, but the button inside the open detail panel did not immediately update its label or active state. This made the UI look stale and left users unsure whether the action worked until they manually refreshed or closed and reopened the panel.

Root cause

The shared toggleStar() logic already updated persisted star state and rerendered the session views, but the live frontend no longer refreshed the open detail panel button after the action completed. The older backup implementation had an extra DOM update for the .detail-star element, and that behavior was missing from the current code path.

Fix

I restored the missing detail-panel-specific update in toggleStar() so that, after the star list is updated and the main views rerender, the open .detail-star button is also updated in place.

This keeps the detail panel label and active styling aligned with the new star state immediately.

Why this is safe

  • The change is localized to one shared helper in src/frontend/app.js.
  • It only affects the open detail panel button, using an existing .detail-star selector that is already present in the detail panel markup.
  • The existing rerender behavior is preserved, so list cards and other views still refresh exactly as before.
  • No data format, API call, or persistence logic changed, so the fix is purely presentational and low risk.

@akolotov akolotov changed the title Fix detail panel star button sync fix: detail panel star button sync Apr 9, 2026
@vakovalskii vakovalskii merged commit 0af640a into vakovalskii:main Apr 10, 2026
6 checks passed
vakovalskii added a commit that referenced this pull request Apr 10, 2026
Merged: #156 (star sync), #155 (clipboard fallback), #159 (bind URL fix),
#157 (session name vs first prompt), #160 (MCP badges toggle), #100 (Warp launch API)
Closed: #128 (dup), #148 (banned), #161 (bad diff)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@akolotov akolotov deleted the fix/detail-star-button branch April 10, 2026 12:18
apstenku123 added a commit to apstenku123/codedash that referenced this pull request Apr 11, 2026
apstenku123 added a commit to apstenku123/codedash that referenced this pull request Apr 11, 2026
- vakovalskii#155 clipboard copy fallback on non-secure origins (execCommand shim)
- vakovalskii#156 star button sync in detail panel (already applied earlier)
- vakovalskii#159 bind address vs browser URL separation (execFile, safer)
- ca70fd2 dual metrics: user_messages (real) + total_interactions (all)
- d3f4326 Node >= 18 version check at startup with clear error

Skipped: vakovalskii#100 Warp launch config (non-iTerm2), vakovalskii#157 session name refactor
(too many touches), vakovalskii#160 badge display config (non-critical),
analytics totalSessionsAll (already have similar in createCostAggregator).
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.

2 participants