jkomoros / card-web

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

Combine tags/sections #381

Open jkomoros opened 4 years ago

jkomoros commented 4 years ago

There are a number of other issues split out about this, but this can supercede those.

Once fractional ordering of cards (#199) is done, then we can combine sections and tags into one concept, tags.

Tags.cards will move to be a map of CARD_ID -> true, since there's no more order.

Each tag will have a 'group'. Only one tag from a given non-empty group may be added to a card. This is how you get things like sections.

Each tag also has a group_order, which is its ordinal ordering within its group. That's how we organize sections.

And then the TAB_CONFIG for sections effectively expands to "group:section". The logic of the app has to treat section specially since that's the non-orphan section, but that logic is effectively rendered in editor just like any tag group might be.

Then you'd also need some UI somewhere to edit a tag and change its group and group order

jkomoros commented 4 years ago

The tag should have the tab-group name prepended to the tag display: "Section : Random Thoughts".

And if the collection you're currently viewing is filtered by a given tag/section, then don't show the tag below the card.

... Can't we also get rid of the tag list below the card now that tags are visible by default in card-info? (Does the tag list show up in mobile mode?)