0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-03-22 08:58:11 +00:00

Updated Folders etc (markdown)

ericscheid
2024-02-07 12:21:42 +11:00
parent 6387de6521
commit 1e93d560a1

@@ -57,9 +57,10 @@ Sub-folders are linked via a list of subfolderIds, in the same manner as how bre
- `brewIds` (list of shareId)
- `CreatedAt` (auto)
- `UpdatedAt` (auto)
- `isPublished` (boolean, or later: published/unpublished/hidden)
#### More substantial data structure
![ERD of folders, users, and brews](https://github.com/naturalcrit/homebrewery/assets/2605467/03b4a90b-3c7f-4923-91db-dc77264473fd)
![ERD of folders, users, and brews](https://github.com/naturalcrit/homebrewery/assets/2605467/f399874c-b3d1-4233-a0a6-714a2eb67298)
These folders should be displayed in the user page of the author of such folder <!-- could be a good idea to be able to copy someone else's folder, which should only copy published brews -->, opening the folder would bring the user to another page with the content of the folder displayed as if it was a user page.
@@ -74,7 +75,7 @@ So all unpublished files will still be invisible to unauthored accounts<!--altho
are private folders publicly viewable?
- thumnails
- thumbnails
- tags
- view counts (useless?)
- systems
@@ -96,17 +97,23 @@ We do want to facilitate sharing of folder views. That is, a user could share `/
### Data structure
- parent folder (nanoid, optional)
- password (string, optional, hashed)
- view-count (integer, auto)
- icon or image (string, optional) (#240)
- styling (css-text-block, optional) (#240, #1843)
- folder type (smart/dumb) ??
- smart-rules (???)
- tags
- description
- brewCount
- authors
Add these to the minimal data structure (above)
- `description`
- `tags`
- `password` (string, optional, hashed)
- `icon` or `image` (uri-string, optional) (#240)
- `styling` (css-text-block, optional) (#240, #1843) ??
- `background` (uri-string or color-code-string, optional)
- `subFolderIds` [list of nanoids)
- `pinnedBrewId` - one brew of `brewIds` which appears at top of folder, regardless of sort order
- folder type (smart/dumb) ?? -- _or: absence of smart rules ⇒ dumb folder_
- smart-rules
- ~~authors~~ -- _brews have author(s), but folders are owner-specific_
- ~~view-count (integer, auto)~~ -- _views are a in-browser experience only, no server hits involved, so no count to accumulate_
- ~~`brewCount`~~ -- _can/should be calculated on the fly though_
- ~~`folderCount`~~ -- _can/should be calculated on the fly though_