Repository navigation
Studio: add a Time format setting and drop the redundant desktop update note - #16448
Conversation
|
Adding those keys to each locale overlay (cs, nl and the rest the job lists) should clear it. |
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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" }), |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
Fixed in 2e71342: ActivityRow now subscribes with useTimeFormat(), so open rows reformat when the setting changes.
…ctivity times on a time format change
|
Thanks, fixed in 2e71342: the six |
|
@codex review |
There was a problem hiding this comment.
💡 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" }), |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
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).
|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
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 testandnpm run buildpass, with a newtests/time-format.test.ts. In a local Studio, picking 24-hour switches an open chat from1:07 PMto13:07, and System default in an en-GB browser shows13:07. Safari, Firefox and the Desktop app were not tested.