Repository navigation
fix(ui): keep sidebar filters and view state on each device - #583
Merged
Merged
Conversation
nixuuu
marked this pull request as ready for review
November 12, 2026 20:28
This was referenced Nov 12, 2026
nixuuu
added a commit
that referenced
this pull request
Nov 12, 2026
) Working sidebar threads gained a neutral fill in #545 that looks too close to the selected thread, especially in dark mode. Remove that fill on web and mobile: an unselected working thread now uses its spinner and Working label, while the current thread retains the selected background regardless of activity. Only unselected web thread and Bots conversation rows receive the lighter hover fill. Keyboard focus keeps its separate outline. Bots already have no working-only fill; selected bot/group conversations now retain their selected fill on hover. Keep the normal title/metadata contrast from #545 and the action swaps, reduced-motion behavior, reserved slots and gutters from #576. Update the related Polish documentation; UI copy is unchanged. Fixes: #545 Validation: - Rebased onto `dev` at `968757a4c`, including #591 and #594. Reviewed head: `070efea27b73c7fec7049b1be061c42258e7f17e`. Blame and patches identify #545 (`1c65b9317`) as introducing the working fill on both clients. Reviewed #549, #576 and #583; they did not introduce it. - On the assigned review server, `bun install --frozen-lockfile`, `bun run gen:check`, full `bun run typecheck`, `bun run lint`, `bun run format:check` and the production web build pass after the rebase. Svelte reports zero errors and warnings. Changed-file mobile ESLint, repository formatting, commitlint and `git diff --check` also pass. No web UI tests were added or run. - A single Chromium browser reviewed the production build against a disposable gateway/database: light/dark at 1440px desktop and 1100px narrow widths, 288px and 220px sidebars, plus the 393px phone drawer. Checked working-only, selected-only, selected+working, hover and keyboard focus in Threads and Bots, including a working side thread and short/long labels. Working-only rows are transparent; hover uses 4%, selection uses 6% light / 8% dark, and keyboard focus retains its separate 2px outline. Selected rows keep their fill on hover. Row bounds remain fixed and labels do not overflow. Reduced motion gives zero-duration action swaps. Final navigation reports no console errors. - The mobile change only removes the `busy ? c.well` background branch from a TSX file. Native dependencies, configuration, fingerprint configuration, assets and lockfile are unchanged. Base/head fingerprints generated on the assigned server with `nice -n 19`, using `expo-updates fingerprint:generate` and the production/nightly environment, are identical: iOS `6ddec9ef559ee0095ac33e94ff9418a942053b17`, Android `5f6eae3ab278f1cd543e9ed763f923a319b65ec9`. This uses Expo's underlying runtime fingerprint engine. The maintainer confirmed that this local comparison is sufficient for the JS-only change; authenticated EAS verification is not required. No build or OTA publication was started. - Browser, gateway, web and disposable database are stopped. Assigned ports are free. Verification artifacts remain outside the repository. Ready for review; the maintainer will merge once CI is green. Copy audit: no UI text changes; no copy audit required.
nixuuu
added a commit
that referenced
this pull request
Nov 12, 2026
Publish structured release notes alongside the existing static release index so apps can explain an update without making GitHub API calls. GitHub Releases remain the source of full release notes; no CHANGELOG or update protocol changes. This is the first layer of a two-PR stack. Merge both layers together into dev. ## Changes - The authenticated Pages generation step also writes `releases/notes-v1.json`. Parse Angular Features, Bug Fixes and Performance Improvements into type, scope, capitalized plain summary, PR number and repository PR URL. Strip commit hashes and type prefixes; retain at most 200 versions per channel and mark truncated history. Merge the previously published Pages notes so GitHub's 10-nightly retention does not erase the archive. Live bodies replace edited versions. Only an initial HTTP 404 permits bootstrap; other archive-read failures stop publication. - Add a strict shared decoder and a Pages-only notes reader using the existing 15-minute/ETag cache. Unavailable or invalid notes never fall back to the GitHub API. The complete download index and installer verification remain intact. - Aggregate `(previous, current]` on the running build's channel, group New / Improved / Fixed and deduplicate repeated PRs. Subtract entries already delivered on the previous channel when promotions repeat cumulative release bodies. Expose incomplete history and publication lag. - Reuse the typed client-local preference helper from #583 to persist the last seen version and the actual previous/current pair. First install, unknown history and downgrades establish a baseline without a launch notice. ## Validation - `bun install --frozen-lockfile` passed. - 13 focused data tests passed, 71 assertions: fixture release bodies, complete-release filtering, >200 nightlies, archived/pruned and edited bodies, failed archive reads, range boundaries, deduplication, promotion/channel changes, first install, restart/downgrade history, malformed notes, unsafe URLs and failed CDN reads without API fallback. Across both layers: 15 tests / 77 assertions. - Repository `bun run lint` and `bun run format:check` passed on the complete stack. Pages `actionlint` passed with pinned actionlint 1.7.12 and shellcheck 0.11.0. `git diff --check` passed. - No tags, workflow dispatches or pushes to next/main. No anonymous GitHub API calls or live release reads were used for verification. - The complete stack passed `gen:check`, `typecheck`, `lint`, `format:check` and the production web build in the assigned remote review checkout with `nice -n 10`. The browser review uses fixture notes, not live GitHub data. Full test shards run in CI; no web UI tests were added. - EAS CLI 27.4.1 fingerprints were generated for the actual dev base and feature head, in the same local path with `nice -n 19`: iOS `6ddec9ef559ee0095ac33e94ff9418a942053b17`, Android `5f6eae3ab278f1cd543e9ed763f923a319b65ec9`, unchanged on both platforms. No native build or OTA publication was performed. - Bootstrap limitation: releases deleted before the first notes index cannot be reconstructed from their GitHub bodies. The UI explicitly indicates missing older history. Subsequent Pages deployments preserve the bounded archive. - The assigned remote review environment was cleaned up: browser closed, own web/gateway processes stopped, PostgreSQL container removed, checkout and fixture artifacts removed, all three assigned ports free. Verification artifacts stay outside the repository. ## Copy audit (§8) `feat(updates): show What's new (#593) (<commit hash>)` → `Show What's new`, with `updates` as a small scope tag and the PR as its link. This removes implementation metadata, capitalizes the summary and preserves the change's meaning. Group labels are New, Improved and Fixed. No additional visible controls are introduced in this layer. The UI layer contains the full copy audit and completed light/dark, desktop/phone-width browser review. Related: #486, #583
nixuuu
added a commit
that referenced
this pull request
Nov 12, 2026
After an update, Canopy now offers a dismissible “Updated to …” card that opens What's new for the actual previous/current version range. The dialog never opens automatically. The same grouped notes remain available in Settings → App updates and the Updates popover, with recent releases of the running build's channel. This is the UI layer of the two-PR What's new stack, based on `feat/whats-new`. Merge both layers together into dev. ## Behavior - Desktop tracks its own `app.getVersion()` in its Electron profile using the shared local-preference helper, across local/remote gateway switches. Linked-computer updates do not trigger its notice. Typed, sender-authorized IPC exposes only that history and the fixed, validated Pages notes JSON; renderer CSP stays unchanged. - Web tracks the web build version per gateway in localStorage. Its fixed public BFF notes endpoint fetches only Pages, without gateway credentials or a GitHub API fallback. - Mobile tracks the JS bundle version per install, independently of pairing, covering OTA and store updates. Add App updates to shared Settings navigation. The existing candidate-OTA notes preview also uses structured Pages notes. Changes are JS-only; no native files, modules, dependencies or app/fingerprint configuration changed. - First launch, unknown history and downgrades establish a baseline. Dismissal/relaunch retains the last update range for later visits. New / Improved / Fixed entries are deduplicated, with small scope tags and PR links. Recent releases stop at the running version. Loading, missing/truncated history, errors, retry and full GitHub Releases links are explicit. - Reuse the shared dialog/sheet, disclosure, controls, theme and motion tokens, including reduced motion. The launch notice floats above content without changing layout. The phone closes Updates before presenting What's new. ## Validation - 15 focused unit tests passed, 77 assertions across the stack, including desktop history durability/restarts, invalid local storage, many skipped versions, channel changes, bounded archive retention after GitHub pruning, and archive-read failures. No web UI tests added. - `bun install --frozen-lockfile`, repository `bun run lint`, `bun run format:check`, changed-mobile-file ESLint and `git diff --check` passed. The Pages workflow passes actionlint with actionlint 1.7.12 and shellcheck 0.11.0. - Reviewed the code paths for scope isolation, fixed public fetch destinations, IPC authorization, safe PR links, first install, development builds, downgrade, channel promotion, publication lag, missing history, network/storage failure and retained ranges. - The complete stack passed `gen:check`, `typecheck`, `lint`, `format:check` and the production web build in the assigned remote review checkout, using `nice -n 10`. Full test shards run in CI. - Real Chromium review with fixture notes: `.133 → .146` shows a dismissible card and grouped notes; duplicate PRs and other-channel entries are excluded; first install is silent; dismissal/reload preserves the range without replaying the card; Settings → App updates and the Updates popover open the notes; Recent releases includes current and older versions. Reviewed light/dark, 1440×900 desktop and 390×844 phone widths, long summaries/scopes, wrapping, overlay seams, footer, focus and Escape. Notes requests use the fixture endpoint; the isolated updater source intentionally remains unavailable. No live GitHub API data was used. - EAS CLI 27.4.1 fingerprints were generated at the actual dev base and feature head, in the same local path using `nice -n 19`. iOS stays `6ddec9ef559ee0095ac33e94ff9418a942053b17`; Android stays `5f6eae3ab278f1cd543e9ed763f923a319b65ec9`. No native build or OTA publication was performed. Native mobile rendering and a packaged Electron launch were not exercised. - The assigned remote review environment was cleaned up: browser closed, own web/gateway processes stopped, PostgreSQL container removed, checkout and fixture artifacts removed, all three assigned ports free. Verification artifacts stay outside the repository. ## Copy audit (§8) - No post-update explanation → `Updated to <version>` with `See what's new` and a labelled `Dismiss update notice` control. One clear outcome and one action; no blocking launch dialog. - Developer release headings/commit prefixes → `New`, `Improved`, `Fixed`, capitalized plain summaries, separate scope tags and PR links. Navigation labels use the requested `What's new`; actions use verbs. No new glossary term, jargon, humour or color-only meaning. - Missing/error notes → `Could not load release notes. Retry or view releases on GitHub.` / `Some release notes are not available yet. Retry or view releases on GitHub.` The text states the issue and recovery action. Empty notes say `No changes listed for this version.` Full releases remain reachable. - `From <previous> to <current>` records the actual range; `Recent releases` separates manual browsing. Dates use Intl formatting. No duplicated status or native/OTA implementation details on the surface. - Real browser review covers short/typical/long summaries and scopes, version range labels, shrinkable columns, truncated tags, compact controls, light/dark, desktop/phone widths, focus/Escape and overlay seams. Long summaries wrap; tags truncate with the complete scope retained in the title; actions and the footer stay readable. No humour or meaning conveyed by color alone. Related: #486, #583
nixuuu
added a commit
that referenced
this pull request
Nov 16, 2026
## Change Closing the last Windows window could throw `Object has been destroyed` after shutdown was latched, leaving services running and both Open and Quit in the tray inactive. Check BrowserWindow and WebContents liveness before session revocation, header authorization and IPC authorization; capture navigation targets before teardown. Local desktop sidebar preferences now use a stable scope instead of the gateway's random port, preserving grouping, project order and the Working section across restarts. Remote desktop and server scopes stay isolated. Existing port-derived records cannot be reliably migrated, so users may need to select their preferences once after upgrading. Fixes: #835 Fixes: #583 ## Verification - 39 focused tests passed: desktop session security, IPC delivery, app routes, quit guard and device-view persistence. Temp-directory checks passed. - Desktop typecheck, lint and formatting of edited files, and diff checks passed locally. - Real Electron on Linux reproduced the old destroyed-window getter failure. The patched lifecycle completed session revocation and quit when closing the last window, invoking Quit with live windows, and invoking Quit after closing the main window while settings remained open. - Updated desktop and UI/API documentation. No UI layout or copy changes; copy audit is not applicable. The full repository gate runs in CI. Native Windows verification remains outstanding; the Linux lifecycle smoke does not verify Windows integration or the full packaged runtime shutdown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
Sidebar project filters, project grouping/order and the Working section now stay on each device. Changing a filter on a phone no longer changes the desktop or web list.
Extend the existing typed
@canopy/domain/device-viewhelper with these values and a gateway-scoped storage key. Web and Electron use localStorage; mobile uses the already installed Expo document-file storage because filter lists can exceed SecureStore's value limit. Each scope seeds missing values once from the previous local record and legacy account settings. Persisted empty filters, false values and default widths take precedence. Subsequent account updates only affect pins. Existing proto fields and DB data remain readable and writable by old clients; linked-computer config sync excludes the view fields in both directions.Web scopes are opaque hashes of the BFF gateway target; remote desktop uses the pinned gateway certificate. Mobile scopes include the pinned certificate and pairing device ID, so route changes keep the same scope and another pairing cannot reuse it. Native dependencies, app configuration and native sources are unchanged; this is JS-only on mobile.
Preference audit
Updated
docs/ui-api.md,docs/mobile.mdanddocs/settings-map.mdto describe the storage boundary and remove the previous account-scoped sidebar guidance.Copy audit (§8)
Web and mobile Sidebar settings description:
Account→This device, matching the new scope. Existing glossary term, sentence case, no new controls/errors/actions, no new dynamic text or color-only meaning. Reviewed the settings copy and short/typical/long names at desktop and phone widths in light and dark. Other copy and layout are unchanged.Verification
bun install,bun run gen:check,bun run typecheck,bun run lint,bun run format:check, andbun run --filter @canopy/web buildpass. Ran the repository formatters and fixed spacing findings.git diff --checkpasses.device-view,config-sync,config-sync-recovery, andgithub-panel-cache: 23 pass, 0 fail, 176 assertions. The recovery test now waits for a newly synced pin instead of an already-set confirmation flag. No web UI tests were added.6ddec9ef559ee0095ac33e94ff9418a942053b17, Android5f6eae3ab278f1cd543e9ed763f923a319b65ec9; both unchanged. No native mobile simulator/device review was performed.The sidebar filter has been synced since the original sidebar implementation (
31fe41992), before the recent PRs; no recent introducing PR was found. The references below are context only.Related: #452
Related: #551