Skip to content

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

Merged
franknoirot merged 3 commits intomainfrom
nadro/gh-10270/live-update-project-directory
Mar 20, 2026
Merged

fix: default project directory live updates when changed in /home or /home/settings paths.#10271
franknoirot merged 3 commits intomainfrom
nadro/gh-10270/live-update-project-directory

Conversation

@nadr0
Copy link
Copy Markdown
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
Copy Markdown

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 20, 2026 2:24pm

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
Copy link
Copy Markdown
Contributor

@franknoirot franknoirot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable, thanks

@franknoirot franknoirot enabled auto-merge (squash) March 20, 2026 14:07
@franknoirot franknoirot merged commit cc393c3 into main Mar 20, 2026
59 checks passed
@franknoirot franknoirot deleted the nadro/gh-10270/live-update-project-directory branch March 20, 2026 14:25
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

2 participants