refactor(forge): use SDK for CreateRepo/CreateOrg, add Tab focus to forms #379
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/steeper!379
Loading…
Reference in a new issue
No description provided.
Delete branch "docs/376-form-godoc-reset"
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?
What
Refactor CreateRepo and CreateOrg in both Forgejo and Gitea clients to use the SDK's built-in create methods instead of raw HTTP calls. Adds Tab/Shift+Tab focus navigation to the repo and org creation forms.
Forge client changes
CreateRepo→f.c.CreateRepo(sdkOpts)/f.c.CreateOrgRepo(org, sdkOpts),CreateOrg→f.c.CreateOrg(sdkOpts)http.Clientboilerplate — SDK handles auth, content-type, error mappingForm improvements
FocusNext()/FocusPrev()methods with circular focus indexingRemoved
bytes,io,net/httpimports from forge client filesTesting
go build ./...passesgo test -race ./...passesdocs/376-form-godoc-resetto refactor(forge): use SDK for CreateRepo/CreateOrg, add Tab focus to formsReview
Result: Approved — no blocking issues.
Summary: Refactors CreateRepo/CreateOrg in both forge clients to use SDK methods instead of raw HTTP. Adds Tab/Shift+Tab circular focus navigation to both forms. Repo form treats self-owned repos correctly. Removes unused imports.
Non-blocking:
Checklist:
go build + go test -racepass