Annual audit step 2: "View Ledger Status" link should open in a new tab

Abierto Apto para principiantes
#5,252 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
1/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
87/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
react, typescript
Área
frontend

Línea de trabajo

Empieza por packages/client/src/components/screens/operations/annual-audit/step-02-ledger-changes/index.tsx y compara las dos acciones «View Ledger Status» con las acciones de los pasos 1 y 5. Revisa las pruebas del paso 2 y los demás pasos de la auditoría anual, incluido el paso 04, como sugiere el issue. El trabajo estará terminado cuando ambos estados del paso 2 abran la vista del libro mayor en una pestaña nueva y una prueba compruebe ese comportamiento.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

annual-audit-workflow

Summary

In step 2 of the annual audit flow ("Check Pending Ledger Changes"), the View Ledger Status link opens in the same tab, so the user loses their place in the audit flow. It should open in a new tab, like the equivalent links in other steps.

Cause

packages/client/src/components/screens/operations/annual-audit/step-02-ledger-changes/index.tsx builds its actions without openInNewTab:

return [{ label: 'View Ledger Status', href }];
// and, when a manual status exists:
{ label: 'View Ledger Status', href },

StepBase (step-base.tsx) already supports StepAction.openInNewTab, which adds target="_blank" and rel="noopener noreferrer". Step 1 ("Review Charges") and step 5 already set it.

Fix

Add openInNewTab: true to both View Ledger Status actions in step 2. While there, check the other annual audit steps for links that should also open in a new tab (e.g. step 04 uses a plain <a> for "View").

Acceptance criteria

  • Clicking View Ledger Status in step 2 opens the ledger validation view in a new tab (in both the initial and the persisted-status states), and the audit flow tab stays where it was.
  • A test (as in the step 1 / step 5 tests) asserts the action has openInNewTab / target="_blank".

Generated by Claude Code

Lenguaje dominante
TypeScript
Estrellas
30
Forks
10
Merge medio
2 d 12 h
PR fusionados (30 d)
276

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Urigo/accounter-fullstack

Todos los issues de Urigo/accounter-fullstack

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.