Skip to content

feat(templates): improve highlight date and time in template list created/updated column#484

Open
Kraci wants to merge 1 commit into
mainfrom
smartly-highlight-date-and-time-in-template-list-en-1151
Open

feat(templates): improve highlight date and time in template list created/updated column#484
Kraci wants to merge 1 commit into
mainfrom
smartly-highlight-date-and-time-in-template-list-en-1151

Conversation

@Kraci

@Kraci Kraci commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Improve highlighting of the date and time in the Created/Updated columns of the Templates list to better visually group rows by day.

Why?

Templates are usually updated infrequently, so highlighting the date makes more sense. However, some teams create and update many templates.

Highlight rules

  • The date is always rendered using text/secondary.
  • The time is rendered using text/tertiary by default.
  • When the row directly above or below shares the same date, that row’s time is promoted to text/secondary.
  • This behavior applies regardless of which column the table is sorted by.
BEFORE AFTER
image image

@Kraci Kraci self-assigned this Jun 30, 2026
@cla-bot cla-bot Bot added the cla-signed label Jun 30, 2026
@linear-code

linear-code Bot commented Jun 30, 2026

Copy link
Copy Markdown

EN-1151

@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
web Ready Ready Preview, Comment Jun 30, 2026 1:54pm

Request Review

@Kraci Kraci force-pushed the smartly-highlight-date-and-time-in-template-list-en-1151 branch from 122e357 to dbd77cb Compare June 30, 2026 13:52

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 122e357cd4

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

const datePart = formatted?.datePart

const isTimePromoted = useMemo(() => {
if (!isSortedColumn || !datePart) return false

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Do not restrict time promotion to the sorted column

When the table is sorted by Updated (the default), isSortedColumn is false for every Created cell, so the same-day check is skipped even if the Created dates of the rows immediately above or below match; sorting by Created has the symmetric problem for Updated. Since the new highlighting is meant to apply to the Created/Updated date cells based on adjacent rows, this leaves one of the two columns permanently in the default tertiary time style.

Useful? React with 👍 / 👎.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant