QA Gravel
v1.0A minimal SaaS test desk for a mobile QA team: release runs marked case by case on a cell strip that flips live, test cases, suites, defects, releases and reports, in neutral grey with one signal red.
ที่อยู่หน้า: /
มีในตัว
สิ่งที่คุณได้รับ- สว่างและมืดใช้สีของธีมคุณ
- เดสก์ท็อป แท็บเล็ต และโทรศัพท์หน้าจอที่สร้างมารองรับ
- แพ็กเกจ…
- ขนาดโค้ด…
- ประหยัดแบตเตอรี่30 fps หยุดพักเมื่อนิ่ง
- หยุดเมื่อซ่อนอยู่นอกหน้าจอหรืออยู่แท็บอื่น
- ลดการเคลื่อนไหวสงบสำหรับผู้ที่ตั้งค่าไว้
ตรวจสอบทุกครั้งที่มีการเปลี่ยนแปลง
ตรวจสอบความปลอดภัย 3 ธ.ค.- ตรวจสอบไทป์TypeScript แบบ strict
- Lint และฟอร์แมตESLint · Prettier
- ทดสอบและบิลด์ภาพหน้าจอโหมดสว่างและมืด
- ตรวจสอบความปลอดภัยไม่มีคำเตือนระดับสูงหรือวิกฤต
- อายุแพ็กเกจทุกเวอร์ชันเผยแพร่มาแล้วอย่างน้อย 7 วัน
- CPU ขณะว่างต่ำกว่าครึ่งคอร์ขณะพัก ≤ 30 fps
โค้ด
qa-gravelReact
- qa-gravel.tsxThe page: the sections in order.
- content.tsEvery word and number: brand, nav links, each section's copy and lists.
- theme.tsThe colors as CSS variables, and the shared class strings.
- README.mdHow to install it, and where to change the text, colors and form.
- pagesOne file per page: the sections it shows, in order.
- cases.tsxCases: every test case, found by words, suite and platform (the suite and platform kept in the address), in a table where a click opens the case and the boxes pick cases for a bulk change.
- defects.tsxDefects: every bug the team logged, most severe first, filtered by state and severity (kept in the address). A row opens the defect (?defect=); one past its severity's target age shows its days in red. Rows glide to their new place when a defect moves on.
- overview.tsxOverview: the release in one look. The KPI strip, the active run as its strip of cells (flipping live as teammates mark cases), open defects over the last two weeks, what is failing now, the S1 and S2 defects in the way, and the team's feed.
- releases.tsxReleases: every two-week train, newest first, with its state, dates, scope (the cases of its suites), readiness (the share of its planned cases that passed), pass rate and open defects. A release opens in the drawer (?release=4.18).
- reports.tsxReports: the pass rate over the last releases and this one, defects this release by severity (all and still open), cases marked each day of the train, the pass rate per platform, and the flaky cases (their result flipped most across releases).
- runs.tsxRuns: every test run (a release's plan for one platform) as a row with its strip of cells, done and pass rate, testers and due day; open ones first. #/runs/<id> opens a run's console (sections/run-console.tsx).
- settings.tsxSettings: the workspace name, whether the run console moves on after a mark, how old a defect of each severity may get, the keys, the team, and Appearance (theme and language).
- sign-in.tsxThe sign-in page (#/sign-in): the logo and the form on one card over the backdrop, without the sidebar and top bar.
- suites.tsxSuites: the groups the cases live in (Sign-in, Transfers, Cards...), each a card with its case count, how many are P0 or P1, the platforms it covers, its pass rate over the last releases and its tally this release. A card leads to its cases; Edit opens the suite form.
- sectionsOne file per page section.
- account-menu.tsxThe account menu under the avatar in the top bar: who is signed in, Settings and Sign out; the arrow keys move through it, Escape, Tab or a click outside closes it.
- active-run.tsxThe overview's active run: the biggest open run of the release as its strip of cells (one per case, flipping as the team marks them live), its tally, and every platform's progress under it.
- appearance.tsxSettings → Appearance: the theme (System, Dark or Light), each choice shown as a small preview, and the language (System or one of locales/list.ts).
- bottom-tabs.tsxThe phone's tab bar: the four pages used most, and More for the rest (the sidebar in a sheet). It sticks to the bottom of the screen under the page.
- case-form.tsxThe case form (?new=case, or ?edit=case on an open case): title, suite, platforms, priority and the steps, each an action and what to expect, added, removed and reordered in place. A new case joins the open runs of its suite and platform.
- case-sheet.tsxA test case in the drawer (?case=QA-1004, not in the run console, where ?case= picks the case to mark): its steps and what to expect, its results in the last releases and in this one per platform, and its defects. Edit opens the case form; Delete asks first.
- case-table.tsxThe cases table: id, title, suite, platforms, priority, the latest result this release and open defects. A title opens the case (?case=); the boxes pick cases, and the bar that takes the table's head then sets their priority, moves them to a suite or deletes them (after a confirm).
- defect-form.tsxThe defect form (?new=defect, or ?edit=defect on an open defect): title, severity, the case it breaks, platform, component and notes. From a failed case in the run console it comes filled in (?for=QA-1012&on=ios).
- defect-sheet.tsxA defect in the drawer (?defect=BUG-284): severity, state and the steps it moves through (new, open, fixing, retest, closed), the case it breaks, where and who found it, notes and its log. Edit opens the form; Delete asks first.
- feed.tsxThe team's feed: who marked what, who logged or moved a defect, newest first. A result that lands live slides in on top with a short wash, once.
- kpi-strip.tsxThe overview's four numbers in one bordered strip: pass rate (against the last release), cases run (and today's), open defects (and how many are S1 or S2) and release readiness (against yesterday). Each has its last seven days as a sparkline, and each number rolls to its new value as live results land.
- plan-forms.tsxThe two planning forms. New run (?new=run): a name, the release, a platform, the suites whose cases it takes, who tests and the due day; saving opens its console. Suite (?new=suite, or ?edit=suite&suite=<id>): name, what it covers and its platforms; a suite with cases can't be deleted.
- release-sheet.tsxA release in the drawer (?release=4.18): readiness, its runs and how far each is, the S1 and S2 defects in the way, and its scope; and the release form (?new=release, or ?edit=release on an open one): version, name, dates, state and the suites in scope.
- run-case.tsxThe open case in the run console: its steps with what to expect, each markable on its own, the three marks (P, F, B), who marked it and when, a note, and on a failure the way to log a defect for it (or the one already open).
- run-console.tsxThe run console, where a run is worked: the run's strip of cells on top (each flips as a case is marked, yours or a teammate's live), the cases to work down on one side and the open case with its steps on the other. P, F and B mark the open case pass, fail or blocked, J and K move down and up the list; each mark can be undone from its toast.
- settings-team.tsxSettings → Team: the seven testers with their role, the platform they focus on and how many cases they marked this release; each can be edited or removed (after a confirm). Add teammate in the top bar opens the same form (?new=person).
- sidebar.tsxThe sidebar: the workspace, search with the ⌘K shortcut, the pages in two groups (Testing, Quality) with their counts and a pill that glides to the current one, Settings at the foot, and the live strap with its pause.
- sign-in-form.tsxThe sign-in form: email and password with their errors under them, show or hide the password, keep me signed in, and the demo account to fill in; a wrong pair says so above the fields.
- top-bar.tsxThe top bar: the menu button on tablets, where you are (a run's name inside its console), the live dot that pings once per teammate's result, the theme switch, the page's one main action and the account menu. It frosts only once the page scrolls under it.
- partsWhat several sections share.
- buildWhat several sections share.
- cardsWhat several sections share.
- draw.tsThe draw card style: cards just fade in, and the data does the show.
- rowsWhat several sections share.
- turn.tsThe turn row motion: each row on screen swings in from behind, hinged on its left edge, from faint (its free edge never comes forward, so it never widens the page).
- core.tsxThe page's build-in: on first load and on every page switch the cards arrive in the app's card style and their contents build: bars grow, lines draw, rings fill, the list rows on screen ripple in in the app's row motion, numbers count. The two picks are wired in ./index.ts.
- index.tsThe app's two build-in picks, wired here and nowhere else: its card style (cards/) and its row motion (rows/). npm run new-app copies only the two it is given (--cards, --rows).
- appearance.tsHow the app looks right now: dark or light, Glass or Solid, from Settings → Appearance, the page around it and the Style setting.
- avatar.tsxA person's initials in a round badge, in a quiet grey (the accent stays for what matters); a group of them sits side by side, each in its own ring.
- backdrop.tsxThe Glass style's backdrop: what shows through the see-through panels, faded out in Solid; with followBackground it paints your background instead.
- bar-chart.tsxA bar chart: bars grow in, and the picked bar (in the primary), its guide line and tooltip glide to the bar you point at or pick with the arrow keys; a new range morphs the bars instead of drawing them again.
- cells.tsxThe run strip, Gravel's signature: one tiny cell per case in a run, in order, grey until marked and then green, red or amber.
- command-palette.tsxThe command palette (⌘K or Ctrl K): type to find a page or an action, then Enter.
- dialog.tsxA centered modal dialog (a form, a confirm): rises in, plays its way out, Escape or a tap outside closes it, and the focus goes back where it was.
- drawer.tsxThe detail drawer: a full-height native <dialog> from the end edge for one thing (a case, a defect, a release), with tabs whose underline glides to the one picked. Esc, a click beside it or its close button slides it away; the address keeps what it shows (?case=QA-1004&tab=history).
- field.tsxA labeled form field (a text input or a select) with its error line under it, tied together for screen readers.
- flip.tsFLIP for a list that re-sorts or filters: after each change every row that stayed glides from where it was to where it is now. Rows carry data-flip="<id>"; positions are measured inside the list, and measured again when the list resizes, so a page scroll or a wider window never reads as a move.
- format.tsHow numbers and dates are written: by Intl, the current language's way ("1,240", "1.240"; "Nov 19", "19 nov."). Add a helper here when a page needs money, times or a list.
- glyphs.tsxThe small marks every page shares: a result (pass, fail, blocked, not run) as a glyph in its shade, a severity, a priority, a platform and a defect's status.
- icons.tsxThe logo and the line icons, drawn on a 24-unit grid with round ends.
- language.tsThe app's language: the words every page reads (useWords), how dates and numbers are written (parts/format.ts) and the reading direction. Picked in Settings → Appearance (or System: the page's own language) and kept in this browser; English is built in, any other language loads only when it shows (locales/list.ts).
- line-chart.tsxA line chart with a soft area under it, in the primary: the line draws itself in, the latest point marked, and new values roll the line to its new shape.
- live-clock.tsxOne shared clock for everything live: it ticks only while something on screen listens, the tab is visible and live isn't paused, and the bare button that pauses it. What a tick does (move the demo's time, bring in an event, reload) is the app's, passed to liveClock.
- live.tsThe app's one live clock: every 3.5 seconds a teammate marks a case (or a defect moves on) and every page on screen reloads in place.
- moments.tsThe animations the sidebar, the sign-in card, menus, dialogs, the phone sheet and toasts play, timed by their moments in theme.ts.
- motion.tsMotion helpers: the reduced-motion check, live, and run-once-in-view.
- overlays.tsxEverything that opens over the page from the address: a case, defect or release in the drawer, and the forms (new run, case, defect, release, suite or teammate, and their edits). Any page can open one by adding its query (?defect=BUG-284, ?new=case).
- page.tsxWhat every page starts with and shares: its title row (title, one quiet line, the page's own tools on the end) and a segmented filter whose options are links (?show=open), so Back and a shared link keep the filter.
- router.tsThe page switcher: reads the app's page from the address hash (#/settings, #/?status=open).
- scroll-to-view.tsScrolls an element into view moving only its own scroll container, never the page around it.
- select-box.tsxA native select dressed to match the app: no browser arrow, a drawn chevron instead.
- session.tsWhether someone is signed in: a first visit is signed in as the demo account; Sign out holds until the next sign-in, and a sign-in without Keep me signed in lasts only this tab.
- sheet.tsxThe phone sheet: a modal panel that springs in from the left with the sidebar; Escape, a tap outside or its close button slides it away.
- states.tsxThe data states every page shares: a calm skeleton while loading, an error with Try again, and an empty note with a way out.
- store.tsThe app-wide state several parts share: the theme mode and style (kept in the browser) and the toasts.
- ticker.tsxA number that counts up while its page builds in, and rolls to its new value whenever it changes.
- toasts.tsxThe toasts: short notes that confirm what just happened, at the bottom end.
- use-api.tsLoads data through the fake API with loading, error and retry, remembering each answer so a page you come back to shows at once.
- use-dialog.tsOpens and closes a native <dialog> as a modal; on close it plays its way out first (data-closing), so dialogs, sheets and the palette never vanish in one frame.
- dataThe pretend data and the fake API: swap it for your backend.
- account.tsThe demo account: who is signed in (the account menu shows them) and the email and password the sign-in page takes. Priya leads the QA team (data/seed.ts).
- api.tsThe fake API: every page loads and saves through these functions, so wiring a real backend happens here only.
- db.tsThe live pretend data: cases, runs and their marks, defects, releases, suites, the team and settings, built once from the seeds in data/.
- live-sim.tsThe teammates at work: every few seconds one of them marks their next case in an open run, now and then logs a defect or moves one along.
- mutations.tsEvery change to the pretend data: marking a case, steps, runs, cases, defects, releases, suites, the team and settings.
- seed-cases.tsThe pretend suites and their test cases for Northbank's mobile and web banking app; data/db.ts turns them into cases.
- seed.tsThe pretend QA team, releases and defects for Northbank's 2-week release train.
- views.tsWhat each page shows, worked out from the live data (data/db.ts): run progress, pass rates, readiness, the feed, trends and counts.
- localesEvery word the app shows, one JSON file a language; list.ts names them.
- en.jsonOne language's words, with the keys of en.json.
- es.jsonOne language's words, with the keys of en.json.
- list.tsThe languages the app offers, in the picker's order: one JSON file each, en.json the source. To remove one, delete its file and its line; to add one, copy es.json, translate it and add a line. English is built in; the rest load only when picked. TypeScript checks each file has en.json's keys, scripts/check/check-locales.mjs the rest (no extra keys, plural forms, {slots}).
qa-gravel.tsx
The page: the sections in order.
กำลังโหลด…
- เหมาะสำหรับ
- QA teams testing an app on iOS, Android and web each release, who track runs, cases, defects and readiness in one place.
- ทำงานอย่างไร
- Press P, F or B on a case: its cell in the run strip flips green, red or amber, and teammates' results flip theirs live.
- วิธีใช้
- Edit words in content.ts and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.