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

Storage UI: Delete Drive (in proposal; Remove the configuration for this device) #1934

Draft
wants to merge 6 commits into
base: storage-config-ui
Choose a base branch
from

Conversation

mvidner
Copy link
Contributor

@mvidner mvidner commented Jan 22, 2025

Problem

https://trello.com/c/JQ3blpRm

remove

Solution

WIP

Testing

  • Added a new unit test
  • Tested manually

Screenshots

If the fix affects the UI attach some screenshots here.

that is, without asking for confirmation or checking if it is mandatory.

split out PartitionMenuItem, because eslint said:
607:40  error  React Hook "usePartition" cannot be called inside a callback. React Hooks must be called in a React function component or a custom React Hook function  react-hooks/rules-of-hooks
apparently a copy-paste bug in the prototype

BTW shouldn't we use _(translations) more?
and use `delete_` as variable name not to collide with the `delete` operator
having to set up mocks for the whole DriveEditor is not what I expected
:-/
(the menu item only appears when I first delete the root partition from it)

except it crashes!? and I am pretty sure useDrive has worked before

> Unexpected Application Error!
> _useDrive4 is undefined
>
> RemoveDriveOption@https://localhost:10443/index.js:42094:22
> renderWithHooks@https://localhost:10443/index.js:84540:27
> updateFunctionComponent@https://localhost:10443/index.js:88666:20
> beginWork@https://localhost:10443/index.js:90689:16
> beginWork$1@https://localhost:10443/index.js:96514:14
> performUnitOfWork@https://localhost:10443/index.js:95645:12
> ...
> 💿 Hey developer 👋
> You can provide a way better UX than this when your app throws errors by providing your own ErrorBoundary or errorElement prop on your route.
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.

1 participant