Skip to content

fix(web): create components in the current explorer folder - #10033

Merged
nishantmonu51 merged 1 commit into
rilldata:mainfrom
Tyagiquamar:fix/component-folder-context-5713
Oct 22, 2026
Merged

nishantmonu51 merged 1 commit into
rilldata:mainfrom
Tyagiquamar:fix/component-folder-context-5713

Conversation

@Tyagiquamar

Copy link
Copy Markdown
Contributor

Summary

  • When starting a blank custom component from the gallery, place the new YAML under the file-explorer directory the user is browsing (when set).
  • Add a small unit test for folder-aware component paths.

Fixes #5713.

Test plan

  • CI (A1): gh pr checks on this PR

When browsing a nested folder, starting a blank custom component now
lands under that directory instead of the default viz_library path.

Fixes rilldata#5713.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The change is narrow, preserves fallback behavior, and has no identified blocking issues.

No open issues 🎉

What changed in this PR

Fixes #5713 by preserving the current explorer folder when creating a blank custom component from the gallery.

Changes:

  • Uses the current file’s directory, falling back to the default components folder.
  • Adds a unit test for folder-aware component paths.
File Description
web-common/​src/​features/​entity-management/​add/​new-files.spec.ts Tests component path generation in a specified folder.
web-common/​src/​features/​custom-viz/​examples/​ChartTypesDialog.svelte Passes the current directory to component creation.

Review effort: Balanced

@nishantmonu51 nishantmonu51 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

👍 , LGTM.

@nishantmonu51
nishantmonu51 merged commit cc0be9f into rilldata:main Oct 22, 2026
9 of 11 checks passed
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(File Explorer): When creating a new file it should retain the positional context

3 participants