mirror of
https://github.com/azaion/ui.git
synced 2026-06-21 13:51:11 +00:00
ab22223580
Implements 22 blackbox test scenarios across the four batch-2 tasks:
AZ-457 - Auth & token handling (11 scenarios, fast + e2e):
- src/api/client.test.ts: FT-P-02, NFT-SEC-04, NFT-PERF-02, NFT-RES-01,
NFT-RES-08 (apiClient surface)
- src/auth/AuthContext.test.tsx: FT-P-01 (it.fails - Step 4 drift),
FT-P-03, NFT-SEC-01, NFT-SEC-02
- src/auth/ProtectedRoute.test.tsx: FT-N-04, NFT-RES-08 (router half)
- e2e/tests/auth.e2e.ts: FT-P-02 e2e, NFT-SEC-01/02/03 (cookie attrs
via Playwright context.cookies(), gated by suite stack)
AZ-459 - Wire-contract enums (4 scenarios):
- tests/wire_contract.test.ts: FT-P-04 (AnnotationStatus, it.fails),
FT-P-05 (MediaStatus + Affiliation it.fails; CombatReadiness skip
per verification_pending), FT-P-06 (AnnotationSource control +
spec value-set membership), FT-N-15 (typed-enum shape + skip for
value-set verification)
- e2e/tests/wire_contract.e2e.ts: FT-P-06 against real annotations/
service, drift-gated via AZAION_RUN_DRIFT_E2E
- scripts/run-tests.sh STC-FN15: ripgrep static for MediaType
magic-literal hygiene
AZ-465 - i18n (4 scenarios, all static + quarantined fast):
- scripts/check-i18n-coverage.mjs: FT-P-22 (en vs ua key parity) +
FT-P-23 (no raw user strings outside t() in src/**/*.tsx); refined
JSX text-node regex with negative lookbehind to drop TS generics
+ arrow-function false positives
- tests/i18n-allowlist.json: snapshot of current pre-existing raw
strings (CI gates growth per AZ-465 Constraints)
- tests/i18n.test.tsx: FT-P-24 + FT-P-25 it.skip (QUARANTINE - i18n
detector + persistence not wired today; control tests assert the
gap so the skip flips to a real test once Step 4 lands)
AZ-481 - CI image labels (3 scenarios, static against
.woodpecker/build-arm.yml):
- scripts/check-ci-image-labels.mjs: NFT-RES-LIM-11 (tag scheme
${CI_COMMIT_BRANCH}-arm), NFT-RES-LIM-12 (revision/created/source
PASS, image.title reported as DRIFT - foundation/CI-CD owns the
fix), NFT-RES-LIM-13 (revision = $CI_COMMIT_SHA)
Cross-cutting:
- scripts/run-tests.sh: src_grep now excludes *.test.{ts,tsx} +
*.spec.{ts,tsx} so production-source static checks (STC-SEC4,
STC-FN15, etc.) don't false-positive on test prose
- tsconfig.json: exclude src/**/*.{test,spec}.{ts,tsx} so production
tsc -b doesn't see jest-dom matchers
- _docs/03_implementation/batch_02_report.md: full per-task AC
coverage matrix + drift inventory + verification run
- _docs/_autodev_state.md: 22 tasks remain after batch 2
Verification (host):
fast : 7 files, 38 passed | 4 skipped (quarantined)
static : 19/19 checks PASS (was 13 in batch 1; +6 from batch 2)
e2e : not run on host (Risk 4 - requires suite docker stack)
Co-authored-by: Cursor <cursoragent@cursor.com>
76 lines
1.8 KiB
JSON
76 lines
1.8 KiB
JSON
{
|
|
"$schema_note": "AZ-465 FT-P-23 allow-list. Grouped by repo-relative path; '*' is the global allow-list (brand names, acronyms, units). Constraint per AZ-465: this file MUST NOT grow without a code-review reason. Pre-populated entries reflect the codebase state at the time AZ-465 landed; tightening the list (extracting a string into an i18n key, replacing with a t() call, then removing the entry) is Phase B i18n-migration work tracked under epic AZ-455 follow-ups.",
|
|
"*": [
|
|
"AZAION",
|
|
"OSM",
|
|
"TCP",
|
|
"UDP",
|
|
"Esc",
|
|
"OK"
|
|
],
|
|
"src/components/Header.tsx": [
|
|
"No flights",
|
|
"Filter..."
|
|
],
|
|
"src/components/HelpModal.tsx": [
|
|
"How to Annotate",
|
|
"Keyboard Shortcuts",
|
|
"Space",
|
|
"Play / Pause",
|
|
"Frame step",
|
|
"Ctrl + \u2190 \u2192",
|
|
"5 second skip",
|
|
"Enter",
|
|
"Save annotation",
|
|
"Delete",
|
|
"Delete selected",
|
|
"Delete all detections",
|
|
"Select detection class",
|
|
"Mute / Unmute",
|
|
"Ctrl + Scroll",
|
|
"Zoom canvas",
|
|
"Close dialog / editor",
|
|
"Validate (Dataset)",
|
|
"PageUp/Down",
|
|
"Navigate media / pages"
|
|
],
|
|
"src/features/admin/AdminPage.tsx": [
|
|
"Name",
|
|
"Color",
|
|
"Frame Period Recognition",
|
|
"Frame Recognition Seconds",
|
|
"Probability Threshold",
|
|
"Device Address",
|
|
"Port",
|
|
"Protocol",
|
|
"Email",
|
|
"Role",
|
|
"Status",
|
|
"Annotator",
|
|
"Admin",
|
|
"Viewer",
|
|
"Password"
|
|
],
|
|
"src/features/annotations/AnnotationsSidebar.tsx": [
|
|
"Download annotation"
|
|
],
|
|
"src/features/annotations/VideoPlayer.tsx": [
|
|
"Previous frame",
|
|
"Next frame",
|
|
"Stop"
|
|
],
|
|
"src/features/dataset/DatasetPage.tsx": [
|
|
"Prev",
|
|
"Next"
|
|
],
|
|
"src/features/flights/FlightListSidebar.tsx": [
|
|
"Flight name"
|
|
],
|
|
"src/features/flights/FlightsPage.tsx": [
|
|
"Status:",
|
|
"Waiting for GPS signal...",
|
|
"Expand",
|
|
"Collapse"
|
|
]
|
|
}
|