#508 Re-Usable dashboard toggle button #518

Merged
b24johka merged 1 commit from #508-break-out-toggle-from-dashboard-with-css into team_1_week_3 2026-04-24 07:05:31 +00:00
Collaborator
  • Broke out the toggle switch into its own component with style sheet.
    Button supports custom state names (e.g. ON and OFF) and callback assignment, via parameters.

  • Created ToggleButton folder containing ToggleButton.js and ToggleButton.module.css.

  • Updated /components/index.js to expose new ToggleButton for import.

  • Integrated it with Dashboard.js.

  • Removed toggle switch entries from Dashboard.module.css. (!Please double-check that this change does not unintentionally break anything!).

- Broke out the toggle switch into its own component with style sheet. Button supports custom state names (e.g. ON and OFF) and callback assignment, via parameters. - Created ToggleButton folder containing ToggleButton.js and ToggleButton.module.css. - Updated /components/index.js to expose new ToggleButton for import. - Integrated it with Dashboard.js. - Removed toggle switch entries from Dashboard.module.css. (!Please double-check that this change does not unintentionally break anything!).
- Broke out the toggle switch into its own component and style sheet.'
+ Created ToggleButton folder containing ToggleButton.js and ToggleButton.module.css.
+ Updated /components/index.js to export new ToggleButton
- Integrated it with Dashboard.js.
- Removed toggle switch entries from Dashboard.module.css.
Collaborator

Review on #518

Whats done

Reviewed #518

Tested on Windows 11 using Firefox

  • App starts
    • The toggle button works as intended. I tried toggling edit mode on and off whit and without views.

Inspected following files: Dashboard.js, Dasboard.module.js, ToggleButton.js, ToggleButton.module.js.

  • All inspected files.
    • Indentation/code styling
      • Indentation is ok.
    • Naming convention
      • The naming convention is followed.
    • Comments
      • Overall good but could be more in ToggleButton.js.
    • General code quality
      • The general code quality is good.

Conclusion

  • Everything works as expected and the code looks good. The toggle button for edit mode is its own component whit its own css-file.
# Review on #518 ## Whats done Reviewed #518 ### Tested on Windows 11 using Firefox + App starts + The toggle button works as intended. I tried toggling edit mode on and off whit and without views. ### Inspected following files: Dashboard.js, Dasboard.module.js, ToggleButton.js, ToggleButton.module.js. + All inspected files. + Indentation/code styling + Indentation is ok. + Naming convention + The naming convention is followed. + Comments + Overall good but could be more in ToggleButton.js. + General code quality + The general code quality is good. ## Conclusion + Everything works as expected and the code looks good. The toggle button for edit mode is its own component whit its own css-file.
Collaborator

The review seems to have been provided in a good way, this will be merged.

The review seems to have been provided in a good way, this will be merged.
b24johka merged commit 382f062149 into team_1_week_3 2026-04-24 07:05:31 +00:00
Sign in to join this conversation.
No reviewers
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!518
No description provided.