diff --git a/packages/anastasis-webui/src/hooks/use-anastasis-reducer.ts b/packages/anastasis-webui/src/hooks/use-anastasis-reducer.ts
index efa0592dd..3acaaa361 100644
--- a/packages/anastasis-webui/src/hooks/use-anastasis-reducer.ts
+++ b/packages/anastasis-webui/src/hooks/use-anastasis-reducer.ts
@@ -32,6 +32,11 @@ export interface ReducerStateBackup {
payto: string;
provider: string;
}[];
+
+ core_secret?: {
+ mime: string;
+ value: string;
+ };
}
export interface AuthMethod {
diff --git a/packages/anastasis-webui/src/routes/home/index.tsx b/packages/anastasis-webui/src/routes/home/index.tsx
index c6bf15be6..b1d017f30 100644
--- a/packages/anastasis-webui/src/routes/home/index.tsx
+++ b/packages/anastasis-webui/src/routes/home/index.tsx
@@ -45,43 +45,39 @@ function withProcessLabel(reducer: AnastasisReducerApi, text: string): string {
function ContinentSelection(props: CommonReducerProps) {
const { reducer, reducerState } = props;
+ const sel = (x: string) =>
+ reducer.transition("select_continent", { continent: x });
return (
Feedback: {JSON.stringify(feedback)}
Question: {challenge.instructions}
- +Feedback: {JSON.stringify(feedback)}
+{challenge.instructions}
+Feedback: {JSON.stringify(feedback)}
+{challenge.instructions}
+Feedback: {JSON.stringify(feedback)}
+{challenge.instructions}
+{JSON.stringify(props.challenge)}
+Challenge not supported.
Select a different version of the secret
Provider: {recoveryState.recovery_document!.provider_url}
-Secret version: {recoveryState.recovery_document!.version}
-Secret name: {recoveryState.recovery_document!.version}
+Provider: {recoveryDocument.provider_url}
+Secret version: {recoveryDocument.version}
+Secret name: {recoveryDocument.version}
@@ -305,37 +351,99 @@ interface AnastasisClientFrameProps { } function AnastasisClientFrame(props: AnastasisClientFrameProps) { + const reducer = useContext(WithReducer); + if (!reducer) { + returnFatal: Reducer must be in context.
; + } + const next = () => { + if (props.onNext) { + props.onNext(); + } else { + reducer.transition("next", {}); + } + }; + const handleKeyPress = (e: h.JSX.TargetedKeyboardEventFatal: Reducer must be in context.
; - } - const next = () => { - if (props.onNext) { - props.onNext(); - } else { - reducer.transition("next", {}); - } - }; +Status: {feedback?.state ?? "unknown"}
+ {feedback?.state !== "solved" ? ( + + ) : null} +{JSON.stringify(selectedChallenge)}
-Challenge not supported.
-