Add button to change current sensor #338

Closed
opened 2026-04-16 07:36:44 +00:00 by a24vinla · 2 comments
Collaborator

When adding a temperature view we want to show sensor 1 first, but have a button somewhere that enables the user to change between all available sensors.

Parent Issue: #337

When adding a temperature view we want to show sensor 1 first, but have a button somewhere that enables the user to change between all available sensors. Parent Issue: #337
Collaborator

Changes

  • Added two buttons to navigate sensors

    • styling from premade buttons will be added later.
    • Changes in TemperatureView.js
  • Population of sensors array

    • useFetchMockupSensors.js file created
    • /service/tempService/Program.cs added app.MapGet("/temperature/sensors", async () => part to get unique sensors
    • Changes in TemperatureView.js
    • its now possible to chage/add sensors in tempSensormockup and get them on the view(If changed you need to remove and add the card a new)

    Known issues

  • The styling of buttons/text

  • When view is created in inspect -> network you can see that the first get request fail as it sends a null value, it only happens 1 time at creation and is not vissible to users but might need a fix in future

  • The view uppdate when changed but dynamic update of view is a seperate issue

### Changes - Added two buttons to navigate sensors - styling from premade buttons will be added later. - Changes in TemperatureView.js - Population of sensors array - useFetchMockupSensors.js file created - /service/tempService/Program.cs added `app.MapGet("/temperature/sensors", async () =>` part to get unique sensors - Changes in TemperatureView.js - its now possible to chage/add sensors in tempSensormockup and get them on the view(If changed you need to remove and add the card a new) ### Known issues - The styling of buttons/text - When view is created in inspect -> network you can see that the first get request fail as it sends a null value, it only happens 1 time at creation and is not vissible to users but might need a fix in future - The view uppdate when changed but dynamic update of view is a seperate issue
Collaborator

The issue have been merged #423

The issue have been merged #423
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Andras/BoundlessFlowCampus2K#338
No description provided.