Monorepo for Tangled
0

Configure Feed

Select the types of activity you want to include in your feed.

appview/pulls/create: scroll to top on submit

Signed-off-by: eti <eti@eti.tf>

eti (May 15, 2026, 1:50 PM +0200) 0ee0782e 82b6fd55

+4 -3
+2 -1
appview/pages/templates/repo/pulls/fragments/pullComposeHost.html
··· 16 16 hx-post="/{{ .RepoInfo.FullName }}/pulls/new" 17 17 hx-trigger="submit, keydown[(ctrlKey || metaKey) && key=='Enter'] from:(#patch,#title,#body)" 18 18 hx-indicator="#create-pull-spinner" 19 - hx-swap="none" 19 + hx-target="body" 20 + hx-swap="innerHTML show:top" 20 21 class="flex flex-col gap-6" 21 22 > 22 23 <section class="relative flex flex-col gap-3">
+2 -2
appview/pulls/create.go
··· 334 334 s.applyCreationLabels(r.Context(), client, userDid, []*models.Pull{pull}, r.Form, repo) 335 335 336 336 ownerSlashRepo := reporesolver.GetBaseRepoPath(r, repo) 337 - s.pages.HxLocation(w, fmt.Sprintf("/%s/pulls/%d", ownerSlashRepo, pullId)) 337 + http.Redirect(w, r, fmt.Sprintf("/%s/pulls/%d", ownerSlashRepo, pullId), http.StatusFound) 338 338 } 339 339 340 340 func (s *Pulls) createStackedPullRequest( ··· 451 451 s.applyCreationLabels(r.Context(), client, userDid, stack, r.Form, repo) 452 452 453 453 ownerSlashRepo := reporesolver.GetBaseRepoPath(r, repo) 454 - s.pages.HxLocation(w, fmt.Sprintf("/%s/pulls", ownerSlashRepo)) 454 + http.Redirect(w, r, fmt.Sprintf("/%s/pulls", ownerSlashRepo), http.StatusFound) 455 455 } 456 456 457 457 func (s *Pulls) newStack(