Repository navigation
Fixes #38087: separate every memory usage footer item and say "Last used" - #38088
Conversation
| ); | ||
|
|
||
| const MetaSeparator: FC = () => ( | ||
| <span |
There was a problem hiding this comment.
Can we use Typography here
There was a problem hiding this comment.
Done, it's a Typography now (size text-xs).
| const MetaSeparator: FC = () => ( | ||
| <Typography | ||
| aria-hidden | ||
| className="tw:text-utility-gray-400 tw:leading-none tw:select-none" | ||
| size="text-xs"> | ||
| · | ||
| </Typography> | ||
| ); |
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
a9f50e0 to
0b925bb
Compare
Code Review ✅ Approved 🟢 Low riskThe 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 VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
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".
Cited 37 times · Last 1 day ago 👍 1 👎 8 Corrected 2 timesCited 37 times · Last used 1 day ago · 👍 1 👎 8 · Corrected 2 timesHow it works:
MetaSeparatorcomponent, shared by the header and the footer. It is hidden from screen readers.label.last-used-time("Last used {{time}}"), translated in all 21 locales.Type of change:
High-level design:
N/A — small UI change in one component plus one translation key.
Tests:
Use cases covered
Unit tests
MemoriesView.test.tsx: 30 passed, including 2 new tests. The separator test fails on the old component.Backend integration tests
Playwright (UI) tests
Visual regression baselines
Manual testing performed
Cited 37 times · Last used 1 day ago · 👍 1 👎 8 · Corrected 2 times; one without corrections showedCited 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:
Fixes #<issue-number>above.

Confidence 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.
No new actionable issues found.
tomasmontielpkeptMetaSeparatorbecause 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