-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added InstitutionList to component tree
- Loading branch information
Showing
3 changed files
with
19 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CHROMATIC_KEY="chpt_9d08845ed76c2f2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,52 @@ | ||
# Project architecture | ||
# App architecture | ||
|
||
|
||
## Component tree | ||
```mermaid | ||
flowchart TB | ||
RecordForm --> | ||
TabsList & FormHeader | ||
TabsList --> | ||
InstitutionTab & InstitutionContainer | ||
InstitutionsList & FormHeader | ||
InstitutionsList --> | ||
TabsList & InstitutionContainer | ||
TabsList --> InstitutionTab | ||
InstitutionContainer --> | ||
AssetContainer | ||
``` | ||
|
||
|
||
### RecordForm | ||
Structural component. Will render Header Tabs, InstitutionContainer accordingly to state: | ||
- `isKeyboardOpen` | ||
- `isInstitutionContainerExpanded` | ||
|
||
|
||
### FormHeader | ||
Stateless component. Contains *submit* and *cancel* buttons | ||
|
||
|
||
### TabsList | ||
Statless component. Can be `collapsed` and `expanded` | ||
|
||
|
||
### InstitutionTab | ||
Statless component. Can show institution states: | ||
- `new` | ||
- `updated` | ||
- `deleted` | ||
|
||
|
||
### InstitutionContainer | ||
Can be `collapsed` and `expanded` | ||
|
||
|
||
### AssetContainer | ||
Can be `collapsed` and `expanded` | ||
|
||
|
||
### InstitutionsList | ||
Wrap `InstitutionContainer`s and `TabsList`. | ||
Basically `Tabs` component from ChakraUI | ||
|
||
|
||
## Fetching initial data | ||
I wanna try RSC for this |