Skip to content
>_ StartupJobList_

Assess the work

Frontend interview scorecard: state, accessibility and request races

Assess whether a candidate can keep a results interface understandable when data loads, fails or arrives out of order. Use a bounded scenario, fixed follow-ups and evidence anchors, then review the findings with the people responsible for the hire.

Run a bounded 60-minute interview

This discussion assesses how a candidate reasons about a React/TypeScript results workflow. It does not demonstrate implementation, debugging or testing ability. If those are essential to the job, replace a discussion stage with a separate, bounded work sample; do not infer coding ability from conversation alone.

Core agenda. Use the same time and fixed prompts for everyone in this round.
MinutesStageEvidence soughtStop rule
0–4Explain format, ask about access needs and read the prompt.Candidate understands the task and can ask clarifying questions.Clarify only supplied facts; do not coach toward an answer.
4–12Trace URL and UI state.Source of truth, validation, pagination reset and Back/Forward behavior.At minute 12, move on.
12–18TypeScript and API boundary.UI state shape, untrusted response validation and safe invalid-data behavior.Ask the fixed boundary prompt; at minute 18 move on.
18–31Keyboard and assistive-technology interaction.Semantic controls, tab path, status message and focus decision.Ask one fixed follow-up, then move on even if unresolved.
31–46Inject out-of-order requests and an API failure.Stale result protection, error/status distinction and safe recovery.Use only the two fixed scenario changes; no bonus puzzles.
46–53Testing and measured performance.One high-value test sequence and a baseline-led investigation.Do not ask for implementation code in this discussion-only format.
53–60Candidate questions and close.Time for candidate to learn about the role and process.Stop at 60 minutes; record unasked evidence as NO.

Tell candidates the scenario, discussion-only format, time and topics in advance. The interviewers should agree who reads the prompt and who records notes. If one stage runs over, cut discussion depth rather than removing candidate questions or silently extending the session.

Score the evidence against the brief, not presentation polish. Give the same fixed follow-ups and enough time for a considered answer. If a prompt was unclear, interrupted or not reached, mark the related competency “not observed” and fix the process before the next interview.

↑ Back to sections

Candidate prompt

The candidate-only packet contains the scenario and task without interviewer guidance or expected answers. Read it as written, then give the candidate uninterrupted time to reason aloud or take notes.

Scenario

You are joining a product team that is building a searchable incident-results screen in React and TypeScript. Operators need to search by words, filter by status and move through paginated results. They share links when handing an incident to a teammate.

A route can look like /incidents?q=payment&status=open&page=2. The API returns a page of incidents and a total count. The team has not decided every detail of how filters combine or whether changing a filter resets the page; call out assumptions instead of inventing facts.

Your task

  1. Describe how you would represent the current view so a shared URL and browser Back/Forward behave predictably.
  2. Walk through the controls and results from a keyboard user's perspective, including how they learn that results changed.
  3. Explain how you would handle two searches that finish in a different order from when they started, and what the user sees when the API fails.
  4. Name one test sequence and one way you would investigate a slow view after a baseline exists.

You may describe alternatives and trade-offs. No coding or specific library is required. Ask questions if a missing product or API decision changes your answer.

↑ Back to sections

Trace URL and UI state

Fixed prompt: “A user opens /incidents?q=payment&status=open&page=2, changes the status filter, and then presses Back. What state belongs in the URL, what happens to page number, and how do you keep the controls and displayed results consistent?”

Listen for a clear source of truth. A candidate might parse and validate the query at the route boundary, initialize controlled controls from it, and update navigation when the user applies a search or filter. Another approach can work if the candidate describes how it avoids two independently changing copies of the same state.

A useful answer notices that a changed query often invalidates the old page number, but this product decision should be explicit. It also distinguishes the current filter/page identity from transient request state, selected row state or cached result data. Ask how an unknown status value, repeated query key or out-of-range page is handled, and whether Back restores a prior submitted search or each keystroke.

  1. 1. Parse the route. Read location and normalize allowed query values.
  2. 2. Render the view. Drive controls from one view identity.
  3. 3. Request results. Key the request to that identity.
  4. 4. Guard freshness. Commit only the matching response.
  5. 5. Explain status. Render rows plus a clear loading, empty or error state.
  6. 6. Navigate. Preserve a shareable URL for the next page.

