Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(FR-368): Update folder list Immediately after creating a new folder. #3053

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

agatha197
Copy link
Contributor

@agatha197 agatha197 commented Jan 20, 2025

resolves #3031 (FR-368)

Since the vfolder creation modal was migrated to a React component, the folder list does not update immediately after creation. We should trigger the new backend-ai-folder-updated event if we only update the React modal.

Adds a new event listener backend-ai-folder-updated to refresh the folder list when a folder is created or modified. This ensures the storage list view stays synchronized with folder changes.

Checklist:

  • Documentation
  • Minium required webui version: v24.09.0+post.0
  • Specific setting for review:
    1. Create a new folder
    2. Check the folder list is updated immediately.
  • Minimum requirements to check during review
    Check the folder list is updated immediately.
  • Test case(s) to demonstrate the difference of before/after

Copy link
Contributor Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • flow:merge-queue - adds this PR to the back of the merge queue
  • flow:hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has required the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions bot added the size:XS ~10 LoC label Jan 20, 2025
Copy link

github-actions bot commented Jan 20, 2025

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements
4.92% (-0% 🔻)
398/8094
🔴 Branches 4.25% 239/5629
🔴 Functions 2.95% 78/2641
🔴 Lines
4.84% (-0% 🔻)
383/7919

Test suite run success

124 tests passing in 14 suites.

Report generated by 🧪jest coverage report action from 918906c

@agatha197 agatha197 force-pushed the feat/update-immediately-after-creating-new-folder branch from dba9631 to 918906c Compare January 22, 2025 14:31
@github-actions github-actions bot added size:S 10~30 LoC and removed size:XS ~10 LoC labels Jan 22, 2025
@agatha197 agatha197 requested a review from ironAiken2 January 22, 2025 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:S 10~30 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Folder List Immediately After Creating a New Folder in WebUI
2 participants