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

Support Recycle Bin in the Content Pane #152

Closed
boyce-w opened this issue Mar 8, 2023 · 3 comments
Closed

Support Recycle Bin in the Content Pane #152

boyce-w opened this issue Mar 8, 2023 · 3 comments
Assignees
Labels

Comments

@boyce-w
Copy link
Contributor

boyce-w commented Mar 8, 2023

Is your feature request related to a problem? Please describe.
This is split from #109 :
File deletion: Right now, deleting a file permanently deletes it from SAS. In this issue, we'll want to implement the Recycle Bin functionality that is currently part of SAS drive (look for TODO #109 in the project's code)

Describe the solution you'd like

  • In the content navigation pane, add a top level folder Recycle Bin
  • Change the 'Delete' action of normal file/folder to move it to the Recycle Bin.
  • The Recycle Bin has a context menu item 'Empty Recycle Bin' to delete all the files/folders in the Recycle Bin permanently
  • The files/folders in the Recycle has a context menu which has 2 menu items 'Restore' and 'Delete'
  • The file in the Recycle Bin is supposed to be opened in read only mode
  • The file is supposed to be closed when it's moved to the recycle bin, deleted permanently, or restored from the recycle bin.

Environment
SAS Viya

@Zhirong2022
Copy link
Collaborator

@skyeaussie , @crlewi Could you take some time on your convenience to check the concerns below?
Some concerns towards the file/folder in Recyble bin folder.

  1. Is it neccessary to prompt some sort of message dialog to ask the user to confirm the delete action if trying to delete a file/folder?
  2. Is it neccessry to ask the user to confirm 'Empty Recycle Bin' ?

@crlewi
Copy link
Collaborator

crlewi commented Mar 22, 2023

@Zhirong2022

  1. Deleting files or folders from the content tree does not need a confirmation
  2. Permanently deleting items from the recycle bin should have confirmation messages.

A. Single item selected warning dialog with title of "Delete" and Delete and Cancel buttons:
Are you sure you want to permanently delete the item ""?

B. Multiple items selected warning dialog with title of "Delete" and Delete and Cancel buttons:
Are you sure you want to permanently delete the selected items?

C. Empty recycle bin warning dialog with title of "Empty Recycle Bin" and Delete and Cancel buttons:
Are you sure you want to permanently delete all the items? You cannot undo this action.

boyce-w added a commit to boyce-w/vscode-sas-extension that referenced this issue Mar 24, 2023
boyce-w added a commit to boyce-w/vscode-sas-extension that referenced this issue Mar 24, 2023
boyce-w added a commit to boyce-w/vscode-sas-extension that referenced this issue Apr 3, 2023
boyce-w added a commit that referenced this issue Apr 6, 2023
* feat: support recycle bin in content navigation #152
* add modal confirmation notification before delete item permanently or empty recycle bin
* sync the file content when it was recycled
* delete resource instead of member
* always fetch etag before rename
@boyce-w
Copy link
Contributor Author

boyce-w commented Apr 6, 2023

fix pushed and close this feature

@boyce-w boyce-w closed this as completed Apr 6, 2023
@2TomLi 2TomLi assigned boyce-w and unassigned Zhirong2022 May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

4 participants