This is a discussion trace, not a prescribed architecture. A router or query-state library may own navigation. The candidate should identify where parsing, normalization and updates occur, and how native browser history remains meaningful.

The browser's URL.searchParams provides access to query parameters. React recommends avoiding duplicate or contradictory state where values can be derived. These references establish API behavior and a state-design principle, not a mandated router: MDN URL searchParams, React state structure.

↑ Back to sections

Keep interaction accessible

Fixed prompt: “The results refresh after a filter change. A keyboard user must be able to operate search, status and pagination, and a screen-reader user should know when results update. Talk through the markup, focus and announcement choices.”

Look for native labelled input/select/button controls, a logical DOM and tab order, visible focus, and a concise status region for “Loading results,” “12 incidents found” or a recoverable error. A status role can politely announce changed status without moving focus. The candidate should avoid announcing every keystroke or making a routine refresh an assertive interruption.

Ask what happens after pagination. A route change may keep focus on the activated link/button and update a status; a full page navigation has different browser behavior. If the application intentionally replaces a substantial region, the candidate should name a deliberate focus strategy and test it. Do not accept “add tabindex everywhere” as a plan.

For tabular results, native table markup with captions and scoped headers may fit a read-only dataset. A table is not automatically a keyboard-navigation widget. If rows contain many controls or cell-by-cell interaction is required, assess whether the task actually needs a grid pattern and the additional keyboard model it entails.

Ask for a test path: traverse controls with Tab/Shift+Tab, submit with keyboard, reach pagination, observe the status update, and verify focus stays useful after result replacement. A screen reader/browser check complements this path; no single automated scan proves the experience works.

W3C guidance describes native table semantics and notes that a table is not itself an interactive widget. WCAG's status-message material explains programmatically exposed status updates; it does not require one particular visual design: WAI table pattern, WAI status messages.

↑ Back to sections

Handle stale responses and failures

Fixed change one: “Search A starts, then the user changes the query and Search B starts. B returns first with matching results. A returns later. What should the interface show, and why?”

Fixed change two: “The newest request fails after the previous results were shown. What does the user see, and how can they recover?”

The key invariant is that visible results and status correspond to the current view identity. Canceling work can save effort, while an effect cleanup, request generation or cache key can prevent an obsolete response from committing. The candidate should explain which response is allowed to update results and loading state. An abort request does not prove that a server stopped processing or that every downstream operation was undone.

Ask whether the previous results remain visible while refreshing. Either retaining them with a “showing prior results” indication or clearing them can be defensible, but an unlabeled mixture of old rows and new filters is confusing. The failure path should distinguish a network/server error from a valid empty result and provide a retry or other task-appropriate next step.

Illustrative flawed fragment, not executed:

async function loadIncidents(url: string) {
  setLoading(true);
  const response = await fetch(url);
  const payload = await response.json();
  setIncidents(payload.items);
  setLoading(false);
}

Two calls can overlap, so an older response can replace a newer one and can clear its loading state. The fragment also assumes a successful HTTP response and a trusted payload shape. In TypeScript, a declaration for payload does not validate the bytes received at runtime. Ask the candidate to state an invariant and a test before asking for a code rewrite.

A strong test uses controllable deferred responses: start A, start B, resolve B, then resolve A; assert that B remains visible and the status remains correct. Repeat with B failing. Also test a valid empty payload and a malformed or unexpected response if runtime validation is part of the client's boundary.

React documents aborting a fetch or ignoring its result during effect cleanup. MDN describes AbortController as a way to communicate cancellation to a request. Neither mechanism defines the application's user-visible stale-state policy: React effect cleanup, MDN AbortController.

↑ Back to sections

Rate evidence against anchors

Write the candidate's relevant statement or decision before choosing a rating. Rate each competency separately. A rating describes what this interview revealed against this role's brief, not a person's general ability.

