Commit 2cda6bb
feat(collections): add pdf collection item (#782)
* chore: add new migration
* refactor: add new tyupes
* refactor: make resource id required
* chore: update collection pdf json
update to the correct layout and permalink so we can show the correct
view
* refactor: shift preview into 2 components
1 handle sitemap, 1 accepts sitemap as is
* fix: update wizard
remove merging of title for collection
* refactor: use new preview for creation modals
* refactor: backend to allow for collection files
* fix: remove url from schema for links
* chore: update dates
* feat: add new icon
* refactor: update to `/links`
* chore: add new migration
* chore: update references to be link
* chore: update icons
* fix: add collection to resource
* chore: add new migration
* chore: utils
update sitemap to have homepage layout
* feat: add new layout for link
* fix: filter for collection link
we need to return collection link because it's a valid child
* feat: add new getSiblingsOf method
* feat: add new page for link editing
* chore: update thedetails for colletion sitemap
1. no more file layout
2. removed file details due to 1.
* refactor: add previews
1. add new preview for links
2. shifts shared code for viewport out into new file
* refactor: preview layout for collections
1. swap `file` -> `link`
* fix: invalid date feor previvew
pass date properly to the preview
* chore: rename site edit navbar to page
* feat: add new link edit navbar
* feat: util method for generating preview sitemap
shift method into new util file
* chore: components
export layout maps
* fix: fix type errors
* chore: generate types
* chore: update ref for links
* feat: json forms link control
add file attachment in
* refactor: link attachment layout
* chore: styilng
* refactor: use `ref` format for link page
* fix: update select for getchildrenof
* refactor: introduce 1 more layer of indirection to link modal
1. previously, it was taking editor directly which made it harder to
reuse
2. now, we want to show the modal also on json forms so we need to
abstract the `editor` prop
* fix: linkeditormodal
remove extra deps which we implictly have due to using the zod schema
* refactor: link modal now accepts a link types to decide what to render
* fix: update typing + export new type
* chore: tidy up types
* feat: add new form control
* chore: componnet changes
* chore: aded new link type
* feat: edit link page
* fix: edit link preview
use the correct title to render
* chore: remove console logs
* chore: refactor link editor drawer
shift error provider out so we can call it inside the component
* chore: squash components for edit link
* feat: add backend capabilities
* feat: update atom typing
* chore: format
* feat: seed with backend ata
* chore: relocate collection schemas to proper folder
* chore: update typings
* fix: use correct prop
1. use `description` rather than `summary`
2. update various wordings
* refactor: full width button at bottom
* fix: use correct schema
* fix: update only the draftblob
* fix(links): add validation to components that are links or refs (#789)
* feat: add https on frontend
* fix: add validation for all our links
* chore: add correct states to each component
* chore: fix bugs with link editor
* add comment
---------
Co-authored-by: adriangohjw <[email protected]>
* fix: remove showing children
* fix: remove form error message
the attachment lib already exports their own so we are good iwth the
error messages
* fix: add defaults
* fix: use resourcetype
* fix: validation
* chore: change copy and icon
* chore: update ui
* chore: shift shared wording out
* chore: add validation
* chore: remove unused
* fix: add extra property for perms boundary
* fix: width for error page
* chore: add stories
* chore: add stories
* fix: remove extra story
* chore: add default title and styling
* fix: design review
* fix: remove non-working stories
* fix: styling for text
* fix: remove link editing tab
* fix: add category
* chore: update for perms
* fix: links
add in draft retrieval for blobs
* chore: remove unused
---------
Co-authored-by: adriangohjw <[email protected]>1 parent 72dadba commit 2cda6bb
File tree
79 files changed
+1588
-412
lines changed- apps/studio
- prisma
- generated
- migrations
- 20241014063853_add_new_collection_resource_type
- 20241015055654_change_name_to_link
- 20241015073853_add_enum
- public/assets/css
- src
- components
- AuthWrappers
- PageEditor
- MenuBar
- ResourceSelector
- constants
- features
- dashboard
- components
- DirectorySidebar
- ResourceTable
- editing-experience
- components
- CreateCollectionPageModal
- CreatePageModal
- LinkEditor
- form-builder
- renderers
- controls
- layouts
- data
- pages/sites/[siteId]/links/[linkId]
- schemas
- server/modules
- collection
- resource
- stories
- Flows
- Page/EditPage
- templates/layouts
- utils
- tests/msw/handlers
- packages/components/src
- interfaces
- complex
- internal
- schemas
- types
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
79 files changed
+1588
-412
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2376 | 2376 | | |
2377 | 2377 | | |
2378 | 2378 | | |
| 2379 | + | |
| 2380 | + | |
| 2381 | + | |
| 2382 | + | |
| 2383 | + | |
2379 | 2384 | | |
2380 | 2385 | | |
2381 | 2386 | | |
| |||
3585 | 3590 | | |
3586 | 3591 | | |
3587 | 3592 | | |
| 3593 | + | |
| 3594 | + | |
| 3595 | + | |
| 3596 | + | |
3588 | 3597 | | |
3589 | 3598 | | |
3590 | 3599 | | |
| |||
4652 | 4661 | | |
4653 | 4662 | | |
4654 | 4663 | | |
| 4664 | + | |
| 4665 | + | |
| 4666 | + | |
| 4667 | + | |
4655 | 4668 | | |
4656 | 4669 | | |
4657 | 4670 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
35 | 41 | | |
36 | 42 | | |
37 | 43 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
179 | 180 | | |
180 | 181 | | |
181 | 182 | | |
| |||
Lines changed: 12 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | | - | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | | - | |
| 11 | + | |
11 | 12 | | |
12 | | - | |
13 | | - | |
14 | | - | |
| 13 | + | |
15 | 14 | | |
16 | 15 | | |
| 16 | + | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | | - | |
21 | | - | |
22 | | - | |
| 21 | + | |
23 | 22 | | |
24 | | - | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
46 | | - | |
47 | | - | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | | - | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
| |||
78 | 77 | | |
79 | 78 | | |
80 | 79 | | |
81 | | - | |
82 | 80 | | |
83 | 81 | | |
84 | 82 | | |
0 commit comments