Skip to content

Fix lane viewer UI layout and datastream fetching limits#158

Open
tyronechrisharris wants to merge 2 commits into
mainfrom
fix-50-lanes-ui-and-data-fetching-13531737641037477763
Open

Fix lane viewer UI layout and datastream fetching limits#158
tyronechrisharris wants to merge 2 commits into
mainfrom
fix-50-lanes-ui-and-data-fetching-13531737641037477763

Conversation

@tyronechrisharris

Copy link
Copy Markdown
Owner

This pull request fixes two distinct issues reported when connecting numerous (e.g. 50) lanes to the viewer:

  1. MUI X DataGrid Height Collapse: Removed CSS display: block / none layout toggling on the main DataGrid parent containers in lane-view/page.tsx. By enforcing React-level conditional rendering, the tables correctly compute their dimensions upon mounting, fixing the useResizeContainer error.

  2. Missing Live Data/Alarms on Many Lanes: When the application bootstrapped, fetching datastreams for all lanes passed an exhaustive string of IDs (system: laneIds.join(",")) causing URI limit/silent truncation bugs with the searchDataStreams endpoint. The fetchDataStreams and fetchLaneControlStreams functions in Node.ts have been refactored to chunk requests in batches of 10. Additionally, updated string evaluation when discovering observed properties like ALARM_DEF to safely use .includes instead of strict matching to handle multiple URI formats.


PR created automatically by Jules for task 13531737641037477763 started by @tyronechrisharris

…id heights

- Fix `lane-view/page.tsx` rendering to conditionally wrap the `EventTable` and `StatusTable` instead of using `display: none / block` to prevent the `DataGrid` 0px height collapse via MUI resize container.
- Update `Node.ts` datastream fetching methods (`fetchDataStreams` and `fetchLaneControlStreams`) to chunk API calls in batches of 10. This avoids silent API truncation/URI length limits when 50+ lanes are requested at once.
- Update `LaneCollection.ts` to use `.includes(obsProperty)` instead of exact match (`===`) to ensure mock and varied stream definitions reliably match `ALARM_DEF` and `TAMPER_STATUS_DEF`.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

…id heights

- Fix `lane-view/page.tsx` rendering to conditionally wrap the `EventTable` and `StatusTable` instead of using `display: none / block` to prevent the `DataGrid` 0px height collapse via MUI resize container.
- Update `Node.ts` datastream fetching methods (`fetchDataStreams` and `fetchLaneControlStreams`) to chunk API calls in batches of 10. This avoids silent API truncation/URI length limits when 50+ lanes are requested at once.
- Update `LaneCollection.ts` to use `.includes(obsProperty)` instead of exact match (`===`) to ensure mock and varied stream definitions reliably match `ALARM_DEF` and `TAMPER_STATUS_DEF`.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
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.

1 participant