Use one scale for every competency. Explain each NO rating.
RatingAnchor
1 · Material gapAfter the fixed follow-up, the answer leaves a stated user, correctness or accessibility risk materially unaddressed, or relies on an incorrect assumption central to the task.
2 · Partial evidenceIdentifies the issue and some viable action, but leaves an important consequence unresolved or needs substantial prompting to connect behavior to user impact.
3 · Meets this role's barGives a workable approach, explains the central trade-off and names a relevant check or recovery behavior.
4 · Strong independent evidenceMeets level 3 and anticipates an interaction or failure mode, compares options against the stated constraints, and explains how to verify the result.
NO · Not observedThe prompt was not reached, was materially unclear, time ended or an agreed adjustment changed what could be observed. Record why; do not translate missing evidence into 1.

Worked example: borderline evidence, rating 2

Hypothetical observation: “I would cancel the previous request when the filter changes.” The candidate notices overlap, but after the fixed follow-up cannot explain how the UI prevents a late result from committing or how the loading state stays tied to the latest query.

Dimension and rating: asynchronous freshness, 2. The response identifies a useful mechanism but leaves the central visible-state invariant unanswered. If the candidate had explained cleanup or request identity and proposed the deferred-response test, that evidence could support 3. This example is not a person verdict.

Worked example: strong evidence, rating 4

Hypothetical observation: The candidate says a new query becomes the view identity, invalidates the old page, and only a response for the current identity can commit. They would label whether old rows remain visible, distinguish an empty result from an error, and resolve the newer request before the older one in a test.

Dimension and rating: asynchronous freshness, 4 if that evidence is independent and fits the role. It covers correctness, user communication and verification rather than naming a library.

Missing evidence example

If the accessibility stage is skipped because the first stage ran long, record NO with “not asked, interviewer timekeeping.” Do not rate 1 or infer ability from another stage. Fix the schedule before the next candidate.

Five role-specific competencies. Use the same anchors and fixed prompts for the round.
CompetencyLevel 1 signalLevel 3 signalLevel 4 signal
View identity and navigationHolds separate filter, URL and result state with no way to resolve disagreement.Names a source of truth and explains query/page updates and browser history.Also calls out normalization, invalid values and how product semantics shape history behavior.
Accessible interactionRelies on mouse-only controls or vague ARIA additions, with no status/focus plan.Uses labelled native controls, a keyboard path and concise status communication.Also distinguishes status announcement from focus movement and proposes a realistic assistive-technology check.
Async freshness and recoveryAllows stale responses to replace current results or conflates error with empty.Prevents obsolete commits and gives the user a distinct recoverable error state.Also addresses retained stale data, cancellation limits, request identity and a deterministic race test.
TypeScript and API boundaryAssumes static types guarantee the remote payload shape.Describes useful UI state types and identifies runtime validation at the data boundary where needed.Explains how invalid data is contained, reported and tested without overcomplicating trusted internal values.
Testing and performance judgmentNames generic snapshots or optimization without connecting either to a user task or baseline.Chooses a transition test and investigates a measured bottleneck on a representative route.Also prioritizes by user impact and explains a regression signal or follow-up measurement.

For an early-career role, level 2 may be enough where the team will teach the missing step. For a senior role, expect independent decisions only where the brief gives the person that authority. Do not total scores into an automatic cutoff. Discuss evidence and missing observations with the role requirements and support plan in view.

OPM's structured-interview material describes consistent questions and evaluation standards. Use it as a process reference; it does not validate this example scorecard or replace local HR/legal review: OPM structured interviews.

↑ Back to sections

Printable interviewer evidence sheet

Use this packet as a discussion aid. It contains the timed schedule, exact stage prompts and rating anchors so a printed copy remains usable. Interviewers should record job-related evidence independently, then compare notes after the candidate leaves.

The interviewer packet is self-contained below; use the print button for this section only.

Role / level: ____________________________________ Date: ______________

Candidate identifier: ____________________________ Interviewer: _____________

Agreed adjustment or prompt change: ______________________________________________

Schedule and fixed prompts

