jkomoros / card-web

The web app behind thecompendium.cards
Apache License 2.0
46 stars 8 forks source link

Editing title/subtitle of section-head cards should change that section/tags title/subtitle #344

Open jkomoros opened 3 years ago

jkomoros commented 3 years ago

Originally captured in #206

That should be the way to change those fields.

Unclear if the cards should copy those values over, or have them canonically live on the section/tag object, or what. (Seems like a lot of operations do need them on the section/tag object, so the card would have to be a mirror or projection)

jkomoros commented 3 years ago

Actually, this might be the time to have derived cards. There are a few examples of needs: the reading-list and stars tutorial card, section headers for sections and tags, and possibly citations (see #202).

For all of them, the canonical data lives in another collection, but should be used to derive on the spot the cards that are necessary.

The way to adminiter those things should be card editing, just with lots of fields redacted. You'd need a way for the card to say what kind of auto derivation it is so it can play back those edits on the actual database entry that's being modified. (And permissions are kind of weird: you need to check that e.g. you can edit the section it's based on)

202 is struggling with whether they should be literal cards or something else; they pretty obviously should be something else that just so happens to also be presentable as a card.