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

Can't delete an app #573

Closed
2 tasks done
MonstraG opened this issue Jun 19, 2022 · 7 comments
Closed
2 tasks done

Can't delete an app #573

MonstraG opened this issue Jun 19, 2022 · 7 comments
Labels
bug 🐛 Something doesn't work regression A bug, but worse scope: toolpad-studio Abbreviated to "studio"

Comments

@MonstraG
Copy link

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 😯

1

Expected behavior 🤔

It actually deletes.

Steps to reproduce 🕹

Steps:

  1. Create app
  2. Go back to list (grid?) of apps
  3. Try to delete it.

Context 🔦

No response

Your environment 🌎

No response

@MonstraG MonstraG added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jun 19, 2022
@MonstraG
Copy link
Author

I don't think I need to create another issue for renaming that doesn't work and deploying that loads for a while but eventually sends to 404.

@bharatkashyap
Copy link
Member

bharatkashyap commented Jun 19, 2022

I can't seem to be able to replicate this @MonstraG:

Screen.Recording.2022-06-20.at.1.34.49.AM.mov

Could you attach some additional information - perhaps a screenshot from the browser console?

@MonstraG
Copy link
Author

2

@MonstraG
Copy link
Author

MonstraG commented Jun 20, 2022

This happens because it navigates to ? because Delete is a type="submit" button inside of a form.

Changing it to type="button" fixes the problem.

Or, I guess, e.preventDefault would aslo fix it.

@Janpot Janpot changed the title Can't detele an app Can't delete an app Jun 20, 2022
@Janpot Janpot added bug 🐛 Something doesn't work regression A bug, but worse and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jun 20, 2022
@Janpot
Copy link
Member

Janpot commented Jun 20, 2022

Thanks a lot for trying out Toolpad, I believe we've fixed all issues that have been laid out in this ticket:

  1. Delete not working: firefox only issue, solved by Delete confirmation dialog Doesn't need to be a form #579
  2. App rename not working on "Enter": solved by Fixing app rename on "Enter" press #580
  3. "deploying that loads for a while but eventually sends to 404.": I assume you're talking about the "view" button that 404s when the app hasn't been deployed yet. For now we've disabled the button with a message if there's no deployment. We'll keep working on improving this UX. Disable view button on apps that aren't deployed yet #581

We will release these changes somewhere this week. They can already be tried with the prerelease docker image muicom/toolpad:293892c7271be0dc053afa06675836bcefe507a2 or muicom/toolpad:alpha.

@oliviertassinari
Copy link
Member

I see the "regression" label was applied. Is there an opportunity to write some regression tests for them?

@Janpot
Copy link
Member

Janpot commented Jun 24, 2022

Adding #597

@Janpot Janpot closed this as completed Jul 19, 2022
@oliviertassinari oliviertassinari added the scope: toolpad-studio Abbreviated to "studio" label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work regression A bug, but worse scope: toolpad-studio Abbreviated to "studio"
Projects
None yet
Development

No branches or pull requests

4 participants