Skip to content

Studio: add a Time format setting and drop the redundant desktop update note - #16448

Merged
shimmyshimmer merged 8 commits into
mainfrom
studio-time-format
Nov 2, 2026
Merged

shimmyshimmer merged 8 commits into
mainfrom
studio-time-format

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Adds a Time format option (System default, 12-hour, 24-hour) to Settings > General. The section that held it, Language, is renamed Display. Every time Studio shows follows it, including chat messages, the Library, scheduled tasks, browser history and the API monitor.

System default fixes English always showing 12-hour times. The UI locale has no region, so en-GB became en. When the UI language matches the browser's, the browser's clock now applies. Other languages keep their own convention.

The value is stored in localStorage, syncs across tabs and is cleared by "Reset all local preferences".

Also removes the note under the desktop app's update row ("The desktop app checks for new app versions automatically..."). The row above it already says this.

Verification: npm run typecheck, npm run i18n:check, npm test and npm run build pass, with a new tests/time-format.test.ts. In a local Studio, picking 24-hour switches an open chat from 1:07 PM to 13:07, and System default in an en-GB browser shows 13:07. Safari, Firefox and the Desktop app were not tested.

@danielhanchen

Copy link
Copy Markdown
Member

Frontend build + bundle sanity fails here on the i18n strict check, which is green on main. The six new settings.general.display.* keys (title, timeFormat, timeFormatDescription, timeFormatSystem, timeFormat12, timeFormat24) exist only in the English catalog. The check refuses an English fallback:

Missing keys (will fall back to en): 6
  - settings.general.display.title
  - settings.general.display.timeFormat
  ...
Missing keys above. Add them to every overlay, or run without --strict to accept the English fallback.

Adding those keys to each locale overlay (cs, nl and the rest the job lists) should clear it.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T05:58:52.575757Z f6d5a28 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@shimmyshimmer shimmyshimmer changed the title Studio: add a Time format setting (System default, 12-hour, 24-hour) Studio: add a Time format setting and drop the redundant desktop update note Nov 2, 2026

@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: a47d475ff8

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

})}
{new Date(activity.createdAt).toLocaleTimeString(
[],
withTimeFormat({ hour: "numeric", minute: "2-digit" }),

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 Subscribe research activity timestamps to time-format changes

If a research activity panel is already mounted when the time format changes, its timestamps retain the previous format. withTimeFormat() only reads localStorage; it does not subscribe to changes, and ActivityRow is memoized with no useTimeFormat() subscription. Changing the preference in Settings or another tab therefore updates chat message timestamps but leaves existing activity rows unchanged until they otherwise rerender or remount. Subscribe these rows to the preference, as the message timestamp components already do.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed in 2e71342: ActivityRow now subscribes with useTimeFormat(), so open rows reformat when the setting changes.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

Thanks, fixed in 2e71342: the six settings.general.display.* keys are now in every locale overlay, and npm run i18n:check:strict passes locally.

shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Nov 2, 2026
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@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: 2e71342247

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

}).format(date);
return new Intl.DateTimeFormat(
undefined,
withTimeFormat({ dateStyle: "medium", timeStyle: "medium" }),

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 Subscribe response details to time-format changes

If the response-details sheet is open when the time format changes in another tab, its Created, Started, and Finished timestamps retain the old format. withTimeFormat() only reads localStorage, and this sheet does not call useTimeFormat(), so the storage-event notification does not trigger a rerender. This leaves the sheet inconsistent with the subscribed chat timestamps until it otherwise rerenders or reopens. Subscribe the sheet to the preference before formatting these values.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed in f6d5a28: the details sheet subscribes with useTimeFormat(), and so does every other component that renders a formatted time (Library, scheduled tasks, API monitor, dictations, export, downloads).

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: f6d5a2865f

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@shimmyshimmer
shimmyshimmer merged commit 432344e into main Nov 2, 2026
@shimmyshimmer
shimmyshimmer deleted the studio-time-format branch November 2, 2026 06:00
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.

2 participants