Monorepo for Tangled tangled.org
6

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>

author
eti
committer
Tangled
date (May 18, 2026, 11:45 AM +0300) commit 96147ff9 parent f165a3ee
+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
··· 335 335 s.applyCreationLabels(r.Context(), client, userDid, []*models.Pull{pull}, r.Form, repo) 336 336 337 337 ownerSlashRepo := reporesolver.GetBaseRepoPath(r, repo) 338 - s.pages.HxLocation(w, fmt.Sprintf("/%s/pulls/%d", ownerSlashRepo, pullId)) 338 + http.Redirect(w, r, fmt.Sprintf("/%s/pulls/%d", ownerSlashRepo, pullId), http.StatusFound) 339 339 } 340 340 341 341 func (s *Pulls) createStackedPullRequest( ··· 452 452 s.applyCreationLabels(r.Context(), client, userDid, stack, r.Form, repo) 453 453 454 454 ownerSlashRepo := reporesolver.GetBaseRepoPath(r, repo) 455 - s.pages.HxLocation(w, fmt.Sprintf("/%s/pulls", ownerSlashRepo)) 455 + http.Redirect(w, r, fmt.Sprintf("/%s/pulls", ownerSlashRepo), http.StatusFound) 456 456 } 457 457 458 458 func (s *Pulls) newStack(