mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
### Context There are a smattering of bugs on the explore apps page. Clicking "Enable App" may enable the app, but the button still shows, plus it causes unnecessary redirects while the modal is still up. This behavior can be seen in the linked clip https://github.com/user-attachments/assets/09b12ccf-e174-4289-91f3-4f0e73cfe7e4 ### Summary of Changes We dynamically handle the modal open state, and track the path updates. This lets us deal with the bugs above while avoiding unnecessary renders, allowing reopening of previously opened modals, and preventing unnecessary redirects. Dealing with the enable apps button issues also now allows users to navigate to the app page from the explore apps modal. We also add a disable button to the modal. Previously, users had to check the options for each app in order to disable it. Now they can do it on the modal itself, which is in line with how the "Enable App" functionality works. ### UI Demo https://github.com/user-attachments/assets/5bfd35c6-5d28-4f99-958a-9300533e2351 |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| .env | ||
| .env.development | ||
| .eslintrc.cjs | ||
| .gitignore | ||
| .npmrc | ||
| components.json | ||
| DESIGN-GUIDE.md | ||
| instrumentation-client.ts | ||
| LICENSE | ||
| next.config.mjs | ||
| package.json | ||
| postcss.config.js | ||
| tailwind.config.ts | ||
| tsconfig.json | ||
| vitest.config.ts | ||