[PR #1455] [MERGED] fix(long-term-memory): serve focus rings and accent borders on every supported Engine (1.4.50) #1470

Closed
opened 2026-10-21 05:11:49 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1455
Author: @Promansis
Created: 10/18/2026
Status: ✅ Merged
Merged: 10/18/2026
Merged by: @Promansis

Base: staging ← Head: fix(long-term-memory)/1451-engine-min-focus-accent


📝 Commits (2)

  • 2c28276 fix(long-term-memory): serve focus rings and accent borders on every supported Engine (#1451)
  • b37b9e7 Merge upstream/staging into fix(long-term-memory)/1451-engine-min-focus-accent; release long-term-memory 1.4.50

📊 Changes

21 files changed (+135 additions, -69 deletions)

View changed files

➕ artifacts/long-term-memory-1.4.50.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+6 -6)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/long-term-memory/CHANGELOG.md (+4 -0)
📝 packages/long-term-memory/client.js (+17 -12)
📝 packages/long-term-memory/manifest.json (+3 -3)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryDetail.tsx (+5 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/review/ReviewQueue.tsx (+1 -1)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/ActivityView.tsx (+2 -1)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/shared-controls.tsx (+1 -1)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/sources/DestinationScopePanel.tsx (+4 -1)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/vault/BulkAvailabilityWorkbench.tsx (+4 -1)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/vault/MemoryAvailabilityWorkbench.tsx (+4 -1)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/vault/MemoryVault.tsx (+23 -7)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/long-term-memory-feedback-clarity-ui.regression.mjs (+11 -3)

...and 1 more files

📄 Description

Linked issue

Closes #1451

Why this change

Long-Term Memory ships no stylesheet, so every utility class it uses must already be generated by the Engine's own CSS. Two class strings are not generated by the Engine releases inside the manifest's range (>=2.4.1). This is tracker item UI-3, left open by the #1374 review.

Class 2.4.1–2.4.4 2.4.6 2.5.0
focus-visible:outline-[var(--ring)] absent absent present
border-[var(--marinara-editor-accent)]/30 absent present present

On those Engines, keyboard focus on ten Vault, availability, destination and Activity disclosure rows showed the browser's default ring instead of the Marinara one, and three status chips had a full-strength accent border instead of a soft one.

What changed

Same pattern as #1374: a data attribute and a plain rule in the screen's existing <style> block, not a new class.

 <summary className="… mari-editor-action
-  focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--ring)]"
+  data-ltm-tab-focus>                     # existing rule, LongTermMemoryDetail.tsx

 <style> (LongTermMemoryDetail.tsx)
   [data-ltm-tab-focus]:focus-visible { outline: 2px solid var(--marinara-editor-focus-ring); }
