Takendown state + in-app takedown appeals (#7566)

* takendown screen

* add form, move button inline

* expect type error

* display error

* disable submit if too long

* move around all the ctas

* typos, rm layoutanimation, fix link

* use REASONAPPEAL
This commit is contained in:
Samuel Newman
2025-01-23 22:33:28 +00:00
committed by GitHub
parent 084d11c63a
commit f1d120d416
11 changed files with 322 additions and 41 deletions
+6 -1
View File
@@ -83,7 +83,12 @@ export async function createAgentAndLogin(
) => void,
) {
const agent = new BskyAppAgent({service})
await agent.login({identifier, password, authFactorToken})
await agent.login({
identifier,
password,
authFactorToken,
allowTakendown: true,
})
const account = agentToSessionAccountOrThrow(agent)
const gates = tryFetchGates(account.did, 'prefer-fresh-gates')
+1 -1
View File
@@ -258,7 +258,7 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
],
)
// @ts-ignore
// @ts-expect-error window type is not declared, debug only
if (__DEV__ && isWeb) window.agent = state.currentAgentState.agent
const agent = state.currentAgentState.agent as BskyAppAgent