Add selectables to tempService year, month and week #429

Closed
opened 2026-04-20 08:00:29 +00:00 by a24timsv · 2 comments
Collaborator

Right now the Views for average temperatur of year and month default to 2026 and February. See code snippet below

if (view === 'TemperatureMonthView') {
  addNewView(<TemperatureMonthView year={2026} month={'February'} />);
}
if (view === 'TemperatureYearView') {
  addNewView(<TemperatureYearView year={2026} />);
}

The frontend component needs to be able to select which year, month and/or week to display instead of this being hardcoded.

Relevant issue: #20

Right now the Views for average temperatur of year and month default to 2026 and February. See code snippet below ```csharp if (view === 'TemperatureMonthView') { addNewView(<TemperatureMonthView year={2026} month={'February'} />); } if (view === 'TemperatureYearView') { addNewView(<TemperatureYearView year={2026} />); } ``` The frontend component needs to be able to select which year, month and/or week to display instead of this being hardcoded. Relevant issue: #20
Collaborator

Added the ability to choose year and month, with the default year and month being the present. Needs to be styled to look better (buttons or arrows). Pull request: #441

Added the ability to choose year and month, with the default year and month being the present. Needs to be styled to look better (buttons or arrows). Pull request: https://git.webug.se/Andras/BoundlessFlowCampus2K/pulls/441
Collaborator

PR: #831

PR: https://git.webug.se/Andras/BoundlessFlowCampus2K/pulls/831
Sign in to join this conversation.
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#429
No description provided.