-
Notifications
You must be signed in to change notification settings - Fork 1
Nginx data uploader #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Added nginx configuration to proxy /api requests to the FastAPI backend, enabling seamless API access from the frontend. Updated frontend API base logic to prefer relative paths when not running on localhost, improving compatibility for deployments on VPS and other hosts. Updated documentation to reflect these changes. Also updated .gitignore to exclude .dbc files except for example.dbc.
Integrates Luxon for robust timezone handling in the data-download component. Input and output timestamps are now interpreted and formatted according to the selected run's timezone, improving accuracy for users in different locales. Updates UI to display the active timezone and ensures payloads use correct ISO strings.
|
Summary
Testing
|
There was a problem hiding this comment.
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.
ℹ️ 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".
| setSelectedRunKey(runKey); | ||
| const run = runs.find((r) => r.key === runKey); | ||
| if (run) { | ||
| setStartInput(formatInputValue(run.start_utc)); | ||
| setEndInput(formatInputValue(run.end_utc)); | ||
| const zone = normalizeZone(run.timezone); | ||
| setSelectedRunTimezone(zone); | ||
| setStartInput(formatInputValue(run.start_utc, zone)); | ||
| setEndInput(formatInputValue(run.end_utc, zone)); | ||
| } else { | ||
| setSelectedRunTimezone(null); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preserve timestamps when clearing run selection
When a run is selected the inputs are formatted in that run’s timezone, but handleRunSelect only clears selectedRunTimezone when the user switches back to “Manual selection” and leaves startInput/endInput untouched. Later, handleFetch converts those strings using selectedRunTimezone (now null), which makes Luxon reinterpret them in the browser’s local timezone. If the run’s zone differs from the client zone, simply toggling the dropdown to manual shifts the query window by several hours before the user edits anything. Prior to this change the values were always stored in the client timezone, so the act of switching modes didn’t corrupt the timestamps. Please convert the existing inputs back to the local zone (or keep using the run zone) when clearing the selection so that manual mode reflects the same instants that were displayed.
Useful? React with 👍 / 👎.
When deselecting a run, input timestamps are now converted from the previously selected run's timezone to the local timezone, ensuring user-entered times remain consistent. This improves usability when toggling between run-based and manual time entry.
Added dynamic time zone labels and tooltips to the data download component. Time input fields now display the selected run's time zone or local system time, and chart hover tooltips show UTC-formatted timestamps for clarity.
* Proxy API requests via nginx and improve frontend API base handling Added nginx configuration to proxy /api requests to the FastAPI backend, enabling seamless API access from the frontend. Updated frontend API base logic to prefer relative paths when not running on localhost, improving compatibility for deployments on VPS and other hosts. Updated documentation to reflect these changes. Also updated .gitignore to exclude .dbc files except for example.dbc. * Add timezone support to data download component Integrates Luxon for robust timezone handling in the data-download component. Input and output timestamps are now interpreted and formatted according to the selected run's timezone, improving accuracy for users in different locales. Updates UI to display the active timezone and ensures payloads use correct ISO strings. * Preserve input times when switching run selection When deselecting a run, input timestamps are now converted from the previously selected run's timezone to the local timezone, ensuring user-entered times remain consistent. This improves usability when toggling between run-based and manual time entry. * Improve time zone handling in data download UI Added dynamic time zone labels and tooltips to the data download component. Time input fields now display the selected run's time zone or local system time, and chart hover tooltips show UTC-formatted timestamps for clarity.
No description provided.