Commit a3d9fde
authored
Migrate components to Base UI (#65)
* feat(components): migrate dialog from radix to base-ui
* feat(components): migrate select from radix to base-ui
* refactor(appointments): reorganize and integrate appointment modal
* feat(referrals): add base referral types
* refactor(patients): reorganize patients list table to module
* chore(patient-requirements): use new dialog component
* feat(baseui): migrate components and modules to BaseUI
- Convert Select components to use BaseUI Select
- Update calendar dropdown navigation with BaseUI components
- Migrate data table status filters to BaseUI Select
- Refactor patient form and modals with BaseUI integration
- Update appointment modal components
- Migrate patient history and documents views
- Reorganize inactivate button to modules/patients
- Update patient list table with BaseUI Select
- Refactor period selector with BaseUI
- Update gender chart filters
- Migrate gender and city patient charts
- Update query types and cache constants
* refactor(patients): add patient status select and update modals
- Create use-patient-options hook for status filtering
- Update dialog component with BaseUI integration
- Migrate patient requirements modals to BaseUI
- Refactor patient list table and actions
- Add patient status type definitions
- Update patient form and sidebar components
- Enhance patient data fetching
- Add mock data for patient testing
* refactor(types): standardize status type definitions across modules
- Add Status enum to patient-requirements, patients, and referrals types
- Update user roles and support status types
- Migrate dropdown components to use status enums
- Update patient form and data table with type-safe status handling
- Refactor patient support and team type definitions
- Enhance type safety for order and query parameters
* refactor: reorganize modules into dedicated folders
- Move dashboard cards to modules/dashboard
- Move patient components to modules/patients
- Move teams table to modules/teams
- Consolidate patient form and modals in modules
- Remove mock data from referrals
- Update import paths across components
- Improve module organization and structure1 parent bddae9d commit a3d9fde
81 files changed
Lines changed: 1006 additions & 1770 deletions
File tree
- src
- actions
- patients
- app
- (dashboard)
- _sidebar
- encaminhados/_cards
- equipes
- pacientes
- (patients-list)
- [id]
- documentos
- historico
- informacoes
- cadastrar
- paciente
- _header
- triagem/seus-dados
- components
- appointments
- data-table
- filters
- header
- form
- patients
- ui
- calendar
- dialog
- select
- constants
- hooks
- modules
- appointments
- dashboard
- patient-requirements
- patients
- list
- referrals
- teams
- types
- utils/mock
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | | - | |
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
This file was deleted.
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | | - | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | | - | |
8 | | - | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
0 commit comments