ADORSYS-GIS / ADORSYS-GIS/cloud-wallet-ui

Presentation flow state management

Abierto
#80 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
0
Forks
0
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

### Description
Create shared state for the presentation flow, modelled after the existing issuance state in `src/state/`.

### State shape

```ts
type PresentationFlowState = {
authorizationRequest: ParsedAuthorizationRequest | null;
selectedCredentialId: string | null;
status: 'idle' | 'pending_selection' | 'pending_consent' | 'submitting' | 'success' | 'error';
error: string | null;
};
```

### Acceptance criteria
- [ ] A `PresentationFlowProvider` wraps the presentation routes
- [ ] `usePresentationFlow()` hook exposes state and actions
- [ ] State resets to `idle` on Decline or on "Go back home"
- [ ] State transitions are covered by unit tests

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.