Repository navigation
Conversation
Codex Review Summary: ✅ CompletedThis 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: f8042cb706
ℹ️ 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".
| }, | ||
| }, | ||
| scales: { | ||
| x: { ticks: { color: theme.textSecondary, maxRotation: 0, autoSkip: true, maxTicksLimit: 6 }, grid: { color: theme.grid } }, |
There was a problem hiding this comment.
Use a time-proportional x-axis for quota history
When observations have unequal gaps—for example, samples one hour apart followed by a two-day polling gap—this configuration leaves the line chart on Chart.js's default category x-scale. The timestamps are only label strings, so both intervals occupy the same horizontal distance. Because labels combine change points from every series, another model's observations also alter the apparent consumption rate of an otherwise unchanged series. Supply numeric timestamp coordinates with a linear or time x-scale, formatting ticks separately.
Useful? React with 👍 / 👎.
| }, [series]) | ||
|
|
||
| const data = useMemo<ChartData<'line', Array<number | null>, string>>(() => ({ | ||
| labels: labels.map((time) => new Date(time).toLocaleString()), |
There was a problem hiding this comment.
Preserve the project timezone in observation labels
When the browser timezone differs from the server's configured TZ, this conversion shifts every chart label and tooltip into the browser's zone without identifying that zone. For example, an API observation at 08:00+08:00 appears as midnight in a UTC browser. The existing CodexQuotaHistoryPanel deliberately uses createQuotaHistoryDateTimeFormatter to preserve the API's wall-clock time, so the new panel gives inconsistent times for the same instant. Preserve the source offset or project timezone and reuse the shared formatter.
Useful? React with 👍 / 👎.
Summary
Support quota history recording, querying, and multi-series chart visualization for �ntigravity credentials:
Verification
pm --prefix web run typecheck and
pm --prefix web run build — passed.