60-minute core. Ask the same prompt and follow-up for every candidate.
TimeFixed promptTimekeeper note
0–4Read candidate scenario. “What assumptions or questions do you want to surface before starting?”Clarify supplied facts only.
4–12“A user opens /incidents?q=payment&status=open&page=2, changes status, then presses Back. What state belongs in the URL, what happens to page, and how do you keep controls and results consistent?”At minute 12, move on.
12–18“The API response is parsed from JSON and can be missing items, contain an unknown status, or report a bad page. Which TypeScript types would you use for the UI states and API boundary, what do those types not guarantee at runtime, and how should invalid data affect the screen?”Credit boundary validation and a safe user-visible failure; do not require a specific library.
18–31“Talk through the keyboard path for search, status and pagination. How will a screen-reader user know results refreshed, and what should happen to focus?”Follow up once: “Would focus always move after pagination? Why?”
31–46“Search A starts, then B starts. B returns first; A returns later. What should appear?” Then: “The latest request fails after prior results were shown. What does the user see and how can they recover?”Do not add bonus failures.
46–53“Name one test sequence for this behavior and one way to investigate a slow view after a baseline exists.”No coding is part of this discussion.
53–60Candidate questions and close.Stop at 60; mark unasked evidence NO.

Shared rating anchors

1: material job-related risk remains after follow-up. 2: partial answer; central consequence remains. 3: workable approach, trade-off and relevant check. 4: independent reasoning that anticipates an interaction and explains verification. NO: insufficient evidence; explain why. Never score NO as 1.

Role-specific evidence anchors

Use these anchors with the shared 1–4/NO key above.
Competency1 · Material gap3 · Meets role bar4 · Strong independent evidence
View identity and navigationNo way to resolve conflicting URL, controls and result state.Names one source of truth and explains query/page updates plus history.Also handles invalid query values and explains how product semantics shape history.
Accessible interactionMouse-only or vague ARIA answer with no status/focus plan.Gives a labelled keyboard path and clear result status.Separates announcements from focus movement and proposes an assistive-technology check.
Async freshness and recoveryOlder response can replace current results; errors look like empty results.Prevents obsolete commits and provides a distinct recoverable error state.Also handles retained stale rows, cancellation limits and a deterministic race test.
TypeScript and API boundaryAssumes a TypeScript annotation validates remote JSON.Models UI states and describes runtime validation or containment of invalid payloads.Explains a specific invalid-data path, user state and test without duplicating unnecessary types.
Testing and performance judgmentNames optimization or generic snapshots without user task or baseline.Chooses a transition test and investigates measured work on a representative route.Prioritizes by impact and names a regression signal or follow-up measurement.

Evidence notes

Write the candidate's relevant words or decisions, then the role-specific implication. Record assumptions and evidence still missing. Avoid personal impressions unrelated to the work.

One rating per competency, with observed evidence and any unresolved gap.
CompetencyObserved words, decisions or trade-offs1 / 2 / 3 / 4 / NOMissing evidence / follow-up
View identity and navigation


Accessible interaction


Async freshness and recovery


TypeScript and API boundary


Testing and performance judgment


Independent debrief

Evidence we agree on:

_________________________________________________________________________

_________________________________________________________________________

Different readings against the anchor:

_________________________________________________________________________

_________________________________________________________________________

NO ratings and consistent next step:

_________________________________________________________________________

_________________________________________________________________________

Role support or scope implications to discuss:

_________________________________________________________________________

_________________________________________________________________________

Before using this scorecard

  • Confirm the five competencies match the actual job and level.
  • Have a frontend engineer and accessibility reviewer check the prompt and anchors.
  • Dry-run the agenda with an interviewer to catch confusing wording and timing pressure; no human pilot is claimed here.
  • Share the duration and format in advance, offer an adjustment path, and apply changes consistently.
  • Keep notes only under the organization's access and retention rules.

This is a structured discussion starting point, not a validated selection instrument or automated recommendation. It does not test implementation, debugging or testing directly. The employer must decide whether a separate work sample is needed and make the final decision using human judgment.

↑ Back to sections

Choose your next step