#702 Auto update TemperatureView #720

Merged
a22erigr merged 1 commit from #702-auto-update-temperature into team_2_week_4 2026-05-05 09:47:58 +00:00
Collaborator

Added auto refresh to TemperatureView. Every 15 seconds a counter increases which causes the temperature card to check for new data.
A side note, the time shown on screenshots is when the sensor recorded the reading, not when the card refreshed.
Screenshot 2026-05-04 172116Screenshot 2026-05-04 172125

Added auto refresh to TemperatureView. Every 15 seconds a counter increases which causes the temperature card to check for new data. A side note, the time shown on screenshots is when the sensor recorded the reading, not when the card refreshed. ![Screenshot 2026-05-04 172116](/attachments/c8549b27-3bf2-45c4-be32-444d6a11daa4)![Screenshot 2026-05-04 172125](/attachments/284a8d72-0795-41b7-a551-d77899703473)
Added auto refresh to TemperatureView. Every 15 seconds a counter increases which causes the temperature data to be fetched again.
Author
Collaborator

Unit test added for useTemperature that verifies the hook refetches data when the refresh counter changes.

Unit test added for useTemperature that verifies the hook refetches data when the refresh counter changes.
Collaborator

Review on #720

Whats done

Tested on macOS using Chrome

  • App starts
    • Checked that temperature data is displayed correctly.
    • Verified that the temperature data updates automatically every 15 seconds.
    • Tested switching between sensors.

Inspected following files

  • TemperaturView.js

    • Indentation/code styling
      • Follows standard
    • Naming convention
      • Follows standard
    • Comments
      • Looks good
    • General code quality
      • The refetch logic is well implemented and works as expected
  • useTemperature.js

    • Indentation/code styling
      • Follows standard
    • Naming convention
      • Follows standard
    • Comments
      • Looks good
    • General code quality
      • No issues found
  • useTemperature.test.js

    • Indentation/code styling
      + Follows standard
      • Naming convention
        • Follows standard
      • Comments
        • Looks good
      • General code quality
        • The test is clear and verifies that data is refetched when refreshCount changes

What needs to be done

  • No issues found.

Conclusion

  • Works as intended and the code is ready to be merged.
# Review on #720 ## Whats done ### Tested on macOS using Chrome + App starts + Checked that temperature data is displayed correctly. + Verified that the temperature data updates automatically every 15 seconds. + Tested switching between sensors. ### Inspected following files + TemperaturView.js + Indentation/code styling + Follows standard + Naming convention + Follows standard + Comments + Looks good + General code quality + The refetch logic is well implemented and works as expected + useTemperature.js + Indentation/code styling + Follows standard + Naming convention + Follows standard + Comments + Looks good + General code quality + No issues found + useTemperature.test.js + Indentation/code styling + Follows standard + Naming convention + Follows standard + Comments + Looks good + General code quality + The test is clear and verifies that data is refetched when refreshCount changes ## What needs to be done + No issues found. ## Conclusion + Works as intended and the code is ready to be merged.
a22erigr merged commit 24687a5935 into team_2_week_4 2026-05-05 09:47:58 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 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!720
No description provided.