Skip to content

fix(ui): polish composer, library, and responsive settings - #754

Open
dovvnloading wants to merge 3 commits into
mainfrom
polish/workspace-ui
Open

dovvnloading wants to merge 3 commits into
mainfrom
polish/workspace-ui

Conversation

@dovvnloading

Copy link
Copy Markdown
Owner

Why

At an 800px window width, focusing Parameters moved the composer control by about 50px. Library actions covered thread titles and dates, while Settings retained a vertical category column that squeezed generation fields to 125px. Memory text entered into “Add a fact” was outside the unsaved-change guard, and the compact library lacked complete modal keyboard behavior.

This pass preserves Cortex’s warm neutral palette, copper accent, archive cover, and transcript structure while making those working details precise.

Changes

  • Keep composer controls stationary as keyboard guidance appears. Put complete runtime recovery text below the toolbar, improve attachment focus/error descriptions, and align local/cloud parameter panels.
  • Move notifications above the work area so model-selection and Settings confirmations leave Send clickable.
  • Give library titles their own full-width reading area above dates and actions, retaining a full-row selection target and stable group controls.
  • Adapt Settings to its available container width. At 800×600 with the library open, generation fields now have 494px. Preserve the compact active underline, reset category scroll position, and show clear save status.
  • Save memory-only drafts through the persistent footer and protect unadded facts on navigation. Acknowledge the submitted snapshot, preserve newer input, and handle independent memory/settings writes and partial failure.
  • Make compact history a Base UI drawer with contained focus, explicit dismissal, nested Escape ownership, and reliable focus restoration. Keep editor drafts across resizing and preserve focus already moved to the page.
  • Retain outer margins for narrow delete confirmations and allow dialog actions to wrap.

Evidence and validation

Check Result
TypeScript application, tooling, and browser tests Passed
ESLint Zero errors; two existing warnings in unchanged useModelJobs.ts
Full Vitest coverage run 1,447 tests passed across 109 files
Coverage 93.40% lines; 90.85% statements; 87.06% branches; 90.78% functions
Full Playwright suite 63 passed
Production build Passed
Artifact-boundary review 26 passed; zero failed or blocked
Diff whitespace check Passed

The unchanged baseline reproduced the 800px composer displacement. A browser hit test reproduced the notification covering Send. Regressions also cover long-title geometry, date/action separation, memory save collisions, category navigation, nested menu/dialog dismissal, and responsive focus. The provider-refresh scenario passed five repeated runs after correcting delayed focus restoration on resize.

Validation used Linux Chromium 158 with a temporary runner configuration selecting the available browser executable; the repository’s tests and web servers were retained. The production dependencies and lockfiles are unchanged.

Scope and limits

Production changes are confined to the frontend. Backend/API contracts and persistence formats are unchanged. Memory and settings remain independent existing compare-and-swap writes, rather than a transaction. Library rows intentionally use more vertical space to keep titles, dates, and actions readable.

The packaged Windows WebView2 smoke tier and full Python backend suite were not run here. Existing deterministic real-API browser flows and the artifact-boundary review passed. The two existing lint warnings and Vite’s future config-loader advisory remain in untouched code.

Rollback

Revert the two commits in this PR; no data migration is required.

Copy link
Copy Markdown
Owner Author

CI failure audit and remediation

Root cause: In Quality run 46798263969, npm ci succeeded but npm audit --audit-level=high rejected cross-spawn@7.0.6 (GHSA-ghv9-86vm-4v8m / CVE-2026-137199). The heavy gate subsequently failed because FRONTEND_RESULT=failure. Browser tests, all backend shards, Windows package/smoke, lint/contracts, dependency review and CodeQL passed on that head. The frontend unit/coverage/build steps did not execute after the audit failure.

Baseline: main and the original PR head had the same frontend/package-lock.json blob. ESLint 10.15.0 already declares cross-spawn: ^7.0.6; this is an inherited, newly flagged dev-dependency issue, not a demonstrated UI regression.

Fix: 27a763e updates the sole locked copy to 7.1.2, including the registry URL and integrity hash. This keeps the compatible 7.x line and includes subsequent fixes and the Windows compatibility repair. No manifest changes, overrides, unrelated dependency updates, application changes or CI exceptions. The package metadata was cross-checked with upstream and the integrity with independent Dependabot-generated lockfile patches (nodejs/undici#6289, haskell/vscode-haskell#1419, PrivateBin/PrivateBin#2158).

Verification: Parsed both lockfiles and checked that exactly three fields in the one package entry changed; all 438 package records and other dependency metadata were preserved. Verified the committed diff and updated PR head. Direct npm registry access was unavailable from the audit environment, so a fresh npm ci, audit, unit coverage and build are not yet verified on the new head. New Quality run 46886467917 is in progress and must pass the unchanged gates before merge. No force-push or merge was performed.

Rollback: No migration or runtime change. Reverting only the UI commits can retain the dependency fix. Reverting the dependency commit itself would restore the vulnerable lockfile and is not recommended.

This branch has not been deployed

No deployments
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.

1 participant