onepile
onepile copied to clipboard
Folders
Requirements:
- Hierarchical grouping element: "Folder".
- A document can be referenced by multiple folders.
- Optional: Sub folders are ordered
Implementation Idea 1:
- Any folder has a parent or
null - Without parent or valid parent the folder becomes top-level.
- Problems: Break circular references; no custom ordering
Implementation Idea 2:
- Any folder has an ordered list of sub folders
- Problems: Avoid multiple references; circular references.
Implementation Idea 3:
- Any folder has an ordered list of all its predecessors: a/b/c
- If any of those is missing it becomes top-level
- Problem: All sub folders need to be touched as well
Decision
- Folders point to their parent
- No custom ordering (instead alphabetical etc.)
- Folders with missing parent folder are shown on top-level
- An item can only refer to one folder
Are folders really required? Notes and relations could provide the ordering, see notion.so
Evaluate more concepts