feat(ui): add screenshot test banner to soccer-app homepage - #41
ayushtr-aws wants to merge 2 commits into
Conversation
Adds a visible banner reading "Jira screenshot test 698" above the header so screenshot-based verification has a stable, unmistakable marker. Co-Authored-By: Claude <noreply@anthropic.com> Task-Id: 01M2KBFV6NVP9MP3SQ3XDXQNKA Prompt-Version: 1c9c10e027a2
|
This pull request is automatically being deployed by Amplify Hosting (learn more). |
|
🖼️ Preview screenshot From preview link — captured automatically by ABCA after the deploy finished. |
Improves banner legibility in screenshots per PR review feedback. Co-Authored-By: Claude <noreply@anthropic.com> Task-Id: 01M2NJ4PRN30F49A41H6QNNPNJ Prompt-Version: 1c9c10e027a2
|
Done in e29d64f — bumped the banner font size and changed the text to black. What changed
Nothing else was touched — background ( Notes / decisions
Comments addressed
Nothing needed clarification, and nothing was left unaddressed. There were no inline review threads on this PR, only the top-level request. Build and test results
The repo still has no test suite, so as before I verified against the production bundle instead: Both |
Background agent — COMPLETED
|
|
🖼️ Preview screenshot From preview link — captured automatically by ABCA after the deploy finished. |


Summary
Adds a visible banner reading "Jira screenshot test 698" near the top of the soccer-app homepage.
soccer-app/src/App.tsx: renders a.screenshot-test-bannerdiv as the first child of.app, directly above the existing<header className="app-header">, so it sits at the very top of the page. Usesrole="status"so assistive tech announces it.soccer-app/src/App.css: adds full-width, centered, bold styling for the banner using the existing--accent-brightCSS custom property, so it renders correctly in both light and dark themes (the repo drives theming via:root/:root.dark-modevariables inindex.css).No existing functionality was touched — the header, theme toggle, search, sorting, team list, and team detail view are all unchanged. The change is purely additive (15 lines added, 0 removed).
Issue: TG-22
Build and test results
soccer-appdependencies were not present in the container, sonpm installwas run first (the pre-agent build had failed for this reason, not because of any code problem).npm install(insoccer-app)mise run build(tsc -b && vite build)mise run lint(oxlint)The repo has no test suite (no test runner or test files, and no
testscript inpackage.json), so there were no tests to run. Instead I verified the change against the production bundle:grep -c "Jira screenshot test 698" dist/assets/*.js→1(banner text present in the built JS)grep -c "screenshot-test-banner" dist/assets/*.css→1(banner styles present in the built CSS)Decisions made
--accent-brightvariable rather than hardcoding a colour, so the banner stays theme-consistent. White text on that blue meets contrast expectations in both themes.698, with no extra decoration or icons.Agent notes
What went well
soccer-app/, with a flat and readable component structure (App.tsxplus two components), so finding the right insertion point took only a couple of reads.mise.tomlexposes cleanbuild,lint, anddevtasks that map onto npm scripts, which made verification straightforward.What was difficult
sh: 1: tsc: not found. The root cause was simply thatsoccer-app/node_moduleswas not installed in the container —mise installonly provisions Node 24, it does not runnpm installfor the nested app. Runningnpm installinsidesoccer-app/fixed it and both build and lint then passed. This matches a known pattern in this repo's history: dependency installation for the nested app is a separate step frommise install.dist/bundle for the banner text and class name.Repo conventions discovered
feat(ui): ...,feat(players): ...,docs(test): ....uiis the established scope for presentational changes.src/index.cssunder:rootand:root.dark-mode;App.tsxtoggles adark-modeclass on<html>via auseEffect. Dark mode is currently the default (useState(true)). New UI should consume variables like--accent-brightrather than literal colours so both themes keep working.App.cssis organised into/* ===== Section ===== */comment blocks; I followed that pattern for the new banner rule.oxlint(not ESLint), and the build istsc -b && vite build, so type errors fail the build.Suggestions for future tasks
npm install(ornpm ci) forsoccer-app/into the mise setup, or adding apostinstall/bootstrap task, so the firstmise run buildin a fresh container succeeds without manual intervention.pipeline.buildCommandtomise run buildandpipeline.lintCommandtomise run lintin the repo blueprint would enable real build and lint gating, which is currently inert.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.