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

Aperta Adatta ai principianti
#5,252 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
1-3 ore
Idoneità per principianti
87/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
react, typescript
Ambito
frontend

Direzione di ricerca

Inizia da packages/client/src/components/screens/operations/annual-audit/step-02-ledger-changes/index.tsx e confronta le due azioni «View Ledger Status» con quelle dei passaggi 1 e 5. Controlla i test del passaggio 2 e gli altri passaggi dell’audit annuale, incluso il passaggio 04, come suggerito dall’issue. Il lavoro è completato quando entrambi gli stati del passaggio 2 aprono la vista del libro mastro in una nuova scheda e un test verifica questo comportamento.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
TypeScript
Stelle
30
Fork
10
Merge medio
2g 12h
PR unite (30g)
276

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Urigo/accounter-fullstack

Tutte le issue di Urigo/accounter-fullstack

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.