Skip to content

About

React + TypeScript pipeline board for the HireFlow GraphQL API: drag-and-drop stages, live subscriptions, typed codegen, in-browser demo mode

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

🧭 HireFlow Web

A recruiter's pipeline board for the HireFlow GraphQL API: drag candidates through hiring stages, watch changes arrive live, and see who fits which role.

Built with React 19, TypeScript, urql and GraphQL Code Generator.

CI Deploy React TypeScript GraphQL Tailwind Tests License: MIT

Runs entirely in your browser. No sign-up, no server.

Job detail page: navy masthead with a condensed title and numbered stage counters, above a seven-column pipeline board of candidate cards with blueprint corner marks


✨ Highlights

🎨 Industrial design language Navy masthead, condensed Barlow display type, hairline rules, blueprint corner marks and staggered entrance motion (reduced-motion aware), all from semantic tokens with a hand-tuned dark theme.
πŸ—‚οΈ Drag-and-drop pipeline Move candidates between stages with dnd-kit. Valid target columns light up while you drag; invalid ones dim.
🧯 Server-driven rules The board doesn't hard-code the hiring rules. Each card carries allowedNextStages from the API, and an illegal drop shows the API's own typed InvalidStageTransitionError.
πŸ“‘ Live updates A GraphQL subscription over graphql-ws pushes stage changes; open two tabs and watch one update the other.
πŸ”’ End-to-end types Every query is checked against the API's schema.graphql at build time, and the results are fully typed. CI fails if the generated types drift.
🎯 Skill matching Cards and profiles show 5-segment skill-match meters, matched/missing skills and ranked job recommendations from the API.
⏱️ Pipeline health Numbered stage counters with stage-to-stage conversion, days-in-stage on every card, and a stalled flag for applications untouched for over a week.
✦ AI copilot A side panel backed by HireFlow Copilot (Claude + RAG). Answers cite the HireFlow records they come from, and each citation links to that job or candidate. Changes the agent proposes wait for you to click Apply, which runs moveApplication or scheduleInterview with the app's own session.
πŸ§ͺ Demo mode The real HireFlow schema executes in the browser against sample data, so the public demo works without a backend while using the same operations, paging, filtering and errors.
β™Ώ Accessible Every drag has a keyboard/menu alternative; columns, meters and charts carry labels and a screen-reader table.
πŸŒ— Light & dark Semantic colour tokens with a system/light/dark toggle.
Dark mode: dragging a card; allowed columns get a dashed outline, the hovered invalid column turns red, other columns dim Candidate profile: masthead with name and skills, application card with a segmented skill-match bar, stage history, and recommended jobs
Dragging: allowed stages are outlined, the invalid target turns red Candidate profile: skill match, history, recommendations
Job board: navy masthead with search and work-mode toggles above a grid of corner-marked job cards Interviews: agenda with date blocks on the left, recent feedback with segmented ratings on the right
Job board: search and filters in the masthead, cursor pagination Interview agenda and recent feedback

Job detail page with the Copilot panel open on the right: a question about the strongest Senior .NET candidates, answered as a numbered list with superscript citation markers

The copilot ranking the Senior .NET pipeline, with citations back to each application

πŸš€ Quick start

git clone https://github.com/AutumnTrace/hireflow-web.git
cd hireflow-web
npm install
npm run dev

Open http://localhost:5173. It starts in Demo mode, with nothing else to run.

Connect to the real API

  1. Run the HireFlow API on port 5230:
    dotnet run --project src/HireFlow.Api --launch-profile http
  2. In the web app, click Demo data βš™ β†’ Live API β†’ leave the URL empty β†’ Save.

The Vite dev server proxies /graphql (HTTP and WebSocket) and /auth to the API, so no CORS setup is needed in development. The app signs in through the API's development token endpoint as a demo recruiter.

To point at an API on another origin, enter its URL in settings and add this site to the API's Cors:AllowedOrigins.

The copilot

