Skip to content

fix: default project directory live updates when changed in /home or /home/settings paths.#10271

Open
nadr0 wants to merge 2 commits intomainfrom
nadro/gh-10270/live-update-project-directory
Open

fix: default project directory live updates when changed in /home or /home/settings paths.#10271
nadr0 wants to merge 2 commits intomainfrom
nadro/gh-10270/live-update-project-directory

Conversation

@nadr0
Copy link
Contributor

@nadr0 nadr0 commented Mar 3, 2026

closes #10270

issue

We do not trigger the upload loop to refresh the user's project directory when the settings modal is opened.

implementation

The code in the react provider that listens to the change runs the business logic! It only runs the business logic to update the directories on the home page. Now it works on the /home/settings page.

When we implemented PATHS in the code base we can nest paths together to have a page that renders /home it could render /settings or we can embed them in one another.

I've updated the logic to accept /home and /home/settings and it just works.

commentary

This is correct business logic because our settings modal does not have a temporary/save state. When the user changes the value of a setting it is immediately written to settings.toml. They do not need to confirm anything.

@nadr0 nadr0 requested a review from a team as a code owner March 3, 2026 17:53
@vercel
Copy link

vercel bot commented Mar 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
modeling-app Ready Ready Preview, Comment Mar 3, 2026 6:11pm

Request Review

@nadr0 nadr0 changed the title fix: added the path check to update the project directory live fix: default project directory live updates when changed in /home or /home/settings paths. Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: Changing default project folder does not live update

1 participant