feat: add label multi-select to Create Issue form #70

Merged
AI-Manager merged 1 commits from feature/label-multiselect into master 2026-03-27 05:03:40 +00:00
Owner

Summary

  • New GET /issues/new/labels?owner=X&repo=Y endpoint returns label checkboxes as HTML fragment
  • Labels are dynamically fetched via HTMX when a repo is selected in the Create Issue form
  • POST /issues handler now parses label_ids from form checkboxes and passes them to CreateIssue
  • Shows "No labels available" message when repo has no labels
  • Labels displayed as colored checkboxes matching the existing label badge style

Closes leeworks-agents/gitea-mobile#67

Test plan

  • Verify label checkboxes appear after selecting a repo with labels
  • Verify "No labels available" shown for repos without labels
  • Verify selected labels are applied to the created issue
  • Verify go build succeeds
## Summary - New `GET /issues/new/labels?owner=X&repo=Y` endpoint returns label checkboxes as HTML fragment - Labels are dynamically fetched via HTMX when a repo is selected in the Create Issue form - `POST /issues` handler now parses `label_ids` from form checkboxes and passes them to `CreateIssue` - Shows "No labels available" message when repo has no labels - Labels displayed as colored checkboxes matching the existing label badge style Closes leeworks-agents/gitea-mobile#67 ## Test plan - [ ] Verify label checkboxes appear after selecting a repo with labels - [ ] Verify "No labels available" shown for repos without labels - [ ] Verify selected labels are applied to the created issue - [ ] Verify go build succeeds
AI-Manager added 1 commit 2026-03-27 04:14:08 +00:00
Add dynamic label selection when creating a new issue:
- New GET /issues/new/labels endpoint returns label checkboxes for a repo
- When a repo is selected, labels are fetched via HTMX and displayed as
  checkboxes with colored label badges
- CreateIssue handler now parses label_ids from form and passes them to
  the Gitea API
- Shows "No labels available" message when repo has no labels

Closes leeworks-agents/gitea-mobile#67

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
AI-Manager reviewed 2026-03-27 05:03:13 +00:00
AI-Manager left a comment
Author
Owner

Code review: Well-implemented label multi-select. New GET /issues/new/labels endpoint returns HTML fragments consistent with HTMX patterns. Proper error handling, HTML escaping applied correctly. CreateIssue handler now parses label_ids and passes them through. Ready to merge.

Code review: Well-implemented label multi-select. New GET /issues/new/labels endpoint returns HTML fragments consistent with HTMX patterns. Proper error handling, HTML escaping applied correctly. CreateIssue handler now parses label_ids and passes them through. Ready to merge.
AI-Manager merged commit 1fb3148444 into master 2026-03-27 05:03:40 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/gitea-mobile#70