Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assign unique ids to boards, columns, and cards #61

Open
dev-guy opened this issue Aug 26, 2023 · 0 comments
Open

Assign unique ids to boards, columns, and cards #61

dev-guy opened this issue Aug 26, 2023 · 0 comments

Comments

@dev-guy
Copy link
Contributor

dev-guy commented Aug 26, 2023

Blocks #66

Ids can be used to store objects in a database. For example, there is currently no way to relate a database row in a Card table to a card on a Kanban board.

Changes Needed

  1. Add id prop to and generate a new one (uuid) if missing
  2. Card objects in the Svelte store will have a new id attribute (string) that can be specified via the cards that are passed on via a <Kanban> prop. Generate new ids (as uuids) when not user-specified.
  3. The HTML elements for cards already have id attributes in the form of card-#-col-#. This can be reworked to look up the card (and hence its id) in the store since $column provides column-card lookup. Then use the card ids as HTML element ids.
  4. Repeat 2 and 3 for columns
  5. Pass board, column, and card ids in svelte component event data where applicable
@dev-guy dev-guy changed the title Assign unique ids to columns and cards Assign unique ids to columns and cards. Allow one page to have multiple boards. Aug 29, 2023
@dev-guy dev-guy changed the title Assign unique ids to columns and cards. Allow one page to have multiple boards. Assign unique ids to boards, columns, and cards Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant