mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-03-27 21:08:13 +00:00
Updated Folders etc (markdown)
@@ -57,9 +57,10 @@ Sub-folders are linked via a list of subfolderIds, in the same manner as how bre
|
|||||||
- `brewIds` (list of shareId)
|
- `brewIds` (list of shareId)
|
||||||
- `CreatedAt` (auto)
|
- `CreatedAt` (auto)
|
||||||
- `UpdatedAt` (auto)
|
- `UpdatedAt` (auto)
|
||||||
|
- `isPublished` (boolean, or later: published/unpublished/hidden)
|
||||||
|
|
||||||
#### More substantial data structure
|
#### More substantial data structure
|
||||||

|

|
||||||
|
|
||||||
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.
|
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?
|
are private folders publicly viewable?
|
||||||
|
|
||||||
- thumnails
|
- thumbnails
|
||||||
- tags
|
- tags
|
||||||
- view counts (useless?)
|
- view counts (useless?)
|
||||||
- systems
|
- systems
|
||||||
@@ -96,17 +97,23 @@ We do want to facilitate sharing of folder views. That is, a user could share `/
|
|||||||
|
|
||||||
### Data structure
|
### Data structure
|
||||||
|
|
||||||
- parent folder (nanoid, optional)
|
Add these to the minimal data structure (above)
|
||||||
- password (string, optional, hashed)
|
|
||||||
- view-count (integer, auto)
|
- `description`
|
||||||
- icon or image (string, optional) (#240)
|
- `tags`
|
||||||
- styling (css-text-block, optional) (#240, #1843)
|
- `password` (string, optional, hashed)
|
||||||
- folder type (smart/dumb) ??
|
- `icon` or `image` (uri-string, optional) (#240)
|
||||||
- smart-rules (???)
|
- `styling` (css-text-block, optional) (#240, #1843) ??
|
||||||
- tags
|
- `background` (uri-string or color-code-string, optional)
|
||||||
- description
|
- `subFolderIds` [list of nanoids)
|
||||||
- brewCount
|
- `pinnedBrewId` - one brew of `brewIds` which appears at top of folder, regardless of sort order
|
||||||
- authors
|
|
||||||
|
- 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_
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user