Gildas Garcia and Ivan Vasilov
96d43099bb
chore: refactor Button API so that it can be used a standard button ( #46880 )
...
## Problem
Our `<Button>` component breaks the default `button` contract by
redefining the `type` prop to set its variant (`primary`, `default`,
etc) instead of the button type (`submit`, `button`, etc).
This is confusing and forces to write more code when using it with
shadcn components that expect/inject the standard button props.
## Solution
- rename the `type` prop to `variant`
- rename the `htmlType` prop to `type`
- propagate the changes where necessary
- format code
## How to test
As this is just prop renaming, if it builds it's ok
---------
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com >
2026-06-16 23:59:58 +02:00
Gildas Garcia
0713a1efc1
chore: remove shadcn suffix for Input, Textarea, Alert and Collapsible ( #45867 )
...
## Problem
Now that we migrated old components to their new shadcn alternatives, we
don't need the `_Shadcn_` suffix anymore.
## Solution
Remove it
<img width="659" height="609" alt="image"
src="https://github.com/user-attachments/assets/2d7271a9-066a-4dcc-92fe-729b106d2c2f "
/>
2026-05-15 14:55:37 +02:00
Gildas Garcia and Ali Waseem
aee4c8fdd7
chore: migrate Input usages to Shadcn component in database screens/components ( #45600 )
...
## Screenshots
### Extensions search input
Before:
<img width="955" height="256" alt="image"
src="https://github.com/user-attachments/assets/c69e428a-8ab5-4dce-a45a-5d6a6d30472d "
/>
After:
<img width="965" height="212" alt="image"
src="https://github.com/user-attachments/assets/a08294cc-14ea-4c8d-af24-a207de3dada9 "
/>
### Triggers search input
Before:
<img width="961" height="249" alt="image"
src="https://github.com/user-attachments/assets/21df2aeb-cc83-42e2-a35e-23e6451182ad "
/>
After:
<img width="979" height="248" alt="image"
src="https://github.com/user-attachments/assets/f365661d-5075-4041-a4f2-8fd1b7fdeb4b "
/>
### Hooks search input
Before:
<img width="974" height="361" alt="image"
src="https://github.com/user-attachments/assets/baaad7fb-1ede-46a4-8148-3cc05a53c955 "
/>
After:
<img width="976" height="363" alt="image"
src="https://github.com/user-attachments/assets/9c3b2467-1e9a-4919-a6df-9e3ff46a30b8 "
/>
### Backups - restore to new project dialog
Before:
<img width="544" height="656" alt="image"
src="https://github.com/user-attachments/assets/181018ac-cda6-4a57-bfc3-028ac6a1eeed "
/>
After:
<img width="536" height="643" alt="image"
src="https://github.com/user-attachments/assets/4c177884-4415-4744-b3d1-67fe83065565 "
/>
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Refactor**
* Standardized search inputs across database interfaces by consolidating
into a grouped input pattern for consistent behavior and keyboard focus.
* **Style**
* Improved layout of the database creation dialog’s password field,
including visible reveal control and relocated strength indicator for
clearer form presentation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Ali Waseem <waseema393@gmail.com >
2026-05-05 19:24:58 +02:00
Gildas Garcia
0facd341a6
chore: remove UI form components _Shadcn_ suffix ( #45212 )
...
## Problem
We used to have a `_Shadcn_` suffix for all the shadcn form components
because we also had `formik` form components.
This is not needed anymore.
## Solution
- Remove the suffix
- Update all usages
2026-04-24 12:14:15 +02:00
4a0bb36ca8
style: require sorted imports in studio/components ( #44408 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com >
2026-04-01 10:22:37 +02:00
Ignacio Dobronich
7e3986df8d
chore: restore to new project entitlement ( #43313 )
...
Adds an entitlement check to prompt upgrades for restoring backups to
new projects
### Testing
- Head to `/project/_/database/backups/restore-to-new-project` with a
Free Project
- Assert that the upgrade prompt is shown
<img width="1271" height="309" alt="image"
src="https://github.com/user-attachments/assets/ca1cf071-db2f-4398-ab6f-ef0cf7ccc714 "
/>
- Head to `/project/_/database/backups/restore-to-new-project` with a
Pro Project or above
- Assert that the restore backups UI is shown
<img width="1271" height="685" alt="image"
src="https://github.com/user-attachments/assets/43d0be5a-370c-4827-bb39-c0ab9e7b74e7 "
/>
2026-03-04 13:25:09 -03:00
Ivan Vasilov
db4b10f328
fix: Check the password strength before creating a project ( #41586 )
...
* Fix types and lint warnings for the password strength function.
* Simplify the form for creating project. Move the password warning into the form schema. Minor fixes.
* Fix the name of the field.
* Move the common behaviour in a function.
* Minor fixes.
2025-12-24 16:18:29 +01:00
Ivan Vasilov
43cc61818c
chore: Migrate all isPending uses in react-query ( #40642 )
...
* Bump react-query. Minor type and logic fixes.
* Migrate all use of isLoading to isPending in mutations.
* Fix type errors.
2025-11-20 16:44:53 +01:00
Joshen Lim
4c76b0b15d
Surface error message from project clone ( #40601 )
2025-11-19 17:26:06 +08:00
Alaister Young and Charis
a3e7cb7285
chore: move password check to frontend ( #39927 )
...
* chore: move password check to frontend
* remove barrel file export and fix test import
* move import inside function
* Update apps/studio/lib/password-strength.ts
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com >
* fix test
---------
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com >
2025-10-28 23:24:35 +08:00
Danny White
8bf1fd5d10
chore: minor clarity improvements on new project creation ( #38299 )
...
* feat: basic clarity improvements
* feat: all switches
* feat: basic errors
* fix: simplify
* fix: properly separate sections
* fix: remove smart toggle closure
* fix: remember file size unit
* fix: validation
* fix: UpgradeToPro styles
* fix: UpgradeToPro styles for full-width
* feat: create modal match
* fix: tests
* chore: periods and color contrast
* fix: grammar
* fix: revert unrelated changes
2025-09-01 09:07:59 +10:00
Joshen Lim
cab0585533
Fe 1799/consolidate to useselectedprojectquery and ( #37684 )
...
* Replace all usage of useProjectContext with useSelectedProjectQuery
* Replace all usage of useSelectedProject with useSelectedProjectQuery
* Replace all usage of useProjectByRef with useProjectByRefQuery
* Replace all usage of useSelectedOrganization with useSelectedOrganizationQuery
* Deprecate useSelectedProject, useSelectedOrganization, and useProjectByRef hooks
* Deprecate ProjecContext
2025-08-06 10:53:10 +07:00
Kevin Grüneberg
d05bbb669f
perf: use subscription plan from org response ( #34993 )
2025-04-14 20:37:19 +08:00
Jordi Enric and Ivan Vasilov
0e930cf940
r2np: new cost ( #32632 )
...
* add new cost estimate
* fix api types
* update api types
* restore api.d.ts
* fix types
* fix utils
* clean utils getComputeHourlyPrice
---------
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com >
2025-01-10 13:21:53 +01:00
Joshen Lim
ecf001ab90
Refactor restore to new project by breaking into smaller components ( #30604 )
...
* Refactor restore to new project by breaking into smaller components
* Shift generateStrongPassword into a utils
* Update each notice component in restore to new project to be more consistent
* Add long polling in restore to new project
* Call refetch
2024-11-22 16:42:12 +08:00