Commit graph

47 commits

Author SHA1 Message Date
Daniel Noulet
570345e4b5 fix: write the runtime config in the web image too
The Kubernetes deployment runs the split go-guess-web image, which is a plain
nginx serving static files and never ran an entrypoint. The theme service origin
is therefore never written into runtime-config.js there, so the page would always
read the empty default and theming would be silently inert in the cluster while
working in local runs. The combined root image already did this; the split one
now does too.

The script lives beside the frontend Dockerfile because that image's build
context is ./frontend, which cannot see docker/.

The chart passes THEME_BASE_URL to the web container rather than the API: it is
read by the browser, not by the service. It stays absent when unset, so a
deployment with no theme service renders exactly as before.
2026-10-05 22:55:46 +02:00
Daniel Noulet
0a78c98cc6 feat: palette and light/dark from go-bananas, and fix the image user
The theme selector and the appearance toggle are the custom elements
go-bananas ships, loaded at run time. They are custom elements rather than
components written here because the applications this service feeds are a mix of
React, vanilla JavaScript and server-rendered HTML, and a custom element is the
one shape all three can use with no build step, no import map, and no second copy
of React to break the hooks.

Every token in the stylesheet is now written as var(--bn-*, fallback). That
ordering is the safety property: with no theme service configured the page renders
exactly as it did before, and with one configured the same rules follow the
palette. The navigation rail takes the contract's sunken surface and its paired
foreground rather than a fixed dark navy, because a light appearance wants dark
text there.

THEME_BASE_URL is read from runtime-config.js, which the entrypoint rewrites from
the environment on start, so one image serves every environment rather than
baking a hostname into the bundle at build time.

contract.test.ts fetches the live contract and asserts it defines every --bn-*
variable this application consumes. A token renamed on the service would
otherwise leave every var() resolving to its fallback, and the page would look
correct while never actually following the palette. Verified it fails on a
deliberately wrong token name.

The image also had two USER lines, the second silently replacing the first with a
uid that owns neither /app nor /tmp/nginx. nginx could not create its pid file or
its temp paths, so the container failed to start. Confirmed by building both
variants: the old one cannot write nginx's temp directory, the fixed one serves
the front end, its hashed assets, and the /api proxy.
2026-10-05 22:47:20 +02:00
Daniel Noulet
5449cd3d8d feat: avatar, account menu, and single sign-on from Go Loose
Signing in now starts at the sign-in screen and one button that hands the
browser to Go Loose, which returns to the welcome page. Nothing redirects to the
identity provider on its own any more: that fired on every anonymous visit and
read as a redirect loop rather than as a choice to sign in. The password form
remains only where the API reports that Go Loose login is not configured for the
host, because otherwise the application is unreachable on a bare localhost.

A person's picture is carried through from the Go Loose identity and rendered in
the account menu and on the profile page, with their initials as the fallback.
Two things make that fallback necessary rather than decorative: Go Loose retires a
picture key when a picture is replaced, so a link cached in a browser can be dead,
and most people have not uploaded one. The URL is deliberately not persisted
locally, since a stored key would keep failing after the picture changed.

The account menu is a disclosure rather than a hover menu: a real button with
aria-expanded, Escape and outside clicks closing it, and focus returning to the
trigger. It is not an ARIA menu, because its actions are a link and a button and
menuitem roles would strip the link semantics from one of them for no gain.

The account URL of the Go Loose identity is resolved on each sign-in and is read
from the live identity provider every time, which is also what makes it correct
after a picture change.

