Skip to content

feat(object-browser): show last modified time for files - #470

Draft
alukach wants to merge 1 commit into
mainfrom
feat/object-last-modified
Draft

feat(object-browser): show last modified time for files#470
alukach wants to merge 1 commit into
mainfrom
feat/object-last-modified

Conversation

@alukach

@alukach alukach commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Closes #469 (partially — object listing only).

Files in the directory listing now show when they were last modified, between the file size and the download/copy/delete buttons.

  • Relative text ("3 weeks ago") via Intl.RelativeTimeFormat — no new dependency.
  • Exact UTC timestamp in a Radix tooltip and the title attribute, so it is reachable without a hover.
  • Directories are skipped: object stores have no prefix mtime, and the page currently synthesizes now for them, which would be misleading.
  • suppressHydrationWarning on the text: "now" differs between the server and client render, so a just-uploaded file can disagree by a few seconds.

MonoText became forwardRef so Radix's Tooltip can anchor to it.

Verification

  • src/lib/format.test.ts — unit tests for formatRelativeTime (seconds → years, unparseable input).
  • src/components/features/products/object-browser/DirectoryRow.test.tsx — asserts the relative text renders with a UTC title, and that directories don't get one.
  • npm run lint and npm run type-check clean for the touched files (the pre-existing recharts module-not-found errors are unrelated, that dependency isn't installed in this environment).

Not included

The issue also asks for a last-modified indicator at the repo/product level. That needs a product-level aggregate that isn't computed today, so it is left out here.

🤖 Generated with Claude Code

Files in the directory listing now show their last modified time as a
relative value ("3 weeks ago"), left of the download/copy/delete buttons,
with the exact UTC timestamp in a tooltip and the title attribute.

Directories are skipped: object stores have no prefix mtime, so the
listing synthesizes "now" for them.

Closes #469

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
source-cooperative Ready Ready Preview Jul 31, 2026 8:41pm

Request Review

@claude

claude Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Claude finished @alukach's task in 1m 51s —— View job


I'll analyze this and get back to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Proposed Feature] Last modified entry in the web interface

1 participant