In Demo mode, the ✦ Copilot panel replays real answers that Claude gave about this exact demo dataset (recorded with the copilot's scripts/record_answers.py). It shows the recording date, and Apply on a proposed move changes the in-browser board for real. Nothing calls an AI service, so the public demo costs nothing to run.

In Live API mode, it calls a running HireFlow Copilot and takes any question:

# in hireflow-copilot, with ANTHROPIC_API_KEY in .env
COPILOT_SOURCE=graphql COPILOT_HIREFLOW_URL=http://localhost:5230/graphql uv run hireflow-copilot

The copilot URL (default http://localhost:8000) is under Live API in settings. After you apply a change, the panel asks the copilot to re-index, so its next answer sees the new stage.

The demo dataset is shared with the copilot through scripts/export-demo-data.ts, so names, stages and application ids in recorded answers match the board.

πŸ— How it works

flowchart LR
    subgraph browser["Browser"]
        ui["React pages<br/>(jobs Β· pipeline Β· candidates Β· interviews)"]
        urql["urql client<br/>document cache"]
        ui -- "typed documents<br/>(codegen)" --> urql
    end

    subgraph live["Live API mode"]
        api["HireFlow API<br/>.NET 10 Β· Hot Chocolate"]
    end

    subgraph demo["Demo mode"]
        exec["executeExchange"]
        schema["HireFlow schema.graphql<br/>+ in-memory resolvers"]
        exec --> schema
    end

    urql -- "HTTP queries & mutations" --> api
    urql -- "graphql-ws subscriptions" --> api
    urql -. "same operations,<br/>no network" .-> exec
Loading
  • One contract. schema.graphql is synced from the API repo (npm run schema:pull). Codegen checks every operation against it, and demo mode executes the same SDL, so demo and live behaviour can't drift silently.
  • Demo backend (src/demo): @graphql-tools/schema makes the SDL executable over a deterministic dataset. A small interpreter (query.ts) implements Hot Chocolate's where/order/cursor-paging conventions, and the resolvers mirror the API's state machine and typed errors. It's lazy-loaded, so live mode never downloads it.
  • Moves call the moveApplication mutation. Valid moves update the card immediately, then the job is refetched for fresh funnel counts. If the API returns a typed error, the card snaps back and a toast shows the server's message.

πŸ”¬ Things I found by testing against the real API

Building the client surfaced two real API issues, which were fixed upstream:

  • hireflow#9: Hot Chocolate had inferred a domain method as a query field (JobApplication.moveTo). Code generation exposed it. Also added CORS for browser clients.
  • hireflow#10: filtered queries that pass where as a variable were rejected by cost analysis (cost 4,777 vs. a 1,000 limit). Hot Chocolate prices filter variables at 5Γ— their worst case. The fix tunes the multiplier and budget, with regression tests that replay this app's queries.

The job board also requests a fixed page size (first: 12, with Load more) so the server can price each request accurately.

πŸ“ Project structure

src/
β”œβ”€β”€ api/              # Data source settings, live urql client (HTTP + graphql-ws), dev sign-in
β”œβ”€β”€ copilot/          # Copilot panel: API client, recorded answers, Markdown-subset + citation renderer
β”œβ”€β”€ demo/             # In-browser HireFlow: dataset, executable schema, filter/sort/paging interpreter
β”œβ”€β”€ features/
β”‚   β”œβ”€β”€ jobs/         # Job board, job detail, stage strip, pipeline board, live activity feed
β”‚   β”œβ”€β”€ candidates/   # Candidate list, profile, skill-match meter
β”‚   └── interviews/   # Agenda and recent feedback
β”œβ”€β”€ components/       # Layout, settings dialog, toasts, UI primitives
β”œβ”€β”€ lib/              # Stage metadata, formatting helpers
└── gql/              # Generated typed documents (do not edit)
e2e/                  # Playwright specs (desktop + mobile)
schema.graphql        # API contract, synced from AutumnTrace/hireflow

βœ… Quality checks

Command What it runs
npm run lint oxlint with React, a11y and Vitest rules
npm run typecheck TypeScript (strict)
npm test Vitest + Testing Library: demo schema rules, filter/paging interpreter, board behaviour, job board against the demo API, copilot rendering and replay
npm run test:e2e Playwright against the production build: real mouse drags, illegal-move errors, filters, profiles, settings, copilot citations and applying a proposal, mobile viewport
npm run codegen Regenerate typed documents (CI fails if src/gql is stale)
npm run schema:pull Fetch the latest API schema and regenerate

CI runs all of the above on every PR, and every push to main deploys the demo to GitHub Pages.

πŸ—Ί Roadmap

  • Candidate and job creation forms (registerCandidate, createJobPosting)
  • Schedule interviews from a card
  • Optimistic updates through urql Graphcache
  • Real OIDC sign-in, replacing the dev token endpoint

πŸ“„ License

MIT Β© Mina Rotari

About

React + TypeScript pipeline board for the HireFlow GraphQL API: drag-and-drop stages, live subscriptions, typed codegen, in-browser demo mode

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages