WIP: Add tags to uploads #38

Draft
BlakeRain wants to merge 11 commits from 17-tags into main
Owner

This PR closes #17 by adding support for tags on each upload. Each upload can have any number of tags, and uploads can be filtered by tags. Tags are kept around in a tags table with unique names over users and teams. Autocomplete in the tag editor is provided using a <datalist>.

There are a few things left to do:

  • The filter UI is present, but doesn't have any effect on the upload list yet.
  • I haven't added any tests for the UI.
  • The user settings page needs to include a section where a user can edit their tags.
This PR closes #17 by adding support for tags on each upload. Each upload can have any number of tags, and uploads can be filtered by tags. Tags are kept around in a `tags` table with unique names over users and teams. Autocomplete in the tag editor is provided using a `<datalist>`. There are a few things left to do: - [ ] The filter UI is present, but doesn't have any effect on the upload list yet. - [ ] I haven't added any tests for the UI. - [ ] The user settings page needs to include a section where a user can edit their tags.
Author
Owner

Progress on this has gone quite well. See the attached images.

There are a couple of problems that will need addressing:

  1. I really like the <parcel-select> element, but it's not going to play nicely if we filter as users change the selection if that causes the list interface to reload. May need to consider something else.
  2. When tags are added to uploads that are new, the select UI doesn't show the new tags in the filter list.
Progress on this has gone quite well. See the attached images. There are a couple of problems that will need addressing: 1. I really like the `<parcel-select>` element, but it's not going to play nicely if we filter as users change the selection if that causes the list interface to reload. May need to consider something else. 2. When tags are added to uploads that are new, the select UI doesn't show the new tags in the filter list.
Author
Owner

Blocked for #39

Blocked for #39
Some checks failed
Check / check (pull_request) Has been cancelled
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 17-tags:17-tags
git switch 17-tags

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff 17-tags
git switch 17-tags
git rebase main
git switch main
git merge --ff-only 17-tags
git switch 17-tags
git rebase main
git switch main
git merge --no-ff 17-tags
git switch main
git merge --squash 17-tags
git switch main
git merge --ff-only 17-tags
git switch main
git merge 17-tags
git push origin main
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
BlakeRain/parcel!38
No description provided.