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: create folder in the vfolder form item #2765

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

yomybaby
Copy link
Member

@yomybaby yomybaby commented Oct 21, 2024

image.png

Changes

This PR enhances the folder creation functionality and improves the VFolderTable component:

  1. Updated FolderCreateModal:

    • Modified onRequestClose to accept an optional FolderCreationResponse parameter
    • Added FolderCreationResponse interface to define the structure of the created folder data
    • Updated mutationToCreateFolder to use the FolderCreationResponse type
    • Modified the onSuccess callback to pass the created folder data to onRequestClose
  2. Enhanced VFolderTable:

    • Added a "Create Folder" button with a plus icon
    • Implemented a modal for creating new folders
    • Updated the table to refresh and select the newly created folder after creation
    • Added tooltips for the refresh and create folder buttons
    • Set the default sort order for the "Created" column to descending
  3. Improved table functionality:

    • Added sortDirections prop to allow both ascending and descending sorting

How to test

  • Create vFolder in Session Launcher and Service Launcher by clicking the "+" button on the top right of the vFolder Table form item.
  • You can see the created vFolder in the list with a selected status.

Copy link

graphite-app bot commented Oct 21, 2024

Your org requires the Graphite merge queue for merging into main

Add the label “flow:merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “flow:hotfix” to add to the merge queue as a hot fix.

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

@github-actions github-actions bot added the size:M 30~100 LoC label Oct 21, 2024
Copy link
Member Author

yomybaby commented Oct 21, 2024

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

Join @yomybaby and the rest of your teammates on Graphite Graphite

@yomybaby yomybaby marked this pull request as ready for review October 21, 2024 12:52
@yomybaby yomybaby force-pushed the feature/folder-creation-in-launchers branch from 482c9b5 to 84c69d2 Compare October 21, 2024 12:54
Copy link

github-actions bot commented Oct 21, 2024

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements
5.1% (-0.01% 🔻)
348/6822
🔴 Branches
4.65% (-0% 🔻)
218/4690
🔴 Functions
2.97% (-0.01% 🔻)
67/2253
🔴 Lines
5% (-0.01% 🔻)
333/6664

Test suite run success

93 tests passing in 12 suites.

Report generated by 🧪jest coverage report action from b5244a5

Copy link
Contributor

@ironAiken2 ironAiken2 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

graphite-app bot commented Oct 22, 2024

Merge activity

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/XqC2uNFuj0wg8I60sMUh/b7260560-a79b-4fb3-9c20-f8f48866d892.png)

## Changes

This PR enhances the folder creation functionality and improves the VFolderTable component:

1. Updated `FolderCreateModal`:
   - Modified `onRequestClose` to accept an optional `FolderCreationResponse` parameter
   - Added `FolderCreationResponse` interface to define the structure of the created folder data
   - Updated `mutationToCreateFolder` to use the `FolderCreationResponse` type
   - Modified the `onSuccess` callback to pass the created folder data to `onRequestClose`

2. Enhanced `VFolderTable`:
   - Added a "Create Folder" button with a plus icon
   - Implemented a modal for creating new folders
   - Updated the table to refresh and select the newly created folder after creation
   - Added tooltips for the refresh and create folder buttons
   - Set the default sort order for the "Created" column to descending

3. Improved table functionality:
   - Added `sortDirections` prop to allow both ascending and descending sorting

## How to test
- Create vFolder in Session Launcher and Service Launcher by clicking the "+" button on the top right of the vFolder Table form item.
- You can see the created vFolder in the list with a selected status.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:M 30~100 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants