feat(invitations): add the candidate invitation inbox with C4 acceptance and decline
This commit is contained in:
1 parent
12a7213d4a
commit
a856066316
54 files changed
+3897
-136
No files matched your search
+3
-3
@@ -17,9 +17,9 @@ Implemented in this build (backend API and frontend screens):
|
||||
- Employer cabinet: organizations (one account can own several and be a recruiter in others), the company profile, needs with a salary range, deterministic candidate search over the bank or by a need without ML, with an explanation of the components, and the anonymous card with its evidence. Only an organization owner can search.
|
||||
- Support cases in both cabinets, including a manual assessment request after a C3 refusal.
|
||||
- The notification inbox in both cabinets. In this build no product workflow creates notifications yet, so the list is empty.
|
||||
- Invitation drafts on the organization side only and through the API only: create, list, read, and change the terms with versions. There is no invitation screen.
|
||||
- Organization-side invitations: create a draft, list, read, and change the terms with versions through the API; the invitation screen opens from a candidate search result, and the company's invitation list is still a placeholder.
|
||||
|
||||
Planned and not working: sending an invitation to a candidate (the API answers 501 `not_implemented`), the candidate invitation inbox, viewing, accepting, and declining, withdrawal, salary raise, and contact release, the invitation screens in both cabinets (placeholders now), password reset, mail for product notifications, resume upload and parsing, PDF, FSP integration, ML inference and semantic search, the adaptive test, sandbox practice, percentiles and calibrated grades, and the SMTP transport.
|
||||
Planned and not working: sending an invitation to a candidate (the API answers 501 `not_implemented`), withdrawal, salary raise, and contact release, the company's invitation list screen (a placeholder now), password reset, mail for product notifications, resume upload and parsing, PDF, FSP integration, ML inference and semantic search, the adaptive test, sandbox practice, percentiles and calibrated grades, and the SMTP transport.
|
||||
|
||||
### Requirements
|
||||
|
||||
@@ -82,7 +82,7 @@ The full inventory and the seed rules are in [Isolated demo stand](#isolated-dem
|
||||
2. On the same page start the Backend Junior full test with Go: 25 items, a 72-hour deadline, two work sessions, no practice. After it completes, the result is compared with the pass mark of the demo policy; a passed test receives an uncalibrated synthetic category, a failed one the result `not_confirmed`. The result and the history open at `/candidate/results`.
|
||||
3. Prepared candidate: sign in as `prepared-1@demo.lincodex.test` and open the results, the skill evidence, and the privacy settings with the published card.
|
||||
4. Employer: sign in as `employer-alpha@demo.lincodex.test`, select "Alpha", create a need, and open the search (`/employer/candidates`). The main group holds the six prepared cards with the flags `ml_unavailable` and `cohort_below_30`; a card and its evidence open from the results. In "Beta" the same account is a recruiter, and search answers 403: in the minimal release only the owner can search.
|
||||
5. Invitations: the screen in both cabinets is a placeholder. A draft can be created through the API only; sending and the candidate's answer are planned.
|
||||
5. Invitations: the company's invitation list is a placeholder. An invitation is created from a candidate search result; the candidate sees it in the incoming list and answers it on the invitation screen.
|
||||
|
||||
### 5. FSP, ML, and data
|
||||
|
||||
|
||||
@@ -59,6 +59,8 @@ Deployment smoke checks infrastructure routes, Compose startup, PostgreSQL/Redis
|
||||
- Waits for backend readiness, runs the suite with retries disabled, and returns its exit code; make reports any failure as exit status 2.
|
||||
- Removes the containers, volumes, network, locally built images, and env file on every exit, including failures and interrupts. Only the cached Playwright image and the build cache remain.
|
||||
|
||||
Every browser of a run reaches the stand from the same client address: the browser container shares the frontend container's network namespace, so the app Nginx sees all requests from loopback. The per-address limit on `/api/v1/` (20 requests per second with a burst of 60, `deploy/nginx/nginx.conf` and `deploy/nginx/conf.d/app.conf`) is therefore one budget for the whole suite. A 429 from that limit is a failed stand, not a result of the flow under test, and the production limits stay unchanged; `deploy/scripts/test_perimeter.py` keeps checking them. The suite stays inside the budget by design. `frontend/playwright.config.ts` runs one worker. `frontend/e2e/assessment.spec.ts` pauses 250 ms after each saved answer of a full attempt, because a candidate reads each item. The real-bank search in `frontend/e2e/match-search.spec.ts` runs first, in its own project: an unfiltered bank search keeps ten entries per group, so candidates published by earlier specs would decide which entries the test sees. On the stand, a replay of this limit over the access log peaked at about two thirds of the burst with one worker and within about ten requests of it with two workers.
|
||||
|
||||
Artifacts of the last run are in `frontend/test-results/e2e/`, which Git ignores; the runner prints the path. `report/` holds the HTML report (`pnpm exec playwright show-report test-results/e2e/report` from `frontend/`). For each failed test, `results/` keeps `trace.zip` and a screenshot (`pnpm exec playwright show-trace <trace.zip>` needs a local browser; trace.playwright.dev opens the file without one). After a failed run, `stand.log` holds the stack logs. `E2E_SPEC_DIR=<dir>` runs specs from another directory, such as a scratch copy, against the same isolated stack.
|
||||
|
||||
## Local registration browser tests with a mail fixture
|
||||
|
||||
Reference in new issue
Block a user