Skip to content

Fixes #38087: separate every memory usage footer item and say "Last used" - #38088

Merged
tomasmontielp merged 3 commits into
mainfrom
memory-card-footer-separators
Nov 19, 2026
Merged

tomasmontielp merged 3 commits into
mainfrom
memory-card-footer-separators

Conversation

@tomasmontielp

@tomasmontielp tomasmontielp commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes #38087

The usage footer on each memory card in Context Center → Memories now separates every item with the same "·", and says "Last used" instead of "Last".

  • Before: Cited 37 times · Last 1 day ago 👍 1 👎 8 Corrected 2 times
  • After: Cited 37 times · Last used 1 day ago · 👍 1 👎 8 · Corrected 2 times

How it works:

  • The footer builds the items it has (citations, last use, votes, corrections) and draws a "·" only between the ones shown. A card with only citations has no separator.
  • The "·" used by the row header is now one MetaSeparator component, shared by the header and the footer. It is hidden from screen readers.
  • New label label.last-used-time ("Last used {{time}}"), translated in all 21 locales.

Type of change:

  • Improvement

High-level design:

N/A — small UI change in one component plus one translation key.

Tests:

Use cases covered

  • A card with citations, last use, votes and corrections shows three separators and "Last used".
  • A card with only citations shows no separator.
  • Existing cases (zero counts hidden, legacy usage, screen-reader names for votes) are unchanged.

Unit tests

  • MemoriesView.test.tsx: 30 passed, including 2 new tests. The separator test fails on the old component.

Backend integration tests

  • Not applicable (no backend API changes).

Playwright (UI) tests

  • Not applicable: no spec asserts this footer's text.

Visual regression baselines

  • Not applicable: no baseline covers the Memories list.

Manual testing performed

  1. Built the UI with this change and served it from a local server.
  2. Opened Context Center → Memories, sorted by Most used.
  3. A memory with citations, votes and a correction showed Cited 37 times · Last used 1 day ago · 👍 1 👎 8 · Corrected 2 times; one without corrections showed Cited 31 times · Last used 1 day ago · 👍 1 👎 8.

Also: eslint and prettier clean, no tsc errors in the changed files, locale keys in order.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • I have added tests and listed them above.

RetriggerView in GreptileConfidence Score: 5/5

This PR appears safe to merge; no new actionable issues were found.

Summary

The memory-card footer now separates visible usage items consistently and says “Last used” with the relative time.

  • Memory cards separate usage details with dots and say “Last used”.

No new actionable issues found. tomasmontielp kept MetaSeparator because it names one fixed element reused in three places without exposing another component’s API; Greptile withdrew that finding.

Reviews (4) · Last reviewed commit: "ui: render the memory footer separator w..." · Reviewed by Greptile

);

const MetaSeparator: FC = () => (
<span

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use Typography here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, it's a Typography now (size text-xs).

Comment on lines +124 to +131
const MetaSeparator: FC = () => (
<Typography
aria-hidden
className="tw:text-utility-gray-400 tw:leading-none tw:select-none"
size="text-xs">
&middot;
</Typography>
);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Separator adds an unnecessary wrapper. MetaSeparator now wraps only Typography with fixed props and a dot. The repository guide forbids wrappers around core UI components unless they add non-trivial behavior. Use Typography directly at the call sites, or keep the plain span for this decorative separator.

Context Used: CLAUDE.md (source)

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keeping it: MetaSeparator takes no props and just names one fixed separator reused in three places, so it doesn't hide or re-expose Typography's API. Inlining would copy the same block three times, and going back to a plain span is what review asked to move away from.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That’s a fair point. MetaSeparator centralizes the same fixed, decorative Typography in three places without exposing a wider API, so calling it an unnecessary wrapper was too categorical. I’d withdraw the finding.

Should I remember this as a review guideline: a small, prop-less component is acceptable when it names and centralizes an identical UI element reused at multiple call sites?

@tomasmontielp
tomasmontielp force-pushed the memory-card-footer-separators branch from a9f50e0 to 0b925bb Compare November 19, 2026 13:18
@gitar-bot

gitar-bot Bot commented Nov 19, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟢 Low risk

The memory-card footer only changes displayed separators and translated wording, leaving operational behavior and stored data unchanged.

Separates every memory card footer item with the shared MetaSeparator and changes the label to "Last used" via the new label.last-used-time key across all 21 locales. Footer separators now appear only between shown items. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@tomasmontielp
tomasmontielp merged commit 4b0ca5b into main Nov 19, 2026
55 checks passed
@tomasmontielp
tomasmontielp deleted the memory-card-footer-separators branch November 19, 2026 14:43
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.

Memory cards: usage footer items run together and "Last" is ambiguous

2 participants