Depends on the Go Loose revision that serves avatar_url through
/connect/userinfo, so the picture URL reaches this application at all.
2026-10-05 21:50:06 +02:00
Daniel Noulet
6be21597d5 test: fix build? 2026-10-03 15:08:48 +02:00
Daniel Noulet
1ffe3393ab feat: read the identity and application domains from the environment
Compose hardcoded auth.dev and guess.dev, which made a domain change a
tracked edit that the next pull would undo. Read both from the environment
with the defaults unchanged, following the FRONTEND_URL convention already
in this file.
2026-10-03 05:17:12 +02:00
Daniel Noulet
842f8b727e feat: deploy 2026-10-03 04:39:27 +02:00
Daniel Noulet
9bbf8a96aa feat: deploy 2026-10-03 04:39:14 +02:00
Daniel Noulet
560014d0b8 test: fix build? 2026-10-03 01:43:21 +02:00
Daniel Noulet
5344f249c7 test: fix build? 2026-10-03 01:31:06 +02:00
Daniel Noulet
dfeab2255e feat: multi tenant support 2026-10-03 01:20:14 +02:00
Daniel Noulet
ca5765b988 feat: integrate tenant SSO and remote toggle
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-03 00:46:27 +02:00
Daniel Noulet
660d5291ec fix: restore full test suite
Separate the internal API and nginx ports, align browser BDD fixtures with tenant and Go Loose requirements, and correct the invitation outcome interaction order.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-03 00:46:27 +02:00
Daniel Noulet
0de20d20f5 test: align router and integration tests with tenant auth
handler.New now requires a database, and the router enforces a tenant
plus Go Loose on protected routes. Update the stubs and integration
setup so those checks pass.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-03 00:46:27 +02:00
Daniel Noulet
70396c321a changed deployment 2026-10-02 21:44:26 +02:00
Daniel Noulet
ea4e057b02 changed deployment 2026-10-02 18:50:37 +02:00
Daniel Noulet
045f0b7cf2 feat: expose runtime OpenAPI contract
Register typed API operations and serve an always-current OpenAPI document without a generation command or committed generated artifact.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-01 18:54:02 +02:00
Daniel Noulet
314c783659 fix: preserve tenant in participant links
Build invitation and meeting URLs from the validated tenant origin and fall back when local HTTP blocks the Clipboard API.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-01 17:54:01 +02:00
Daniel Noulet
98f47df8c1 feat: route API requests by tenant hostname
Derive local API origins and tenant headers from the browser hostname, allow tenant CORS preflights, and document the multi-tenant contract.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-01 17:49:42 +02:00
Daniel Noulet
5dbda53759 feat: refresh candidate traits after CV changes
Recalculate stored participant traits when job postings change and expose replacement CV uploads with live candidate refresh events.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-01 17:36:43 +02:00
Daniel Noulet
30e3391adb feat: multi tenant support 2026-10-01 09:06:58 +02:00
Daniel Noulet
a660c591ff add targets to make file 2026-09-21 00:03:07 +02:00
Daniel Noulet
97dc875213 add targets to make file 2026-09-20 23:56:09 +02:00
Daniel Noulet
065eb4c72f chore: changing versions 2026-09-20 17:20:40 +02:00
Daniel Noulet
fece4f63bf fix: provision local production storage
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-20 15:28:23 +02:00
Daniel Noulet
88e911d05f fix: use local Rancher kubeconfig
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-20 15:18:00 +02:00
Daniel Noulet
76db5bf7a1 docs: add reproducible Rancher installation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-20 15:05:38 +02:00
Daniel Noulet
a86a0cb539 feat: configure dedicated server proxy
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-20 14:07:51 +02:00
Daniel Noulet
e787359c54 feat: add entity-scoped application events
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-20 12:29:11 +02:00
Daniel Noulet
3364eacbcc feat: add Rancher Helm deployments
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-20 10:49:09 +02:00
Daniel Noulet
d4be4f47e4 chore: changing versions 2026-09-20 09:58:28 +02:00
Daniel Noulet
79e09f049f test: add full application BDD suite
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-20 09:13:48 +02:00
Daniel Noulet
bed3f9a019 chore: help function added to show the possible make operations 2026-09-20 09:01:35 +02:00
Daniel Noulet
bf14b6eea7 fix: restore frontend page headings
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-20 08:53:52 +02:00
Daniel Noulet
fa4091a673 feat: add production container publishing
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-20 08:42:58 +02:00
Daniel Noulet
06b16064f8 feat: add recruitment dashboard
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-20 08:36:54 +02:00
Daniel Noulet
06c708b160 refactor: separate components 2026-09-20 08:28:57 +02:00
Daniel Noulet
5d7a57fd00 refactor: split frontend application features
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-20 08:08:16 +02:00
Daniel Noulet
83d14d23a2 feat: add account navigation and footer
Move Inbox into a top-right account area, add a profile page for the authenticated user, and introduce a configurable sitemap and useful-links footer.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-20 07:21:10 +02:00
Daniel Noulet
0d8a25e73f fix: redirect expired sessions to login
Invalidate authentication on protected 401 responses and JWT expiration, redirect to the login route, and explain that the session is no longer active.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-20 07:16:38 +02:00
Daniel Noulet
c050815900 feat: sync interview content in real time
Publish shared-document and note events through RabbitMQ, stream token-scoped document updates to participants, and update connected interviewer and participant browsers through resilient SSE subscriptions.

Add snapshots, heartbeats, reconnection behavior, proxy streaming configuration, privacy filtering, and end-to-end RabbitMQ coverage.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-19 22:22:42 +02:00
Daniel Noulet
e4fee06e2f feat: add participant interview link action
Add a copy button to scheduled interview sessions with confirmation, clipboard error handling, and regression coverage.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-19 22:13:50 +02:00
Daniel Noulet
afc8f0d5a7 refactor: organize frontend by feature
Move the React application into app, api, feature, component, style, and type boundaries, and rebuild the interview scheduler with a responsive details-and-team layout.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-19 22:12:10 +02:00
Daniel Noulet
75e3c73a61 feat: add collaborative interview scheduling
Add candidate decisions, co-interviewer accounts, scheduled interview inbox and calendar views, candidate-safe meeting links, shared documents, and private live notes backed by RabbitMQ.

Extend the disposable integration environment to validate PostgreSQL migrations, seeded users, interview lifecycle behavior, and RabbitMQ fanout.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-19 21:58:24 +02:00
Daniel Noulet
fd06fbbb5d fix: handle empty candidate trait lists
Return empty JSON arrays from the API and normalize nullable values from older servers before rendering candidate match counts.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-19 21:34:12 +02:00
Daniel Noulet
6969f79015 test: add self-contained integration environment
Separate schema migrations from environment-specific fixtures, run the full API workflow against a disposable PostgreSQL Testcontainer, and provide seeded development and UI test environments.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-19 21:11:20 +02:00
Daniel Noulet
6153017b62 review 2026-09-19 20:56:27 +02:00
Daniel Noulet
6ffc0d2c99 initial commit 2026-09-19 20:31:14 +02:00