#927-Default-Layout-options-endpoint #1118

Merged
a22erigr merged 4 commits from #927-Default-Layout-options-endpoint into team_2_week_7 2026-05-25 09:11:30 +00:00
Collaborator

Added refresh token## Environment

This was developed on an Arch-based Linux distribution.

What has been done?

Before I break down what I have done, I didn't really know exactly what was wanted, so I just implemented the bullet points—they were:

  1. A default,
  2. A way to load it.

I think that is what I have done. Please tell me if I have misunderstood the assignment, and I will fix it if so be the case.

  • frontend/src/pages/dashboard/Dashboard.js
    • Removed unused import.
  • frontend/src/pages/dashboard/utils/SaveGrid.js
    • Added a function to set the layout to the default.
    • Also set the default to be the one to be loaded first if no "getFromLocalStorage" value is set.
  • frontend/src/pages/dashboard/utils/presets/DefaultLayout.json
    • This is just a basic layout example.

Issue

#927

# Added refresh token## Environment This was developed on an Arch-based Linux distribution. ## What has been done? Before I break down what I have done, I didn't really know exactly what was wanted, so I just implemented the bullet points—they were: 1. A default, 2. A way to load it. I think that is what I have done. Please tell me if I have misunderstood the assignment, and I will fix it if so be the case. * **frontend/src/pages/dashboard/Dashboard.js** * Removed unused import. * **frontend/src/pages/dashboard/utils/SaveGrid.js** * Added a function to set the layout to the default. * Also set the default to be the one to be loaded first if no "getFromLocalStorage" value is set. * **frontend/src/pages/dashboard/utils/presets/DefaultLayout.json** * This is just a basic layout example. ## Issue #927
c22abdal approved these changes 2026-05-25 09:09:41 +00:00
c22abdal left a comment
Collaborator

Review

The implementation works as expected, and the default layout is correctly loaded when no saved layout exists in local storage. The added reset/default functionality also works well, and the cleanup of unused imports is appreciated.

One thing that may need clarification is the PR title in the description mentioning refresh tokens, since the actual changes are related to dashboard layout presets and default loading behavior. It may be good to rename or update the PR description to better reflect the implemented functionality.

# Review The implementation works as expected, and the default layout is correctly loaded when no saved layout exists in local storage. The added reset/default functionality also works well, and the cleanup of unused imports is appreciated. One thing that may need clarification is the PR title in the description mentioning refresh tokens, since the actual changes are related to dashboard layout presets and default loading behavior. It may be good to rename or update the PR description to better reflect the implemented functionality.
a22erigr merged commit b852a5cc91 into team_2_week_7 2026-05-25 09:11:30 +00:00
a22erigr deleted branch #927-Default-Layout-options-endpoint 2026-05-25 09:11:30 +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!1118
No description provided.