+  [data-ltm-accent-border],
+  [data-ltm-status="success"]:not(.mari-editor-panel),
+  [data-ltm-freshness="fresh"] {
+    border-color: color-mix(in srgb, var(--marinara-editor-accent) 30%, transparent);
+  }
  • Focus (10 sites): MemoryVault.tsx (6), BulkAvailabilityWorkbench.tsx, MemoryAvailabilityWorkbench.tsx, DestinationScopePanel.tsx, ActivityView.tsx. The three focus-visible:* classes are replaced by data-ltm-tab-focus. No new rule was needed.
  • Accent border (3 sites): one rule, which is what Tailwind generates for /30. The Vault "Edited manually" chip gets data-ltm-accent-border. StatusSurface (success tone) and the Review freshness chip already carry data-ltm-status and data-ltm-freshness, so they match by those. :not(.mari-editor-panel) keeps success panels from gaining a border they never had, because the unlayered .mari-editor-panel rule used to win over the utility class.
  • text-[var(--marinara-editor-accent)] stays, because 2.4.1 serves it. engine.min is unchanged.
  • long-term-memory 1.4.50: CHANGELOG entry, version, manifest, rebuilt client.js, artifact and catalog entries. At land, the branch was merged with upstream/staging (1.4.49, #1454); only the CHANGELOG conflicted, and reland resolved it. The release commit also corrects the note's Engine range to what the tags show (focus ring missing through 2.4.6, soft border through 2.4.4).

Diff: source +44/−13 lines, tests +30/−4, CHANGELOG +4, before the release merge.

Not in this PR: making the host-styles guard compile against the engine.min tag as well as the local Engine. That needs a second Engine checkout in CI. This PR adds a name-based guard instead (below), which is the follow-up's placeholder.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none. It fixes styling on Engines already in range.
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none
  • Merge danger: two-way door. Presentation only, and a revert restores the old classes. Blast radius: focus rings on ten disclosure rows and the borders of three chips.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

These checks were run by the coding agent, not by a person. Engine checkout 2039583ca (v2.4.6-2323), Node v24.15.0.

  • Guard added in tests/long-term-memory-host-styles.regression.ts: the client source must not contain the three class strings known to be absent at engine.min. The existing compile against the local Engine still passes (5238 host classes, 0 missing).
  • tests/long-term-memory-feedback-clarity-ui.regression.mjs now asserts the attribute and the rule instead of the classes, including the Vault group summary.
  • Engine class counts above come from git grep over the whole Engine tree at each tag.
  • On source commit 2c282766e, these passed: test-ltm.sh feedback-clarity-ui, browser and loading, the host-styles guard, test-fast.sh and the four catalog gates.
  • On release HEAD b37b9e7e3 (after merging 1.4.49), these all passed:
    • A package rebuild, which left the tree clean, so the committed outputs match the source.
    • test-fast.sh (npm run check, git diff --check) and typecheck-packages long-term-memory.
    • test-catalog-lanes, validate-package-locales, validate-catalog and catalog-release-notes.
    • test-ltm.sh browser, feedback-clarity-ui and loading, plus the host-styles regression.
  • Not done: a rendered check on Engine 2.4.1. Only 2 of the 10 attribute sites are asserted directly; the guard covers the absence of the old classes everywhere.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

UI evidence (if applicable)

No screenshots. On the local Engine (2.5.0 classes) nothing changes on screen. The difference shows only on Engine 2.4.1 to 2.4.6.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/1455 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/18/2026 **Status:** ✅ Merged **Merged:** 10/18/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(long-term-memory)/1451-engine-min-focus-accent` --- ### 📝 Commits (2) - [`2c28276`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2c282766e4ab8c357abb7f9b22ae918e765017f5) fix(long-term-memory): serve focus rings and accent borders on every supported Engine (#1451) - [`b37b9e7`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b37b9e7e35723516d641af3901954d580a067b22) Merge upstream/staging into fix(long-term-memory)/1451-engine-min-focus-accent; release long-term-memory 1.4.50 ### 📊 Changes **21 files changed** (+135 additions, -69 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.4.50.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/long-term-memory/CHANGELOG.md` (+4 -0) 📝 `packages/long-term-memory/client.js` (+17 -12) 📝 `packages/long-term-memory/manifest.json` (+3 -3) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryDetail.tsx` (+5 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/review/ReviewQueue.tsx` (+1 -1) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/ActivityView.tsx` (+2 -1) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/shared-controls.tsx` (+1 -1) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/sources/DestinationScopePanel.tsx` (+4 -1) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/vault/BulkAvailabilityWorkbench.tsx` (+4 -1) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/vault/MemoryAvailabilityWorkbench.tsx` (+4 -1) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/vault/MemoryVault.tsx` (+23 -7) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/long-term-memory-feedback-clarity-ui.regression.mjs` (+11 -3) _...and 1 more files_ </details> ### 📄 Description ## Linked issue Closes #1451 ## Why this change Long-Term Memory ships no stylesheet, so every utility class it uses must already be generated by the Engine's own CSS. Two class strings are not generated by the Engine releases inside the manifest's range (`>=2.4.1`). This is tracker item UI-3, left open by the #1374 review. | Class | 2.4.1–2.4.4 | 2.4.6 | 2.5.0 | |---|---:|---:|---:| | `focus-visible:outline-[var(--ring)]` | absent | absent | present | | `border-[var(--marinara-editor-accent)]/30` | absent | present | present | On those Engines, keyboard focus on ten Vault, availability, destination and Activity disclosure rows showed the browser's default ring instead of the Marinara one, and three status chips had a full-strength accent border instead of a soft one. ## What changed Same pattern as #1374: a data attribute and a plain rule in the screen's existing `<style>` block, not a new class. ```diff <summary className="… mari-editor-action - focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--ring)]" + data-ltm-tab-focus> # existing rule, LongTermMemoryDetail.tsx <style> (LongTermMemoryDetail.tsx) [data-ltm-tab-focus]:focus-visible { outline: 2px solid var(--marinara-editor-focus-ring); } + [data-ltm-accent-border], + [data-ltm-status="success"]:not(.mari-editor-panel), + [data-ltm-freshness="fresh"] { + border-color: color-mix(in srgb, var(--marinara-editor-accent) 30%, transparent); + } ``` - **Focus (10 sites):** `MemoryVault.tsx` (6), `BulkAvailabilityWorkbench.tsx`, `MemoryAvailabilityWorkbench.tsx`, `DestinationScopePanel.tsx`, `ActivityView.tsx`. The three `focus-visible:*` classes are replaced by `data-ltm-tab-focus`. No new rule was needed. - **Accent border (3 sites):** one rule, which is what Tailwind generates for `/30`. The Vault "Edited manually" chip gets `data-ltm-accent-border`. `StatusSurface` (success tone) and the Review freshness chip already carry `data-ltm-status` and `data-ltm-freshness`, so they match by those. `:not(.mari-editor-panel)` keeps success panels from gaining a border they never had, because the unlayered `.mari-editor-panel` rule used to win over the utility class. - `text-[var(--marinara-editor-accent)]` stays, because 2.4.1 serves it. `engine.min` is unchanged. - `long-term-memory` 1.4.50: CHANGELOG entry, version, manifest, rebuilt `client.js`, artifact and catalog entries. At land, the branch was merged with `upstream/staging` (1.4.49, #1454); only the CHANGELOG conflicted, and reland resolved it. The release commit also corrects the note's Engine range to what the tags show (focus ring missing through 2.4.6, soft border through 2.4.4). Diff: source +44/−13 lines, tests +30/−4, CHANGELOG +4, before the release merge. Not in this PR: making the host-styles guard compile against the `engine.min` tag as well as the local Engine. That needs a second Engine checkout in CI. This PR adds a name-based guard instead (below), which is the follow-up's placeholder. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none. It fixes styling on Engines already in range. - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none - **Merge danger:** two-way door. Presentation only, and a revert restores the old classes. Blast radius: focus rings on ten disclosure rows and the borders of three chips. ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes These checks were run by the coding agent, not by a person. Engine checkout `2039583ca` (`v2.4.6-2323`), Node `v24.15.0`. - **Guard added** in `tests/long-term-memory-host-styles.regression.ts`: the client source must not contain the three class strings known to be absent at `engine.min`. The existing compile against the local Engine still passes (5238 host classes, 0 missing). - `tests/long-term-memory-feedback-clarity-ui.regression.mjs` now asserts the attribute and the rule instead of the classes, including the Vault group summary. - Engine class counts above come from `git grep` over the whole Engine tree at each tag. - On source commit `2c282766e`, these passed: `test-ltm.sh` `feedback-clarity-ui`, `browser` and `loading`, the host-styles guard, `test-fast.sh` and the four catalog gates. - On release HEAD `b37b9e7e3` (after merging 1.4.49), these all passed: - A package rebuild, which left the tree clean, so the committed outputs match the source. - `test-fast.sh` (`npm run check`, `git diff --check`) and `typecheck-packages long-term-memory`. - `test-catalog-lanes`, `validate-package-locales`, `validate-catalog` and `catalog-release-notes`. - `test-ltm.sh` `browser`, `feedback-clarity-ui` and `loading`, plus the host-styles regression. - Not done: a rendered check on Engine 2.4.1. Only 2 of the 10 attribute sites are asserted directly; the guard covers the absence of the old classes everywhere. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) No screenshots. On the local Engine (2.5.0 classes) nothing changes on screen. The difference shows only on Engine 2.4.1 to 2.4.6. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:11:49 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#1470
No description provided.