Monorepo for Tangled tangled.org

appview/settings: add account management UI for tngl.sh users #1151

merged opened by oyster.cafe targeting master from appview-acc-mgmt-ui

tngl.sh users should be able to:

  • change handle
  • deactivate account
  • delete account
  • change password
Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:3fwecdnvtcscjnrx2p4n7alz/sh.tangled.repo.pull/3mgu4bwsml322
+18 -18
Interdiff #4 โ†’ #5
appview/config/config.go

This file has not been changed.

appview/oauth/handler.go

This file has not been changed.

appview/oauth/oauth.go

This file has not been changed.

-18
appview/pages/htmx.go
··· 25 25 w.Write([]byte(markup)) 26 26 } 27 27 28 - func (s *Pages) DangerPasswordTokenStep(w http.ResponseWriter) { 29 - w.Header().Set("Content-Type", "text/html") 30 - w.WriteHeader(http.StatusOK) 31 - s.executePlain("user/settings/fragments/dangerPasswordToken", w, nil) 32 - } 33 - 34 - func (s *Pages) DangerPasswordSuccess(w http.ResponseWriter) { 35 - w.Header().Set("Content-Type", "text/html") 36 - w.WriteHeader(http.StatusOK) 37 - s.executePlain("user/settings/fragments/dangerPasswordSuccess", w, nil) 38 - } 39 - 40 - func (s *Pages) DangerDeleteTokenStep(w http.ResponseWriter) { 41 - w.Header().Set("Content-Type", "text/html") 42 - w.WriteHeader(http.StatusOK) 43 - s.executePlain("user/settings/fragments/dangerDeleteToken", w, nil) 44 - } 45 - 46 28 // HxRefresh is a client-side full refresh of the page.
+12
appview/pages/pages.go
··· 1577 1577 return hex.EncodeToString(hasher.Sum(nil))[:8] // Use first 8 chars of hash 1578 1578 } 1579 1579 1580 + func (p *Pages) DangerPasswordTokenStep(w io.Writer) error { 1581 + return p.executePlain("user/settings/fragments/dangerPasswordToken", w, nil) 1582 + } 1583 + 1584 + func (p *Pages) DangerPasswordSuccess(w io.Writer) error { 1585 + return p.executePlain("user/settings/fragments/dangerPasswordSuccess", w, nil) 1586 + } 1587 + 1588 + func (p *Pages) DangerDeleteTokenStep(w io.Writer) error { 1589 + return p.executePlain("user/settings/fragments/dangerDeleteToken", w, nil) 1590 + } 1591 + 1580 1592 func (p *Pages) Error500(w io.Writer) error { 1581 1593 return p.execute("errors/500", w, nil) 1582 1594 }
appview/pages/templates/user/settings/fragments/dangerDeleteToken.html

This file has not been changed.

appview/pages/templates/user/settings/fragments/dangerPasswordSuccess.html

This file has not been changed.

appview/pages/templates/user/settings/fragments/dangerPasswordToken.html

This file has not been changed.

appview/pages/templates/user/settings/profile.html

This file has not been changed.

+6
appview/settings/danger.go
··· 94 94 return 95 95 } 96 96 97 + w.Header().Set("Content-Type", "text/html") 98 + w.WriteHeader(http.StatusOK) 97 99 s.Pages.DangerPasswordTokenStep(w) 98 100 } 99 101 ··· 128 130 return 129 131 } 130 132 133 + w.Header().Set("Content-Type", "text/html") 134 + w.WriteHeader(http.StatusOK) 131 135 s.Pages.DangerPasswordSuccess(w) 132 136 } 133 137 ··· 198 202 return 199 203 } 200 204 205 + w.Header().Set("Content-Type", "text/html") 206 + w.WriteHeader(http.StatusOK) 201 207 s.Pages.DangerDeleteTokenStep(w) 202 208 } 203 209
appview/settings/settings.go

This file has not been changed.

appview/state/login.go

This file has not been changed.

History

7 rounds 4 comments
sign up or login to add to the discussion
1 commit
expand
appview/settings: add account management UI for tngl.sh users
3/3 success
expand
expand 0 comments
pull request successfully merged
1 commit
expand
appview/settings: add account management UI for tngl.sh users
3/3 success
expand
expand 0 comments
1 commit
expand
appview/settings: add account management UI for tngl.sh users
3/3 success
expand
expand 1 comment
  • this can go in pages.go
1 commit
expand
appview/settings: add account management UI for tngl.sh users
3/3 success
expand
expand 0 comments
1 commit
expand
appview/settings: add account management UI for tngl.sh users
2/3 failed, 1/3 success
expand
expand 3 comments
  • here could you explain what an elevated auth flow is
  • here why not a template here? does this need to be in htmx.go?
  • here do we need this IsTnglSh bool?
  • here are there any indigo bits to achieve this?
  • here we have defined isTnglShUser once here, and another time here

do we need both?

1 commit
expand
appview/settings: add account management UI for tngl.sh users
3/3 failed
expand
expand 0 comments
1 commit
expand
appview/settings: add account management UI for tngl.sh users
3/3 success
expand
expand 0 comments