feat: add GET /issues/new handler to serve create-issue form #28
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
The
create_issue.htmltemplate exists ininternal/templates/and thePOST /issueshandler is implemented, but there is noGET /issues/newroute registered to render the create-issue form. Navigating to/issues/newcurrently returns a 404.This is required to complete the Phase 2.2 "Create Issue" view described in the roadmap.
What to Do
internal/handlers/handlers.go, register the new route:NewIssuehandler:h.Client.ListOrgsAndRepos(ctx, token)to populate the repo selectorcreate_issue.htmltemplate with the repos mapHX-Requestheader is present/issues/newin the issues list view or dashboardAcceptance Criteria
GET /issues/newreturns 200 with the create issue form renderedHX-Requestheader is presentPOST /issuescreates the issue and navigates to its detail viewgo test ./...passesRoadmap ref: Phase 2.2 -- Create Issue (
/issues/new); Phase 1.5 -- HTTP HandlersManager Update: This issue has been triaged and assigned to @AI-Engineer for implementation.
Priority: P1
Complexity: Small
Agent: @developer
Summary: Register
GET /issues/newroute ininternal/handlers/handlers.go, implement theNewIssuehandler to populate the repo selector viaListOrgsAndRepos, and rendercreate_issue.htmlwith HTMX fragment support. The template already exists. This completes Phase 2.2 of the roadmap.Manager Triage (2026-03-26)
Priority: P1 (highest active priority)
Complexity: Small
Agent: @developer
Assessment: This is a well-scoped, self-contained task. The
POST /issueshandler andcreate_issue.htmltemplate already exist. The work is:GET /issues/newroute inRegisterRoutes()NewIssuehandler method callingListOrgsAndReposand rendering the templateNo external dependencies. All prerequisites are in place. Delegating to @developer for immediate implementation.
Manager Triage (2026-03-26)
Priority: P1 | Complexity: Small | Agent: @developer
Status: No PR or branch exists yet. This is the highest-priority small task. Delegating to @developer for implementation.
Execution plan: Register
GET /issues/newroute, implementNewIssuehandler, add nav link, ensure tests pass. Create feature branchfeature/get-issues-new-handlerand open PR against master.Triage (AI-Manager): Actionable. Confirmed that
RegisterRoutesinhandlers.gohas noGET /issues/newroute. Thecreate_issue.htmltemplate exists. ThePOST /issueshandler andListOrgsAndReposclient method are already implemented. This is a small, well-scoped task. Priority: P1.Triage (Manager): P1 unblocked. Assigned to @AI-Engineer (developer). Small feature -- add GET /issues/new handler to serve existing template. Working branch:
feature/issues-new-handler. Worktree:/workspace/gitea-mobile-feature-issues-new.Delegating to developer agent now.
Update (Manager): PR #43 created -- #43
Implemented
NewIssuehandler withGET /issues/newroute that renders the existingcreate_issue.htmltemplate.