Skip to content

feat(dashboard): migrate applicant assignment to the SDK seam - #20

Open
phibkro wants to merge 1 commit into
publish/0019-status-decodefrom
publish/0018-applicant-seam
Open

feat(dashboard): migrate applicant assignment to the SDK seam#20
phibkro wants to merge 1 commit into
publish/0019-status-decodefrom
publish/0018-applicant-seam

Conversation

@phibkro

@phibkro phibkro commented Aug 12, 2026

Copy link
Copy Markdown
Member

Design spec

design-specs/0018-dashboard-applicant-assignment-sdk-seam.md

Journey

An authorized dashboard user loads applicant queues, assigns an interviewer and school through the typed SDK seam, observes exact typed failures, and gets fail-closed behavior for malformed or unknown application status.

Experience it

  1. Check out this stacked branch.
  2. Run the bounded applicant fixture and the exact Playwright journey from the spec.
  3. Exercise the assignment dialogs and malformed-status case.

Evidence

  • Browser journey: 1 passed, 1 expected skip; 71 bounded requests.
  • SDK donor parity, focused route/spec builds, and cleanup: PASS.
  • Before/after screenshots plus a playable interaction recording were independently reviewed; exact hashes and dimensions are in the spec.

What is real

The dashboard-to-SDK applicant assignment seam, typed error projection, and fail-closed unknown-status UI are locally functional with synthetic data. This does not prove backend persistence, auth-provider behavior, production data, deployment, or production acceptance.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: aeee2c66a8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

context: "options" as const,
}),
),
client.admin.interviews.schemas().then(

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Align the schema decoder with the server response

When this route runs against the repository's server, every call here fails decoding: InterviewSchemaListProvider returns InterviewSchemaResource objects containing id, name, and questionCount, while admin.interviews.schemas() requires each object to contain a questions array (packages/sdk/src/schemas/interview.ts). Because the loader treats this options failure as fatal, authorized users receive “Kunne ikke laste intervjualternativer” instead of any applicant table, so this seam needs to consume a contract compatible with the current /api/admin/interview-schemas response.

Useful? React with 👍 / 👎.

}
});

await resetStub(request);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Start the applicant stub in the default Playwright run

The newly auto-discovered test unconditionally contacts 127.0.0.1:8789 here, but the checked apps/dashboard/playwright.config.ts starts only the dashboard server and, in fixture mode, the login fixture on port 8788; neither test:e2e nor e2e:test starts e2e/fixtures/applicant-api.ts. Consequently a normal package Playwright run fails immediately with a connection error unless a developer happens to launch the bespoke stub externally, so the test must arrange that server itself or be excluded from the default suite.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant