design: publish five interactive Jobjakt concepts and review evidence
@@ -0,0 +1,54 @@
|
||||
# Five Jobjakt design directions
|
||||
|
||||
[Open the gallery](index.html) or [compare screenshots and tradeoffs](compare.html). This is the review build for 19 November 2026. The existing application and five earlier A3 concept explorations remain separate.
|
||||
|
||||
Serve this directory from the development checkout with the command below. The static site uses local assets and synthetic records. To run the included browser checks, install the application's normal Playwright dependencies and Chromium through the existing project workflow. All scripts resolve Playwright from `job-tracker-ui`. Set `JOBJAKT_GALLERY_URL` if serving on another local port.
|
||||
|
||||
```powershell
|
||||
python -m http.server 4327 --bind 127.0.0.1 --directory docs/ui-modernisation/reassessment/concepts
|
||||
```
|
||||
|
||||
## Compare the experiences
|
||||
|
||||
| Direction | First interaction | Desktop and phone | Implementation implication |
|
||||
| --- | --- | --- | --- |
|
||||
| A · Clear Desk | Scan the activity list and agenda | Compact top navigation, high density, horizontally scrollable on a phone | Existing tracker and agenda owners fit. Check legibility as text size increases. |
|
||||
| B · Next Chapter | Choose a guided next action | Generous whitespace and short prompts work for a new applicant. Secondary choices sit further down the page. | Guidance must account for returning users and allow direct navigation. |
|
||||
| C · Career Atelier | Start from a CV, letter or profile | Desktop library sidebar and document canvas. On a phone the preview comes before the editor. | Document draft identity, canonical profile ownership, conflicts, focus order and export fidelity need explicit preservation tests. |
|
||||
| D · Northstar | Review an employer brief | An editorial home and prominent heading give one opportunity priority. Fewer items fit on a phone. | Existing route owners can provide the content. Long names and inverted navigation need careful contrast and reflow checks. |
|
||||
| E · The Next Move | Continue an application or choose the next task | Journey-led home with bottom navigation. Reaching the tracker quickly matters when working on several opportunities. | The shell must preserve selected-job context, browser history, keyboard focus and bottom safe areas. |
|
||||
|
||||
Each concept offers dashboard, discovery, application list and board, details, Career Profile, CV, letter, calendar, correspondence, settings, administration and onboarding. Secondary layouts share several patterns so the same task can be compared. The site uses English and Bokmål chrome, two themes and responsive layouts. Some secondary copy and fictional employer/document content remains English.
|
||||
|
||||
## Try the same task in each concept
|
||||
|
||||
1. Open Discovery. Choose Norway and search for **Electrician**. Open the result and check the employer and city.
|
||||
2. Save the opportunity, write a note, edit its CV summary, then return to the application. Mark it applied and schedule a follow-up. Open that job from the calendar or the Applied board column.
|
||||
3. Open a different job. Its notes and CV draft are independent. Switch to the Career Profile to inspect the canonical summary.
|
||||
4. In Discovery, change the prototype state to error, retry, cancel loading or recover from an empty search using the keyboard.
|
||||
5. Switch theme and language, then repeat on a narrow viewport.
|
||||
|
||||
Changes last within the loaded page. Reloading restores the synthetic fixture. Month and board views, notes, CV summaries and letters are interactive. Actual accounts, invitations, sending email, source feeds, AI calls, file import, stored revisions and PDF production require the application. Administration, history and export use illustrative feedback. The discovery map and advert-language checkboxes are illustrative.
|
||||
|
||||
## Browser evidence
|
||||
|
||||
All checks below were run against the packaged review source after the selected-job and contrast corrections.
|
||||
|
||||
| Check | Result | Evidence |
|
||||
| --- | --- | --- |
|
||||
| Render matrix | 720 configurations passed, with zero page errors or horizontal overflow. Five concepts × 12 screens × 3 viewport widths (1440/820/390) × 2 languages × 2 themes. | [Matrix](matrix.json) |
|
||||
| Screenshot sample | 30 captures from dashboard, discovery and CV. The 120 sampled renders overlap the 720 configurations. | [Sample](validation.json) |
|
||||
| Existing interactions | Five concept journeys, with eight recorded check groups each. | [Results](interactions.json) |
|
||||
| Filtered opportunity and draft isolation | Ten journeys, one desktop and one phone run per concept. Fixed a reproduced error that showed the healthcare role when selecting the electrician. Verified per-job notes, CV draft isolation, applied column and agenda/month identity. All 60 comparison image URLs returned HTTP 200. | [Results](selected-job-validation.json) |
|
||||
| Discovery recovery | Ten keyboard journeys and 30 loading/empty/error screenshots. Checked retry, cancel, clearing filters and focus recovery. | [Results](recovery-validation.json) |
|
||||
| Accessibility | 40 axe scans of dashboard, discovery, detail and CV at desktop EN/light and phone NB/dark. Original scans found two contrast causes across five states. Final scans found zero violations under the selected WCAG 2.0/2.1 A/AA rules. | [Results](accessibility.json) |
|
||||
|
||||
Run `node selected-job.cjs`, `node interactions.cjs`, `node recovery-verify.cjs`, `node verify.cjs`, `node matrix.cjs` and `node accessibility.cjs` from this directory while serving the site. They refresh their own JSON or captures.
|
||||
|
||||
## Decision and preservation
|
||||
|
||||
The owner may choose one direction or components from several and must separately approve the implementation strategy. Incremental migration can preserve the React/MUI feature owners and existing backend contracts. A new shell with retained features requires additional navigation and focus regression work. A full frontend replacement also needs a route-by-route parity plan before cutover.
|
||||
|
||||
For the selected design, reconcile all 34 application routes and 57 preservation groups. Carry forward roles and ownership, RD21 revision checks, canonical Career Profile data, document overrides and frozen exports, dashboard layout/CAS, last-admin protection and recovery behaviour. Native-language, physical-device, assistive-technology and owner visual review remain open. Full European localisation still covers all 24 official EU languages and the wider approved scope.
|
||||
|
||||
[Public product research](RESEARCH.md) · [A3 assessment](../A3_ASSESSMENT.md)
|
||||
@@ -0,0 +1,7 @@
|
||||
# Discovery recovery
|
||||
|
||||
The Discovery state selector offers ready, loading, empty and error in English and Bokmål across all five concepts. Retry simulates a 700 ms wait and keeps the search and country. Cancel returns to the current results. When a search yields no matches, the user can edit it or clear all filters.
|
||||
|
||||
The status heading receives focus when a user changes the state. Tab reaches the retry, secondary search or cancel action. Enter activates the focused action. A polite status region announces the update. The search remains keyboard accessible after recovery.
|
||||
|
||||
Ten desktop and phone journeys passed with the packaged source. The [receipts](recovery-validation.json) cover programmatic focus, recovery actions and overflow. [Compare the 30 state captures](compare.html) using the screenshot selector. Real screen readers, tablet recovery interactions, failure handling on other routes and provider behaviour have separate qualification requirements.
|
||||
@@ -0,0 +1,15 @@
|
||||
# Public product pattern research
|
||||
|
||||
2026-11-18. Public official marketing/help documentation review, not authenticated hands-on testing. Pattern observations below are supported by the cited public documentation; design recommendations are our inference. No brand assets, templates, source code or private user data copied.
|
||||
|
||||
- [FlowCV](https://flowcv.com/): live resume preview with content and appearance steps suggests separating document content from styling while retaining immediate feedback. Adaptation: C document canvas and live summary preview.
|
||||
- [Linear projects](https://linear.app/docs/projects): clear grouped outcomes and project context suggest a compact, focused workspace. Adaptation: A flat daily task/activity layout. This does not claim Linear's authenticated interface was tested.
|
||||
- [Notion views, filters and sorts](https://www.notion.com/help/views-filters-and-sorts): multiple views over shared records suggest list/board alternatives without duplicated data ownership. Adaptation: applications list/board; separate interface language from content filters.
|
||||
- [Teal job tracking](https://help.tealhq.com/en/articles/14435727-how-to-track-your-job-applications): spreadsheet-style tracking suggests practical status scanning rather than decorative cards. Adaptation: A tracking emphasis.
|
||||
- [Teal resume building](https://help.tealhq.com/en/articles/14435724-how-to-build-your-resume-in-teal): document preparation connected to job tracking informs contextual application actions.
|
||||
- [Huntr application hub and packets](https://help.huntr.co/en/articles/14367332-application-hub-and-packets): opportunity-associated document packets suggest keeping correspondence, CV, letter and follow-up connected. Adaptation: E journey and application detail context.
|
||||
- [Huntr dashboard](https://help.huntr.co/en/articles/10393367-your-huntr-dashboard): dashboard as a focused entry point informs B guided next actions.
|
||||
|
||||
Design plan: keep synthetic tasks comparable while varying information hierarchy, navigation placement, density, tone and document orientation. A uses cool blue compact lists; B green friendly guidance; C purple document library/sidebar; D navy/teal editorial brief; E plum task path and bottom navigation. No external font or image requests.
|
||||
|
||||
Critique: A has the strongest scanning density; B risks excess vertical space; C requires explicit mobile edit/preview navigation; D risks decorative hero dominance; E risks hiding expert tools behind a guided sequence. Secondary screen layouts remain substantially shared and require deeper review before describing the concepts as fully independent systems. This first build is a comparison artifact, not selection or acceptance.
|
||||
@@ -0,0 +1,74 @@
|
||||
const { strict: assert } = require("node:assert");
|
||||
const fs = require("node:fs");
|
||||
const path = require("node:path");
|
||||
const modules = {
|
||||
paths: [path.resolve(__dirname, "../../../../job-tracker-ui")],
|
||||
};
|
||||
const { chromium } = require(require.resolve("playwright", modules));
|
||||
const axePath = require.resolve("axe-core/axe.min.js", modules);
|
||||
const base = process.env.JOBJAKT_GALLERY_URL || "http://127.0.0.1:4327";
|
||||
|
||||
async function scan() {
|
||||
const browser = await chromium.launch();
|
||||
const results = [];
|
||||
try {
|
||||
const page = await browser.newPage();
|
||||
const errors = [];
|
||||
page.on("pageerror", (error) => errors.push(error.message));
|
||||
for (const concept of "ABCDE") {
|
||||
for (const width of [1440, 390]) {
|
||||
const lang = width === 390 ? "nb" : "en";
|
||||
const theme = width === 390 ? "dark" : "light";
|
||||
await page.setViewportSize({ width, height: 900 });
|
||||
for (const screen of ["home", "discover", "detail", "cv"]) {
|
||||
await page.goto(
|
||||
base + "/?" + new URLSearchParams({ concept, screen, lang, theme }),
|
||||
);
|
||||
await page.addScriptTag({ path: axePath });
|
||||
const violations = await page.evaluate(async () => {
|
||||
const result = await axe.run(document, {
|
||||
runOnly: {
|
||||
type: "tag",
|
||||
values: ["wcag2a", "wcag2aa", "wcag21a", "wcag21aa"],
|
||||
},
|
||||
});
|
||||
return result.violations.map((v) => ({
|
||||
rule: v.id,
|
||||
impact: v.impact,
|
||||
nodes: v.nodes.map((n) => ({
|
||||
target: n.target,
|
||||
reason: n.failureSummary,
|
||||
})),
|
||||
}));
|
||||
});
|
||||
results.push({ concept, width, screen, lang, theme, violations });
|
||||
}
|
||||
}
|
||||
}
|
||||
fs.writeFileSync(
|
||||
path.join(__dirname, "accessibility.json"),
|
||||
JSON.stringify({ results, errors }, null, 2) + "\n",
|
||||
);
|
||||
const failed = results.filter((x) => x.violations.length);
|
||||
console.log(
|
||||
results.length +
|
||||
" scans, " +
|
||||
failed.length +
|
||||
" states with findings, " +
|
||||
errors.length +
|
||||
" browser errors",
|
||||
);
|
||||
assert.equal(errors.length, 0);
|
||||
assert.equal(
|
||||
failed.length,
|
||||
0,
|
||||
"See accessibility.json for unresolved findings.",
|
||||
);
|
||||
} finally {
|
||||
await browser.close();
|
||||
}
|
||||
}
|
||||
scan().catch((error) => {
|
||||
console.error(error);
|
||||
process.exitCode = 1;
|
||||
});
|
||||
@@ -0,0 +1,325 @@
|
||||
{
|
||||
"results": [
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 1440,
|
||||
"screen": "home",
|
||||
"lang": "en",
|
||||
"theme": "light",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 1440,
|
||||
"screen": "discover",
|
||||
"lang": "en",
|
||||
"theme": "light",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 1440,
|
||||
"screen": "detail",
|
||||
"lang": "en",
|
||||
"theme": "light",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 1440,
|
||||
"screen": "cv",
|
||||
"lang": "en",
|
||||
"theme": "light",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 390,
|
||||
"screen": "home",
|
||||
"lang": "nb",
|
||||
"theme": "dark",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 390,
|
||||
"screen": "discover",
|
||||
"lang": "nb",
|
||||
"theme": "dark",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 390,
|
||||
"screen": "detail",
|
||||
"lang": "nb",
|
||||
"theme": "dark",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 390,
|
||||
"screen": "cv",
|
||||
"lang": "nb",
|
||||
"theme": "dark",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 1440,
|
||||
"screen": "home",
|
||||
"lang": "en",
|
||||
"theme": "light",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 1440,
|
||||
"screen": "discover",
|
||||
"lang": "en",
|
||||
"theme": "light",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 1440,
|
||||
"screen": "detail",
|
||||
"lang": "en",
|
||||
"theme": "light",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 1440,
|
||||
"screen": "cv",
|
||||
"lang": "en",
|
||||
"theme": "light",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 390,
|
||||
"screen": "home",
|
||||
"lang": "nb",
|
||||
"theme": "dark",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 390,
|
||||
"screen": "discover",
|
||||
"lang": "nb",
|
||||
"theme": "dark",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 390,
|
||||
"screen": "detail",
|
||||
"lang": "nb",
|
||||
"theme": "dark",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 390,
|
||||
"screen": "cv",
|
||||
"lang": "nb",
|
||||
"theme": "dark",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 1440,
|
||||
"screen": "home",
|
||||
"lang": "en",
|
||||
"theme": "light",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 1440,
|
||||
"screen": "discover",
|
||||
"lang": "en",
|
||||
"theme": "light",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 1440,
|
||||
"screen": "detail",
|
||||
"lang": "en",
|
||||
"theme": "light",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 1440,
|
||||
"screen": "cv",
|
||||
"lang": "en",
|
||||
"theme": "light",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 390,
|
||||
"screen": "home",
|
||||
"lang": "nb",
|
||||
"theme": "dark",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 390,
|
||||
"screen": "discover",
|
||||
"lang": "nb",
|
||||
"theme": "dark",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 390,
|
||||
"screen": "detail",
|
||||
"lang": "nb",
|
||||
"theme": "dark",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 390,
|
||||
"screen": "cv",
|
||||
"lang": "nb",
|
||||
"theme": "dark",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 1440,
|
||||
"screen": "home",
|
||||
"lang": "en",
|
||||
"theme": "light",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 1440,
|
||||
"screen": "discover",
|
||||
"lang": "en",
|
||||
"theme": "light",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 1440,
|
||||
"screen": "detail",
|
||||
"lang": "en",
|
||||
"theme": "light",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 1440,
|
||||
"screen": "cv",
|
||||
"lang": "en",
|
||||
"theme": "light",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 390,
|
||||
"screen": "home",
|
||||
"lang": "nb",
|
||||
"theme": "dark",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 390,
|
||||
"screen": "discover",
|
||||
"lang": "nb",
|
||||
"theme": "dark",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 390,
|
||||
"screen": "detail",
|
||||
"lang": "nb",
|
||||
"theme": "dark",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 390,
|
||||
"screen": "cv",
|
||||
"lang": "nb",
|
||||
"theme": "dark",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 1440,
|
||||
"screen": "home",
|
||||
"lang": "en",
|
||||
"theme": "light",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 1440,
|
||||
"screen": "discover",
|
||||
"lang": "en",
|
||||
"theme": "light",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 1440,
|
||||
"screen": "detail",
|
||||
"lang": "en",
|
||||
"theme": "light",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 1440,
|
||||
"screen": "cv",
|
||||
"lang": "en",
|
||||
"theme": "light",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 390,
|
||||
"screen": "home",
|
||||
"lang": "nb",
|
||||
"theme": "dark",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 390,
|
||||
"screen": "discover",
|
||||
"lang": "nb",
|
||||
"theme": "dark",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 390,
|
||||
"screen": "detail",
|
||||
"lang": "nb",
|
||||
"theme": "dark",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 390,
|
||||
"screen": "cv",
|
||||
"lang": "nb",
|
||||
"theme": "dark",
|
||||
"violations": []
|
||||
}
|
||||
],
|
||||
"errors": []
|
||||
}
|
||||
@@ -0,0 +1,812 @@
|
||||
const $ = (s) => document.querySelector(s),
|
||||
q = new URLSearchParams(location.search);
|
||||
const screens = [
|
||||
"home",
|
||||
"discover",
|
||||
"applications",
|
||||
"detail",
|
||||
"profile",
|
||||
"cv",
|
||||
"letter",
|
||||
"calendar",
|
||||
"mail",
|
||||
"settings",
|
||||
"admin",
|
||||
"onboarding",
|
||||
];
|
||||
const selected = (key, allowed, fallback) =>
|
||||
allowed.includes(q.get(key)) ? q.get(key) : fallback;
|
||||
const state = {
|
||||
concept: selected("concept", "ABCDE".split(""), ""),
|
||||
screen: selected("screen", screens, "home"),
|
||||
lang: selected("lang", ["en", "nb"], "en"),
|
||||
theme: selected("theme", ["light", "dark"], "light"),
|
||||
phone: q.get("mobile") === "1",
|
||||
calendarView: "agenda",
|
||||
trackerView: "list",
|
||||
query: "",
|
||||
summary:
|
||||
"I help people feel welcome, supported and confident. Six years of experience coordinating services, supporting colleagues and improving everyday care.",
|
||||
title: "Community care coordinator",
|
||||
name: "Amira Olsen",
|
||||
letter:
|
||||
"Dear hiring team,\n\nI am excited to apply for the Community care coordinator position. My experience supporting patients and coordinating multidisciplinary teams would help me contribute to your local service.\n\nI would welcome the opportunity to meet your team.\n\nKind regards,\nAmira Olsen",
|
||||
};
|
||||
state.profileSummary = state.summary;
|
||||
state.country = "";
|
||||
state.discoveryState = "ready";
|
||||
const concepts = {
|
||||
A: {
|
||||
name: "Clear Desk",
|
||||
tag: "Minimal productivity workspace",
|
||||
detail:
|
||||
"A compact top bar and one working surface. Lists, fast actions and a quiet daily brief.",
|
||||
trade: "Fast for experienced users; guidance is secondary.",
|
||||
},
|
||||
B: {
|
||||
name: "Next Chapter",
|
||||
tag: "Friendly career workspace",
|
||||
detail:
|
||||
"A guided home, human language and step-by-step preparation. A welcoming companion for a new beginning.",
|
||||
trade: "Clear next steps; takes more space than a dense tracker.",
|
||||
},
|
||||
C: {
|
||||
name: "Career Atelier",
|
||||
tag: "Career and document studio",
|
||||
detail:
|
||||
"Your professional story is the centre. A document canvas, collection navigation and contextual editing tools.",
|
||||
trade:
|
||||
"Excellent for preparing documents; discovery is one room in the studio.",
|
||||
},
|
||||
D: {
|
||||
name: "Northstar",
|
||||
tag: "Premium career platform",
|
||||
detail:
|
||||
"A spacious, editorial opportunity brief with a confident top-level navigation and focused application dossiers.",
|
||||
trade: "Strong hierarchy and breathing room; fewer items visible at once.",
|
||||
},
|
||||
E: {
|
||||
name: "The Next Move",
|
||||
tag: "Journey-first career workspace",
|
||||
detail:
|
||||
"Organise work around the next meaningful action. A task path connects opportunities, documents, conversations and dates.",
|
||||
trade: "Reduces disconnected pages; requires learning the journey model.",
|
||||
},
|
||||
};
|
||||
const en = {
|
||||
home: "Home",
|
||||
discover: "Explore jobs",
|
||||
applications: "Applications",
|
||||
detail: "Application workspace",
|
||||
profile: "Career Profile",
|
||||
cv: "CV studio",
|
||||
letter: "Cover letter",
|
||||
calendar: "Calendar",
|
||||
mail: "Correspondence",
|
||||
settings: "Settings",
|
||||
admin: "Administration",
|
||||
onboarding: "Get started",
|
||||
greeting: "Good morning, Amira.",
|
||||
intro: "Make room for your next opportunity.",
|
||||
today: "Your next steps",
|
||||
week: "Coming up",
|
||||
explore: "Find an opportunity",
|
||||
prepare: "Prepare your CV",
|
||||
view: "View details",
|
||||
save: "Save to applications",
|
||||
saved: "Saved to applications",
|
||||
apply: "Mark as applied",
|
||||
applied: "Applied",
|
||||
review: "Review application",
|
||||
edit: "Edit",
|
||||
export: "Export preview",
|
||||
preview: "Preview",
|
||||
content: "Content",
|
||||
design: "Design",
|
||||
history: "History",
|
||||
search: "Role, skill or employer",
|
||||
country: "Search country",
|
||||
language: "Job-ad language",
|
||||
all: "All occupations",
|
||||
filters: "More filters",
|
||||
results: "opportunities",
|
||||
summary: "Professional summary",
|
||||
experience: "Experience",
|
||||
skills: "Skills",
|
||||
contact: "Contact details",
|
||||
name: "Full name",
|
||||
title: "Professional title",
|
||||
saveChanges: "Save changes",
|
||||
saveDraft: "Save draft",
|
||||
send: "Review before sending",
|
||||
agenda: "Agenda",
|
||||
month: "Month",
|
||||
follow: "Schedule follow-up",
|
||||
reply: "Draft a reply",
|
||||
complete: "Complete",
|
||||
continue: "Continue",
|
||||
skip: "Do this later",
|
||||
uiLanguage: "Interface language",
|
||||
docLanguage: "Document language",
|
||||
privacy: "Privacy & assistance",
|
||||
notifications: "Notifications",
|
||||
connections: "Connected accounts",
|
||||
security: "Security & sessions",
|
||||
data: "Your data",
|
||||
settingsIntro: "Your preferences, your pace.",
|
||||
adminIntro: "Service health and account management.",
|
||||
synthetic: "Interactive design study · synthetic data · no live service",
|
||||
back: "All five concepts",
|
||||
theme: "Theme",
|
||||
layout: "Preview",
|
||||
desktop: "Desktop",
|
||||
mobile: "Mobile",
|
||||
help: "Help & advanced tools",
|
||||
board: "Board",
|
||||
list: "List",
|
||||
savedCount: "saved",
|
||||
interviews: "interviews",
|
||||
drafts: "documents ready",
|
||||
new: "New",
|
||||
status: "Status",
|
||||
source: "Source",
|
||||
deadline: "Application deadline",
|
||||
documents: "Documents",
|
||||
notes: "Notes",
|
||||
timeline: "Timeline",
|
||||
details: "Job details",
|
||||
company: "Employer",
|
||||
location: "Location",
|
||||
type: "Working arrangement",
|
||||
required: "What you will bring",
|
||||
benefits: "What the role offers",
|
||||
progress: "Your progress",
|
||||
sourceNote:
|
||||
"Synthetic vacancy for concept review. Provider availability is not implied.",
|
||||
mapNote: "Illustrative location view, not a geographic boundary map.",
|
||||
exportNote:
|
||||
"Preview opened. This prototype does not generate a qualified PDF.",
|
||||
feedback: "Saved in this prototype only.",
|
||||
reviewNote:
|
||||
"Review your message and recipient. No email will be sent from this prototype.",
|
||||
};
|
||||
const nb = {
|
||||
...en,
|
||||
home: "Hjem",
|
||||
discover: "Finn jobber",
|
||||
applications: "Søknader",
|
||||
detail: "Søknadsområde",
|
||||
profile: "Karriereprofil",
|
||||
cv: "CV-studio",
|
||||
letter: "Søknadsbrev",
|
||||
calendar: "Kalender",
|
||||
mail: "Korrespondanse",
|
||||
settings: "Innstillinger",
|
||||
admin: "Administrasjon",
|
||||
onboarding: "Kom i gang",
|
||||
greeting: "God morgen, Amira.",
|
||||
intro: "Gjør plass til din neste mulighet.",
|
||||
today: "Dine neste steg",
|
||||
week: "Dette skjer snart",
|
||||
explore: "Finn en mulighet",
|
||||
prepare: "Forbered CV-en",
|
||||
view: "Se detaljer",
|
||||
save: "Lagre i søknader",
|
||||
saved: "Lagret i søknader",
|
||||
apply: "Marker som søkt",
|
||||
applied: "Søkt",
|
||||
review: "Gjennomgå søknaden",
|
||||
edit: "Rediger",
|
||||
export: "Eksporter forhåndsvisning",
|
||||
preview: "Forhåndsvisning",
|
||||
content: "Innhold",
|
||||
design: "Utforming",
|
||||
history: "Historikk",
|
||||
search: "Stilling, ferdighet eller arbeidsgiver",
|
||||
country: "Søkeland",
|
||||
language: "Språk i annonsen",
|
||||
all: "Alle yrker",
|
||||
filters: "Flere filtre",
|
||||
results: "muligheter",
|
||||
summary: "Profesjonelt sammendrag",
|
||||
experience: "Erfaring",
|
||||
skills: "Ferdigheter",
|
||||
contact: "Kontaktinformasjon",
|
||||
name: "Fullt navn",
|
||||
title: "Yrkestittel",
|
||||
saveChanges: "Lagre endringer",
|
||||
saveDraft: "Lagre utkast",
|
||||
send: "Gjennomgå før sending",
|
||||
agenda: "Agenda",
|
||||
month: "Måned",
|
||||
follow: "Planlegg oppfølging",
|
||||
reply: "Skriv et svar",
|
||||
complete: "Fullfør",
|
||||
continue: "Fortsett",
|
||||
skip: "Gjør dette senere",
|
||||
uiLanguage: "Grensesnittspråk",
|
||||
docLanguage: "Dokumentspråk",
|
||||
privacy: "Personvern og assistanse",
|
||||
notifications: "Varsler",
|
||||
connections: "Tilkoblede kontoer",
|
||||
security: "Sikkerhet og økter",
|
||||
data: "Dine data",
|
||||
settingsIntro: "Dine innstillinger, ditt tempo.",
|
||||
adminIntro: "Tjenestestatus og kontoadministrasjon.",
|
||||
synthetic:
|
||||
"Interaktiv designstudie · syntetiske data · ingen aktive tjenester",
|
||||
back: "Alle fem konsepter",
|
||||
theme: "Tema",
|
||||
layout: "Visning",
|
||||
desktop: "Datamaskin",
|
||||
mobile: "Mobil",
|
||||
help: "Hjelp og avanserte verktøy",
|
||||
board: "Tavle",
|
||||
list: "Liste",
|
||||
savedCount: "lagret",
|
||||
interviews: "intervjuer",
|
||||
drafts: "dokumenter klare",
|
||||
new: "Ny",
|
||||
status: "Status",
|
||||
source: "Kilde",
|
||||
deadline: "Søknadsfrist",
|
||||
documents: "Dokumenter",
|
||||
notes: "Notater",
|
||||
timeline: "Tidslinje",
|
||||
details: "Stillingsdetaljer",
|
||||
company: "Arbeidsgiver",
|
||||
location: "Sted",
|
||||
type: "Arbeidsform",
|
||||
required: "Dette tar du med deg",
|
||||
benefits: "Dette tilbyr rollen",
|
||||
progress: "Din fremgang",
|
||||
sourceNote:
|
||||
"Syntetisk stilling for konseptvurdering. Ingen påstand om leverandørtilgang.",
|
||||
mapNote: "Illustrert stedsvisning, ikke et geografisk grensekart.",
|
||||
exportNote:
|
||||
"Forhåndsvisning åpnet. Prototypen lager ikke en kvalifisert PDF.",
|
||||
feedback: "Kun lagret i denne prototypen.",
|
||||
reviewNote:
|
||||
"Gjennomgå melding og mottaker. Ingen e-post sendes fra prototypen.",
|
||||
};
|
||||
const t = (k) => (state.lang === "nb" ? nb : en)[k] || k;
|
||||
const esc = (s) =>
|
||||
String(s).replace(
|
||||
/[&<>"']/g,
|
||||
(c) =>
|
||||
({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[
|
||||
c
|
||||
],
|
||||
);
|
||||
const jobs = [
|
||||
[
|
||||
"Community care coordinator",
|
||||
"Fjord Community Health",
|
||||
"Bergen, Norway",
|
||||
"Healthcare",
|
||||
"⌘",
|
||||
],
|
||||
[
|
||||
"Primary school teacher",
|
||||
"Oakfield Learning Centre",
|
||||
"Cork, Ireland",
|
||||
"Education",
|
||||
"◈",
|
||||
],
|
||||
[
|
||||
"Front-of-house supervisor",
|
||||
"Harbour House",
|
||||
"Copenhagen, Denmark",
|
||||
"Hospitality",
|
||||
"◒",
|
||||
],
|
||||
[
|
||||
"Electrician",
|
||||
"North Coast Energy",
|
||||
"Trondheim, Norway",
|
||||
"Skilled trades",
|
||||
"ϟ",
|
||||
],
|
||||
[
|
||||
"Service designer",
|
||||
"Civic Services Lab",
|
||||
"Helsinki, Finland",
|
||||
"Public services",
|
||||
"◎",
|
||||
],
|
||||
[
|
||||
"Retail team leader",
|
||||
"Neighbourhood Market",
|
||||
"Utrecht, Netherlands",
|
||||
"Retail",
|
||||
"◇",
|
||||
],
|
||||
];
|
||||
// Each synthetic opportunity keeps its own tracker state for this review session.
|
||||
const ids = [
|
||||
"fjord-care",
|
||||
"oakfield-teacher",
|
||||
"harbour-supervisor",
|
||||
"north-coast-electrician",
|
||||
"civic-designer",
|
||||
"market-lead",
|
||||
];
|
||||
const records = jobs.map((job, i) => ({
|
||||
id: ids[i],
|
||||
job,
|
||||
stage: ["", "applied", "interview", "", "saved", ""][i],
|
||||
followup: false,
|
||||
notes: "",
|
||||
cvSummary: state.summary,
|
||||
letter: state.letter.replace("Community care coordinator", job[0]),
|
||||
}));
|
||||
function trackedCount() {
|
||||
return records.filter((r) => r.stage === "saved").length;
|
||||
}
|
||||
let current = records.find((r) => r.id === q.get("job")) || records[0];
|
||||
const detailText = [
|
||||
[
|
||||
"Coordinate community care, support families and work with local healthcare teams.",
|
||||
"Koordiner omsorgstjenester, støtt familier og samarbeid med lokale helseteam.",
|
||||
],
|
||||
[
|
||||
"Plan lessons and support pupils in a small primary school team.",
|
||||
"Planlegg undervisning og følg opp elever i et lite barneskoleteam.",
|
||||
],
|
||||
[
|
||||
"Lead the reception team and coordinate a welcoming guest experience.",
|
||||
"Led resepsjonsteamet og sørg for at gjestene blir godt tatt imot.",
|
||||
],
|
||||
[
|
||||
"Maintain electrical installations and coordinate repairs with the field team.",
|
||||
"Vedlikehold elektriske anlegg og koordiner reparasjoner med feltteamet.",
|
||||
],
|
||||
[
|
||||
"Design accessible public services with residents and municipal teams.",
|
||||
"Utform tilgjengelige offentlige tjenester sammen med innbyggere og kommunale team.",
|
||||
],
|
||||
[
|
||||
"Coordinate shop-floor shifts and coach colleagues in customer service.",
|
||||
"Koordiner vakter i butikken og veiled kolleger i kundeservice.",
|
||||
],
|
||||
];
|
||||
function jobLink(job, label) {
|
||||
const id = ids[jobs.indexOf(job)];
|
||||
return `<a href="?concept=${state.concept}&screen=detail&lang=${state.lang}&theme=${state.theme}&job=${id}${state.phone ? "&mobile=1" : ""}" data-screen="detail" data-job="${id}">${label}</a>`;
|
||||
}
|
||||
function stageLabel(stage) {
|
||||
return stage === "interview"
|
||||
? state.lang === "nb"
|
||||
? "Intervju"
|
||||
: "Interview"
|
||||
: stage === "saved"
|
||||
? t("savedCount")
|
||||
: t("applied");
|
||||
}
|
||||
const link = (screen, label, cls = "", id = current.id) =>
|
||||
`<a class="${cls}" href="?concept=${state.concept}&screen=${screen}&lang=${state.lang}&theme=${state.theme}&job=${id}${state.phone ? "&mobile=1" : ""}" data-screen="${screen}" data-job="${id}">${label || t(screen)}</a>`;
|
||||
const btn = (label, action, primary = false) =>
|
||||
`<button class="${primary ? "primary" : ""}" data-action="${action}">${label}</button>`;
|
||||
function toast(message) {
|
||||
$(".toast")?.remove();
|
||||
const el = document.createElement("div");
|
||||
el.className = "toast";
|
||||
el.setAttribute("role", "status");
|
||||
el.textContent = message;
|
||||
document.body.append(el);
|
||||
setTimeout(() => el.remove(), 4500);
|
||||
}
|
||||
function field(label, value, id, area = false) {
|
||||
return `<label class="field">${label}${area ? `<textarea id="${id}">${esc(value)}</textarea>` : `<input id="${id}" value="${esc(value)}">`}</label>`;
|
||||
}
|
||||
function heading(title, sub = "", actions = "") {
|
||||
return `<div class="heading"><div><h1>${title}</h1>${sub ? `<p class="muted">${sub}</p>` : ""}</div><div class="actions">${actions}</div></div>`;
|
||||
}
|
||||
function jobRows(items = jobs) {
|
||||
return `<div class="list">${items.map((j) => `<div class="row"><div class="logo">${j[4]}</div><div class="grow"><h3>${jobLink(j, j[0])}</h3><p class="muted">${j[1]} · ${j[2]}</p></div><span class="badge">${records[jobs.indexOf(j)].stage ? stageLabel(records[jobs.indexOf(j)].stage) : j[3]}</span>${jobLink(j, t("view"))}</div>`).join("")}</div>`;
|
||||
}
|
||||
function agenda() {
|
||||
return `<div class="agenda">${records
|
||||
.filter((r) => r.followup)
|
||||
.map(
|
||||
(r) =>
|
||||
`<div class="row"><div class="date">27<br>Nov</div><div><h3>${jobLink(r.job, (state.lang === "nb" ? "Følg opp " : "Follow up with ") + r.job[1])}</h3><p>${state.lang === "nb" ? "Lagt til i denne prototypen" : "Added in this prototype"}</p></div></div>`,
|
||||
)
|
||||
.join(
|
||||
"",
|
||||
)}<div class="row"><div class="date">20<br>Nov</div><div><h3>${state.lang === "nb" ? "Møt teamet i Fjord" : "Meet the Fjord team"}</h3><p class="muted">10:00–10:45 · Europe/Oslo</p>${jobLink(jobs[0], t("review"))}</div></div><div class="row"><div class="date">22<br>Nov</div><div><h3>${state.lang === "nb" ? "Søknadsfrist: Lærer" : "Deadline: Primary school teacher"}</h3><p class="muted">Oakfield Learning Centre</p>${jobLink(jobs[1], t("view"))}</div></div><div class="row"><div class="date">25<br>Nov</div><div><h3>${state.lang === "nb" ? "Følg opp Harbour House" : "Follow up with Harbour House"}</h3><p class="muted">${state.lang === "nb" ? "Påminnelse, ingen automatisk melding" : "Reminder only, no automatic message"}</p></div></div></div>`;
|
||||
}
|
||||
function tasks() {
|
||||
return `<div class="task"><input id="task1" type="checkbox"><label for="task1">${state.lang === "nb" ? "Velg erfaring til CV-en for Fjord" : "Choose experience for your Fjord CV"}<br>${link("cv", t("prepare"))}</label></div><div class="task"><input id="task2" type="checkbox"><label for="task2">${state.lang === "nb" ? "Svar på intervjuinvitasjonen" : "Reply to your interview invitation"}<br>${link("mail", t("reply"))}</label></div><div class="task"><input id="task3" type="checkbox"><label for="task3">${state.lang === "nb" ? "Se gjennom tre nye muligheter" : "Review three new opportunities"}<br>${link("discover", t("explore"))}</label></div>`;
|
||||
}
|
||||
function home() {
|
||||
let main = `${heading(t("greeting"), t("intro"), link("discover", t("explore")))}<div class="metric-strip"><div class="metric"><strong>${trackedCount()}</strong>${t("savedCount")}</div><div class="metric"><strong>2</strong>${t("interviews")}</div><div class="metric"><strong>3</strong>${t("drafts")}</div></div><div class="split"><section><div class="section-title"><h2>${t("today")}</h2>${link("applications", t("applications"))}</div>${tasks()}<div class="section" style="margin-top:35px"><h2>${state.lang === "nb" ? "Nylig aktivitet" : "Recent activity"}</h2>${jobRows(jobs.slice(0, 3))}</div></section><aside><h2>${t("week")}</h2>${agenda()}</aside></div>`;
|
||||
if (state.concept === "B")
|
||||
main = `<div class="welcome">${heading(state.lang === "nb" ? "Et nytt kapittel begynner her." : "Your next chapter starts here.", state.lang === "nb" ? "Ta ett steg i dag. Vi holder orden på resten." : "Take one step today. We’ll help keep everything together.")}<div class="actions">${btn(t("prepare"), "cv", true)}${link("onboarding", state.lang === "nb" ? "Finn din vei" : "Find your starting point")}</div></div><div class="split"><section><h2>${t("today")}</h2>${tasks()}<div class="notice"><h3>${state.lang === "nb" ? "Du trenger ikke gjøre alt på én gang." : "You don’t need to do everything at once."}</h3><p>${state.lang === "nb" ? "Profilen din er et godt sted å begynne. Du kan alltid komme tilbake." : "Your profile is a good place to begin. You can always come back."}</p>${link("profile", t("profile"))}</div></section><aside><h2>${t("week")}</h2>${agenda()}</aside></div>`;
|
||||
if (state.concept === "C")
|
||||
main = `${heading(state.lang === "nb" ? "Arbeidet bak din neste jobb." : "The work behind your next role.", state.lang === "nb" ? "Din erfaring. Dine dokumenter. En tydelig historie." : "Your experience. Your documents. One coherent story.", btn(t("prepare"), "cv", true))}<div class="split"><div><div class="grid3">${["cv", "letter", "profile"].map((s, i) => `<a class="tile" data-screen="${s}" href="#"><div style="height:150px;background:var(--soft);padding:20px;margin-bottom:20px"><div style="background:var(--paper);height:100%;padding:12px"><strong>Amira Olsen</strong><hr><small>${["Community care", "Fjord Health", "6 years experience"][i]}</small><hr><hr></div></div><h3>${t(s)}</h3><small>${state.lang === "nb" ? "Sist redigert i dag" : "Edited today"}</small></a>`).join("")}</div><h2 style="margin-top:35px">${t("applications")}</h2>${jobRows(jobs.slice(0, 2))}</div><aside><h2>${t("today")}</h2>${tasks()}${agenda()}</aside></div>`;
|
||||
if (state.concept === "D")
|
||||
main = `<div class="heading"><div><h1 class="hero-title">${state.lang === "nb" ? "Et arbeidsliv som passer deg." : "A working life that fits you."}</h1><p class="muted">${state.lang === "nb" ? "Ditt personlige overblikk, onsdag 18. november." : "Your personal brief, Wednesday 18 November."}</p></div>${link("profile", "Amira Olsen")}</div><div class="split"><section class="feature"><p>${state.lang === "nb" ? "Neste samtale" : "Your next conversation"}</p><h2 style="font-size:34px">Fjord Community Health</h2><p>${state.lang === "nb" ? "Et lokalt team. En meningsfull rolle. Forbered deg til fredag." : "A local team. A meaningful role. Get ready for Friday."}</p>${btn(t("review"), "detail")}</section><section><h2>${t("today")}</h2>${tasks()}</section></div><section style="margin-top:40px"><h2>${state.lang === "nb" ? "Muligheter verdt å utforske" : "Opportunities worth exploring"}</h2>${jobRows(jobs.slice(0, 3))}</section>`;
|
||||
if (state.concept === "E")
|
||||
main = `${heading(state.lang === "nb" ? "Hva er ditt neste steg?" : "What’s your next move?", state.lang === "nb" ? "Samle alt rundt muligheten du jobber med." : "Keep everything together around the opportunity you’re working on.")}<div class="task-path"><section class="tile"><span class="badge">${state.lang === "nb" ? "Pågående" : "In progress"}</span><h2 style="margin-top:20px">Fjord Community Health</h2><p>Community care coordinator</p><div class="steps"><span>✓ ${t("savedCount")}</span><span>✓ CV</span><span>○ ${t("interviews")}</span></div>${btn(state.lang === "nb" ? "Fortsett forberedelsen" : "Continue preparing", "detail", true)}<hr style="border:0;border-top:1px solid var(--line);margin:25px 0">${link("mail", state.lang === "nb" ? "Ny invitasjon fra Elise" : "New invitation from Elise")}</section><section><h2>${state.lang === "nb" ? "Velg en retning" : "Choose a direction"}</h2><div class="list">${["discover", "profile", "calendar"].map((s) => `<div class="row"><div class="grow"><h3>${link(s, t(s))}</h3><p class="muted">${s === "discover" ? (state.lang === "nb" ? "Finn noe du vil gå videre med" : "Find something worth pursuing") : s === "profile" ? (state.lang === "nb" ? "Samle det du kan" : "Bring your experience together") : state.lang === "nb" ? "Gjør plass til det som kommer" : "Make space for what comes next"}</p></div></div>`).join("")}</div></section></div>`;
|
||||
return main;
|
||||
}
|
||||
function discoveryBase() {
|
||||
return `${heading(t("discover"), state.lang === "nb" ? "Finn arbeid som passer livet ditt." : "Find work that fits your life.")}<div class="filters"><input aria-label="${t("search")}" id="search" placeholder="${t("search")}" value="${esc(state.query)}"><select aria-label="${t("country")}" id="country">${["", "Norway", "Ireland", "Denmark", "Finland", "Netherlands"].map((v) => `<option value="${v}" ${state.country === v ? "selected" : ""}>${v || (state.lang === "nb" ? "Alle land" : "All countries")}</option>`).join("")}</select>${btn(t("filters"), "filters")}</div><div class="split"><section><p class="muted" id="resultCount">${filteredJobs().length} ${t("results")} · ${t("sourceNote")}</p><div id="discoveryLive" class="sr-only" role="status"></div><div id="jobResults">${discoveryMarkup()}</div></section><aside><div class="map"><svg viewBox="0 0 300 240" role="img" aria-label="Illustrative Nordic locations"><path d="M90 210L110 160 100 120 150 50 185 20 205 40 180 80 165 125 145 160 135 220Z" fill="var(--paper)" stroke="var(--line)" stroke-width="2"/><path d="M190 70L240 45 260 100 220 150 190 130Z" fill="var(--paper)" stroke="var(--line)"/><g fill="var(--accent)"><circle cx="116" cy="150" r="7"/><circle cx="145" cy="120" r="7"/><circle cx="135" cy="195" r="7"/><circle cx="225" cy="115" r="7"/></g><g fill="var(--ink)" font-size="12"><text x="45" y="153">Bergen</text><text x="151" y="118">Trondheim</text><text x="145" y="199">Copenhagen</text><text x="232" y="114">Helsinki</text></g></svg><p>${t("mapNote")}</p></div><div class="notice" style="margin-top:20px"><h3>${t("language")}</h3><label><input type="checkbox" checked> English</label><br><label><input type="checkbox" checked> Norsk bokmål</label><p style="margin:15px 0 0">${state.lang === "nb" ? "Grensesnittspråket endrer ikke hvilke annonser du ser." : "Your interface language does not change which adverts you see."}</p></div></aside></div>`;
|
||||
}
|
||||
function applications() {
|
||||
return `${heading(t("applications"), state.lang === "nb" ? "Fra første interesse til neste samtale." : "From first interest to your next conversation.", btn(t("list"), "list") + btn(t("board"), "board"))}${
|
||||
state.trackerView === "board"
|
||||
? `<div class="board">${["saved", "applied", "interview"]
|
||||
.map(
|
||||
(stage) =>
|
||||
`<section><h2>${stageLabel(stage)}</h2>${records
|
||||
.filter((r) => r.stage === stage)
|
||||
.map(
|
||||
({ job: j }) =>
|
||||
`<article><h3>${jobLink(j, j[0])}</h3><p>${j[1]}</p><small>${j[2]}</small><div style="margin-top:15px">${link("cv", t("prepare"), "", ids[jobs.indexOf(j)])}</div></article>`,
|
||||
)
|
||||
.join("")}</section>`,
|
||||
)
|
||||
.join("")}</div>`
|
||||
: jobRows(records.filter((r) => r.stage).map((r) => r.job))
|
||||
}`;
|
||||
}
|
||||
function detail() {
|
||||
return `${heading(current.job[0], current.job[1] + " · " + current.job[2], btn(current.stage ? t("saved") : t("save"), "save", !current.stage))}<div class="steps">${["detail", "cv", "letter", "mail", "calendar"].map((s) => link(s, t(s), s === "detail" ? "active" : "")).join("")}</div><div class="split"><section><div class="notice"><h2>${current.stage === "applied" || current.stage === "interview" ? stageLabel(current.stage) : state.lang === "nb" ? "Gjør søknaden klar" : "Make your application ready"}</h2><p>${state.lang === "nb" ? "Velg CV og brev. Gjennomgå alt før du sender via arbeidsgiveren." : "Choose your CV and letter. Review everything before applying through the employer."}</p><div class="actions">${btn(t("prepare"), "cv", true)}${btn(["applied", "interview"].includes(current.stage) ? t("follow") : t("apply"), ["applied", "interview"].includes(current.stage) ? "follow" : "apply")}</div></div><h2 style="margin-top:30px">${t("details")}</h2><p>${detailText[jobs.indexOf(current.job)][state.lang === "nb" ? 1 : 0]}</p><h3>${t("notes")}</h3>${field(state.lang === "nb" ? "Dine egne notater" : "Your private notes", current.notes, "notes", true)}${btn(t("saveChanges"), "saveNotes")}</section><aside><h2>${state.lang === "nb" ? "Alt på ett sted" : "Everything in one place"}</h2>${agenda()}<div class="row"><div><small>${t("deadline")}</small><h3>${current.id === "oakfield-teacher" ? 22 : 24} November 2026</h3></div></div><div class="row"><div><small>${t("source")}</small><p>${t("sourceNote")}</p></div></div>${link("mail", t("mail"))}</aside></div>`;
|
||||
}
|
||||
function profile() {
|
||||
return `${heading(t("profile"), state.lang === "nb" ? "Din erfaring er utgangspunktet. Dokumentene er dine valg." : "Your experience is the source. Your documents are your choices.", btn(t("prepare"), "cv", true))}<div class="split"><section>${field(t("name"), state.name, "name")}${field(t("title"), state.title, "title")}${field(t("summary"), state.profileSummary, "summary", true)}${btn(t("saveChanges"), "profileSave", true)}<h2 style="margin-top:35px">${t("experience")}</h2><div class="row"><div class="logo">⌘</div><div class="grow"><h3>Care services coordinator</h3><p>Westside Community Centre · 2020–2026</p><small>Patient support · Scheduling · Team coordination</small></div>${btn(t("edit"), "feedback")}</div><details style="margin-top:20px"><summary>${state.lang === "nb" ? "Utdanning, språk og mer" : "Education, languages and more"}</summary><p>BSc Health & Social Care · Norsk B2 · English C1</p><p>First aid · Volunteer mentor · Community gardening</p></details></section><aside><div class="notice"><h2>${t("progress")}</h2><progress value="4" max="6" style="width:100%"></progress><p>${state.lang === "nb" ? "4 av 6 viktige deler klare" : "4 of 6 key sections ready"}</p><p>${state.lang === "nb" ? "Du kan bruke profilen nå. Legg til mer når det passer." : "You can use your profile now. Add more when you’re ready."}</p></div><h3 style="margin-top:30px">${t("documents")}</h3>${link("cv", "Fjord Health CV", "", "fjord-care")}<hr>${link("letter", "Fjord Health cover letter", "", "fjord-care")}</aside></div>`;
|
||||
}
|
||||
function paper(letter = false) {
|
||||
return `<article class="document"><h2>${esc(state.name)}</h2><p>${esc(state.title)}</p><small>Bergen, Norway · amira@example.test</small><hr>${letter ? `<p style="white-space:pre-line" id="letterPreview">${esc(current.letter)}</p>` : `<h3>${t("summary")}</h3><p id="summaryPreview">${esc(current.cvSummary)}</p><h3>${t("experience")}</h3><strong>Care services coordinator</strong><p>Westside Community Centre<br>2020–2026</p><ul><li>Coordinated care schedules for a team of twelve.</li><li>Helped families navigate local support services.</li><li>Introduced a clearer weekly handover.</li></ul><h3>${state.lang === "nb" ? "Utdanning" : "Education"}</h3><p>BSc Health & Social Care<br>2016–2019</p><h3>${t("skills")}</h3><p>Patient support · Team coordination · Scheduling</p>`}</article>`;
|
||||
}
|
||||
function studio(letter = false) {
|
||||
const edit = `<section class="editor"><div class="editor-tabs">${btn(t("content"), "content")}${btn(t("design"), "design")}${btn(t("history"), "history")}</div><p class="muted">${state.lang === "nb" ? "Dette er en dokumentkopi. Karriereprofilen endres ikke." : "This is a document copy. Your Career Profile stays unchanged."}</p>${letter ? field(t("letter"), current.letter, "letter", true) : field(t("summary"), current.cvSummary, "summary", true)}<label class="field">${t("docLanguage")}<select><option>English</option><option>Norsk bokmål</option><option>Deutsch</option><option>Français</option><option>Ελληνικά</option><option>Български</option></select></label><details><summary>${state.lang === "nb" ? "Velg innhold fra profilen" : "Choose content from your profile"}</summary>${["contact", "experience", "skills"].map((k) => `<label class="task"><input type="checkbox" checked>${t(k)}</label>`).join("")}</details><div class="actions" style="margin-top:25px">${btn(t("saveDraft"), "feedback", true)}${btn(t("export"), "export")}</div></section>`;
|
||||
const doc = paper(letter);
|
||||
return `${heading(letter ? t("letter") : t("cv"), current.job[1] + " · " + (state.lang === "nb" ? "Utkast, kun prototype" : "Draft, prototype only"), link("detail", t("review")))}<div class="studio">${state.concept === "C" ? doc + edit : edit + doc}</div>`;
|
||||
}
|
||||
function calendar() {
|
||||
return `${heading(t("calendar"), state.lang === "nb" ? "Samtaler, frister og plass til forberedelse." : "Conversations, deadlines and time to prepare.", btn(t("agenda"), "agenda") + btn(t("month"), "month"))}${
|
||||
state.calendarView === "month"
|
||||
? `<h2>November 2026</h2><div class="calendar">${Array.from(
|
||||
{ length: 30 },
|
||||
(_, i) =>
|
||||
`<div class="day"><strong>${i + 1}</strong>${
|
||||
i === 26
|
||||
? records
|
||||
.filter((r) => r.followup)
|
||||
.map((r) => "<p>" + jobLink(r.job, r.job[1]) + "</p>")
|
||||
.join("")
|
||||
: i === 19
|
||||
? "<p>10:00 Fjord</p>"
|
||||
: i === 21
|
||||
? "<p>Oakfield deadline</p>"
|
||||
: i === 24
|
||||
? "<p>Harbour follow-up</p>"
|
||||
: ""
|
||||
}</div>`,
|
||||
).join("")}</div>`
|
||||
: `<div class="split"><section>${agenda()}</section><aside class="notice"><h2>${state.lang === "nb" ? "Tid til å forberede deg" : "Time to prepare"}</h2><p>${state.lang === "nb" ? "Sett av 30 minutter før intervjuet. Samle spørsmål og dokumenter i søknadsområdet." : "Set aside 30 minutes before your interview. Keep questions and documents in the application workspace."}</p>${btn(t("review"), "detail", true)}</aside></div>`
|
||||
}`;
|
||||
}
|
||||
function mail() {
|
||||
return `${heading(t("mail"), state.lang === "nb" ? "Samtaler knyttet til mulighetene dine." : "Conversations connected to your opportunities.")}<div class="mail-layout"><aside><div class="mail active"><h3>Elise · Fjord Health</h3><p>${state.lang === "nb" ? "Vi vil gjerne møte deg" : "We’d love to meet you"}</p><small>Today, 09:12</small></div><div class="mail"><h3>Oakfield Learning</h3><p>Application received</p><small>Yesterday</small></div></aside><section><span class="badge">Fjord Community Health</span><h2 style="margin-top:20px">${state.lang === "nb" ? "Vi vil gjerne møte deg" : "We’d love to meet you"}</h2><p>${state.lang === "nb" ? "Hei Amira, takk for interessen din. Har du anledning til en samtale fredag klokken 10? Vi gleder oss til å høre mer om erfaringen din." : "Hi Amira, thank you for your interest. Would you be available for a conversation on Friday at 10? We look forward to learning more about your experience."}</p><p>Elise<br>Fjord Community Health</p><div class="actions">${btn(t("calendar"), "calendar")}${jobLink(jobs[0], t("review"))}</div><hr style="margin:30px 0;border:0;border-top:1px solid var(--line)">${field(t("reply"), state.lang === "nb" ? "Hei Elise, fredag klokken 10 passer fint. Takk for invitasjonen!" : "Hi Elise, Friday at 10 works well. Thank you for the invitation!", "reply", true)}${btn(t("send"), "send", true)}</section></div>`;
|
||||
}
|
||||
function settings() {
|
||||
return `${heading(t("settings"), t("settingsIntro"))}<div class="wide-split"><aside class="list">${["uiLanguage", "privacy", "notifications", "connections", "security", "data"].map((k) => `<div class="row"><a href="#${k}">${t(k)}</a></div>`).join("")}</aside><section><h2 id="uiLanguage">${t("uiLanguage")}</h2><label class="field">${t("uiLanguage")}<select id="settingLanguage"><option value="en" ${state.lang === "en" ? "selected" : ""}>English</option><option value="nb" ${state.lang === "nb" ? "selected" : ""}>Norsk bokmål</option></select></label><p class="muted">${state.lang === "nb" ? "Søkeland, annonsespråk og dokumentspråk velges uavhengig." : "Search country, advert language and document language are independent choices."}</p><h2 id="privacy">${t("privacy")}</h2><label class="task"><input type="checkbox">${state.lang === "nb" ? "Tillat forslag fra AI etter at jeg ber om det" : "Allow AI suggestions when I explicitly ask"}</label><h2 id="notifications">${t("notifications")}</h2><label class="task"><input type="checkbox" checked>${state.lang === "nb" ? "Minn meg på frister og oppfølging" : "Remind me about deadlines and follow-ups"}</label>${["connections", "security", "data"].map((k) => `<details id="${k}" style="padding:18px 0;border-top:1px solid var(--line)"><summary>${t(k)}</summary><p>${state.lang === "nb" ? "Disse kontrollene er en del av den bevarte funksjonaliteten. Ingen kontoer endres i prototypen." : "These controls remain part of the preserved functionality. No accounts are changed in this prototype."}</p>${btn(t("view"), "feedback")}</details>`).join("")}${btn(t("saveChanges"), "feedback", true)}</section></div>`;
|
||||
}
|
||||
function admin() {
|
||||
return `${heading(t("admin"), t("adminIntro"))}<div class="notice"><strong>${state.lang === "nb" ? "Kun demonstrasjon" : "Demonstration only"}</strong><p>${state.lang === "nb" ? "Alle kontoer og statuser nedenfor er syntetiske." : "All accounts and statuses below are synthetic."}</p></div><div class="metric-strip"><div class="metric"><strong>24</strong>${state.lang === "nb" ? "kontoer" : "accounts"}</div><div class="metric"><strong>3</strong>${state.lang === "nb" ? "oppgaver i kø" : "queued tasks"}</div><div class="metric"><strong>0</strong>${state.lang === "nb" ? "kjente hendelser" : "known incidents"}</div></div><div class="split"><section><h2>${state.lang === "nb" ? "Kontoadministrasjon" : "Account management"}</h2>${["Amira Olsen", "Lukas Weber", "Sofia Silva"].map((n, i) => `<div class="row"><div class="avatar">${n[0]}</div><div class="grow"><h3>${n}</h3><small>${i === 0 ? "Administrator" : "Member"} · ${state.lang === "nb" ? "Bekreftet" : "Confirmed"}</small></div>${btn(t("view"), "adminDetail")}</div>`).join("")}</section><aside><h2>${state.lang === "nb" ? "Behandling" : "Processing"}</h2><div class="list"><div class="row">CV import <span class="badge">Waiting</span></div><div class="row">Document export <span class="badge">Completed</span></div></div>${btn(state.lang === "nb" ? "Se revisjonslogg" : "View audit log", "history")}</aside></div>`;
|
||||
}
|
||||
function onboarding() {
|
||||
return `${heading(state.lang === "nb" ? "La oss finne ditt utgangspunkt." : "Let’s find your starting point.", state.lang === "nb" ? "Ingen riktig rekkefølge. Velg det som hjelper deg nå." : "There’s no right order. Choose what helps you now.")}<div class="grid3">${[
|
||||
[
|
||||
"discover",
|
||||
state.lang === "nb"
|
||||
? "Jeg ser etter nye muligheter"
|
||||
: "I’m exploring opportunities",
|
||||
state.lang === "nb"
|
||||
? "Bla gjennom jobber og lagre det som passer."
|
||||
: "Browse jobs and save the ones that feel right.",
|
||||
],
|
||||
[
|
||||
"profile",
|
||||
state.lang === "nb"
|
||||
? "Jeg vil samle erfaringen min"
|
||||
: "I want to gather my experience",
|
||||
state.lang === "nb"
|
||||
? "Bygg et utgangspunkt du kan bruke igjen."
|
||||
: "Build a foundation you can reuse.",
|
||||
],
|
||||
[
|
||||
"cv",
|
||||
state.lang === "nb"
|
||||
? "Jeg har en søknad å forberede"
|
||||
: "I have an application to prepare",
|
||||
state.lang === "nb"
|
||||
? "Gå rett til CV og søknadsbrev."
|
||||
: "Go straight to your CV and cover letter.",
|
||||
],
|
||||
]
|
||||
.map(
|
||||
([s, h, p]) =>
|
||||
`<section class="tile"><div class="logo" style="margin-bottom:25px">${s === "discover" ? "◎" : s === "profile" ? "◈" : "▤"}</div><h2>${h}</h2><p>${p}</p>${btn(t("continue"), s, true)}</section>`,
|
||||
)
|
||||
.join(
|
||||
"",
|
||||
)}</div><div style="margin-top:30px">${link("home", t("skip"))}</div>`;
|
||||
}
|
||||
function gallery() {
|
||||
document.body.className = "A";
|
||||
return `<main class="gallery"><p>Jobjakt design reassessment · November 2026</p><h1>Five ways to make your next move.</h1><p>Five distinct working prototypes. Explore the same career journeys through different navigation, density and document workflows. Nothing here replaces the current application.</p><div class="gallery-grid">${Object.entries(
|
||||
concepts,
|
||||
)
|
||||
.map(
|
||||
([id, c]) =>
|
||||
`<a class="concept-card ${id}" href="?concept=${id}" data-concept="${id}"><img class="concept-shot" src="captures/${id}-home-1440.png" alt="" width="1440" height="1000"><div class="description"><small>Concept ${id}</small><h2>${c.name}</h2><p>${c.detail}</p><strong>Explore this direction</strong></div></a>`,
|
||||
)
|
||||
.join(
|
||||
"",
|
||||
)}</div><section style="margin-top:45px"><h2>What to compare</h2><p>Try finding a job, saving it, preparing a CV, reviewing a letter and scheduling a follow-up. Switch between desktop and mobile, English and Bokmål, light and dark. These are design prototypes with synthetic data, not provider or production qualification.</p><a href="compare.html">Compare screenshots and tradeoffs</a> · <a href="RESEARCH.md">Research notes</a></section></main>`;
|
||||
}
|
||||
function render() {
|
||||
if (!state.concept) {
|
||||
$("#app").innerHTML = gallery();
|
||||
return;
|
||||
}
|
||||
const c = concepts[state.concept];
|
||||
document.documentElement.lang = state.lang === "nb" ? "nb-NO" : "en";
|
||||
document.body.className = `${state.concept} ${state.theme === "dark" ? "dark" : ""} ${state.phone ? "phone" : ""}`;
|
||||
const nav =
|
||||
state.concept === "C"
|
||||
? [
|
||||
"home",
|
||||
"profile",
|
||||
"cv",
|
||||
"letter",
|
||||
"applications",
|
||||
"discover",
|
||||
"calendar",
|
||||
"mail",
|
||||
"settings",
|
||||
"admin",
|
||||
]
|
||||
: ["home", "discover", "applications", "profile", "calendar"];
|
||||
const screens = {
|
||||
home,
|
||||
discover,
|
||||
applications,
|
||||
detail,
|
||||
profile,
|
||||
cv: () => studio(),
|
||||
letter: () => studio(true),
|
||||
calendar,
|
||||
mail,
|
||||
settings,
|
||||
admin,
|
||||
onboarding,
|
||||
};
|
||||
$("#app").innerHTML =
|
||||
`<div class="lab"><a href="index.html">${t("back")}</a><label>Concept <select id="concept">${Object.entries(
|
||||
concepts,
|
||||
)
|
||||
.map(
|
||||
([id, v]) =>
|
||||
`<option value="${id}" ${id === state.concept ? "selected" : ""}>${id} · ${v.name}</option>`,
|
||||
)
|
||||
.join(
|
||||
"",
|
||||
)}</select></label><label><select aria-label="Screen" id="screen">${Object.keys(
|
||||
screens,
|
||||
)
|
||||
.map(
|
||||
(s) =>
|
||||
`<option value="${s}" ${s === state.screen ? "selected" : ""}>${t(s)}</option>`,
|
||||
)
|
||||
.join(
|
||||
"",
|
||||
)}</select></label><label><select aria-label="Language" id="lang"><option value="en" ${state.lang === "en" ? "selected" : ""}>English</option><option value="nb" ${state.lang === "nb" ? "selected" : ""}>Norsk</option></select></label><button data-action="theme">${state.theme === "dark" ? "☀ Light" : "☾ Dark"}</button><button data-action="mobile">${state.phone ? t("desktop") : t("mobile")}</button></div><div class="shell"><header class="top"><a class="brand" href="#" data-screen="home"><span>${state.concept === "E" ? "↗" : "j"}</span>${c.name}</a><nav class="nav" aria-label="Primary">${nav.map((s) => link(s, t(s), state.screen === s ? "active" : "")).join("")}</nav><div class="actions">${link("mail", "✉ " + t("mail"))}${link("settings", t("settings"))}<span class="avatar">AO</span></div></header><main class="content" id="main">${(screens[state.screen] || home)()}<details style="margin-top:35px"><summary>${t("help")}</summary><div class="actions" style="margin-top:12px">${["cv", "letter", "mail", "settings", "admin", "onboarding"].map((s) => link(s, t(s))).join("")}</div></details></main>${state.concept === "E" ? `<nav class="journey-nav" aria-label="Journey">${["home", "discover", "applications", "profile", "calendar"].map((s) => link(s, t(s), state.screen === s ? "active" : "")).join("")}</nav>` : ""}</div><footer class="footnote">${t("synthetic")}</footer>`;
|
||||
history.replaceState(
|
||||
null,
|
||||
"",
|
||||
`?concept=${state.concept}&screen=${state.screen}&lang=${state.lang}&theme=${state.theme}&job=${current.id}${state.phone ? "&mobile=1" : ""}`,
|
||||
);
|
||||
}
|
||||
document.addEventListener("click", (event) => {
|
||||
const a = event.target.closest("[data-screen]");
|
||||
if (a) {
|
||||
event.preventDefault();
|
||||
if (a.dataset.job)
|
||||
current = records.find((r) => r.id === a.dataset.job) || records[0];
|
||||
state.screen = a.dataset.screen;
|
||||
render();
|
||||
window.scrollTo(0, 0);
|
||||
return;
|
||||
}
|
||||
const b = event.target.closest("[data-action]");
|
||||
if (!b) return;
|
||||
const action = b.dataset.action;
|
||||
if (screens.includes(action)) {
|
||||
if (state.screen === "home" && action === "detail") current = records[0];
|
||||
state.screen = action;
|
||||
render();
|
||||
window.scrollTo(0, 0);
|
||||
} else if (action === "theme") {
|
||||
state.theme = state.theme === "light" ? "dark" : "light";
|
||||
render();
|
||||
} else if (action === "mobile") {
|
||||
state.phone = !state.phone;
|
||||
render();
|
||||
} else if (action === "save") {
|
||||
current.stage ||= "saved";
|
||||
render();
|
||||
toast(t("saved"));
|
||||
} else if (action === "apply") {
|
||||
current.stage = "applied";
|
||||
render();
|
||||
toast(t("applied"));
|
||||
} else if (["agenda", "month", "board", "list"].includes(action)) {
|
||||
if (["agenda", "month"].includes(action)) state.calendarView = action;
|
||||
else state.trackerView = action;
|
||||
render();
|
||||
} else if (action === "profileSave") {
|
||||
state.name = $("#name").value;
|
||||
state.title = $("#title").value;
|
||||
state.profileSummary = $("#summary").value;
|
||||
toast(t("feedback"));
|
||||
} else if (action === "follow") {
|
||||
current.followup = true;
|
||||
state.calendarView = "agenda";
|
||||
state.screen = "calendar";
|
||||
render();
|
||||
toast(
|
||||
state.lang === "nb"
|
||||
? "Oppfølging lagt til i prototypen"
|
||||
: "Follow-up added in this prototype",
|
||||
);
|
||||
} else if (action === "saveNotes") {
|
||||
current.notes = $("#notes").value;
|
||||
toast(t("feedback"));
|
||||
} else if (action === "export") {
|
||||
toast(t("exportNote"));
|
||||
$(".document")?.scrollIntoView({ block: "start" });
|
||||
} else if (action === "send") {
|
||||
toast(t("reviewNote"));
|
||||
} else if (action === "filters") {
|
||||
toast(
|
||||
state.lang === "nb"
|
||||
? "Land og annonsespråk kan velges uavhengig. Kartet er illustrativt."
|
||||
: "Country and advert language are independent. The map is illustrative.",
|
||||
);
|
||||
} else if (action === "design") {
|
||||
toast(
|
||||
state.lang === "nb"
|
||||
? "Ren dokumentstil valgt. Innhold og språk beholdes."
|
||||
: "Clean document style selected. Content and language retained.",
|
||||
);
|
||||
} else if (action === "history") {
|
||||
toast(
|
||||
state.lang === "nb"
|
||||
? "Utkast 3 · I dag 09:40. Prototypen endrer ingen lagrede versjoner."
|
||||
: "Draft 3 · Today 09:40. No stored revisions are changed by this prototype.",
|
||||
);
|
||||
} else if (action === "adminDetail") {
|
||||
toast(
|
||||
state.lang === "nb"
|
||||
? "Siste administrator er beskyttet. Ingen kontoendringer utføres."
|
||||
: "The last administrator is protected. No account changes are performed.",
|
||||
);
|
||||
} else toast(t("feedback"));
|
||||
});
|
||||
document.addEventListener("change", (e) => {
|
||||
if (e.target.id === "country") {
|
||||
state.country = e.target.value;
|
||||
render();
|
||||
}
|
||||
if (["concept", "screen", "lang"].includes(e.target.id)) {
|
||||
state[e.target.id] = e.target.value;
|
||||
render();
|
||||
}
|
||||
if (e.target.id === "settingLanguage") {
|
||||
state.lang = e.target.value;
|
||||
render();
|
||||
}
|
||||
});
|
||||
document.addEventListener("input", (e) => {
|
||||
if (e.target.id === "search") {
|
||||
state.query = e.target.value;
|
||||
state.discoveryState = "ready";
|
||||
updateDiscoveryResults();
|
||||
}
|
||||
if (e.target.id === "summary" && $("#summaryPreview")) {
|
||||
current.cvSummary = e.target.value;
|
||||
$("#summaryPreview").textContent = current.cvSummary;
|
||||
}
|
||||
if (e.target.id === "letter" && $("#letterPreview")) {
|
||||
current.letter = e.target.value;
|
||||
$("#letterPreview").textContent = current.letter;
|
||||
}
|
||||
});
|
||||
render();
|
||||
|
||||
function filteredJobs() {
|
||||
return jobs.filter(
|
||||
(j) =>
|
||||
(!state.country || j[2].endsWith(state.country)) &&
|
||||
j.join(" ").toLowerCase().includes(state.query.toLowerCase()),
|
||||
);
|
||||
}
|
||||
|
||||
// Synthetic recovery states; no provider requests are made.
|
||||
let discoveryTimer;
|
||||
function discoveryCopy(enText, nbText) {
|
||||
return state.lang === "nb" ? nbText : enText;
|
||||
}
|
||||
function discoveryMarkup() {
|
||||
const mode = state.discoveryState;
|
||||
if (mode === "loading")
|
||||
return `<section aria-busy="true" aria-labelledby="discoveryStatus"><h2 id="discoveryStatus" tabindex="-1">${discoveryCopy("Finding opportunities…", "Finner muligheter…")}</h2><p>${discoveryCopy("Synthetic loading preview. Your search is retained.", "Syntetisk lastevisning. Søket ditt beholdes.")}</p><button data-recovery="cancel">${discoveryCopy("Cancel search", "Avbryt søket")}</button></section>`;
|
||||
if (mode === "error")
|
||||
return `<section aria-labelledby="discoveryStatus"><h2 id="discoveryStatus" tabindex="-1">${discoveryCopy("We could not load these jobs", "Vi kunne ikke laste disse stillingene")}</h2><p>${discoveryCopy("Simulated connection failure. Your filters and saved applications are unchanged.", "Simulert tilkoblingsfeil. Filtrene og lagrede søknader er uendret.")}</p><button class="primary" data-recovery="retry">${discoveryCopy("Try again", "Prøv igjen")}</button></section>`;
|
||||
const rows = mode === "empty" ? [] : filteredJobs();
|
||||
if (!rows.length)
|
||||
return `<section aria-labelledby="discoveryStatus"><h2 id="discoveryStatus" tabindex="-1">${discoveryCopy("No matching jobs yet", "Ingen passende stillinger ennå")}</h2><p>${discoveryCopy("Try a broader phrase or another country. You can keep your current search.", "Prøv et bredere søk eller et annet land. Du kan beholde søket ditt.")}</p><button data-recovery="clear">${discoveryCopy("Clear filters and show all jobs", "Nullstill filtre og vis alle stillinger")}</button><button data-recovery="edit">${discoveryCopy("Edit search", "Endre søket")}</button></section>`;
|
||||
return (
|
||||
`<h2 id="discoveryStatus" tabindex="-1">${discoveryCopy("Opportunities to explore", "Muligheter å utforske")}</h2>` +
|
||||
jobRows(rows)
|
||||
);
|
||||
}
|
||||
function discover() {
|
||||
return (
|
||||
`<label class="field" style="max-width:280px">${discoveryCopy("Prototype discovery state", "Prototypens søketilstand")}<select id="discoveryState">${["ready", "loading", "empty", "error"].map((v, i) => `<option value="${v}" ${state.discoveryState === v ? "selected" : ""}>${(state.lang === "nb" ? ["Klar", "Laster", "Tomt", "Feil"] : ["Ready", "Loading", "Empty", "Error"])[i]}</option>`).join("")}</select></label>` +
|
||||
discoveryBase()
|
||||
);
|
||||
}
|
||||
function updateDiscoveryResults(focus = false) {
|
||||
if (!$("#jobResults")) return;
|
||||
$("#jobResults").innerHTML = discoveryMarkup();
|
||||
const mode = state.discoveryState;
|
||||
$("#resultCount").textContent =
|
||||
(mode === "ready"
|
||||
? filteredJobs().length + " " + t("results")
|
||||
: discoveryCopy("Prototype state: ", "Prototypetilstand: ") + mode) +
|
||||
" · " +
|
||||
t("sourceNote");
|
||||
const status = $("#discoveryStatus");
|
||||
$("#discoveryLive").textContent = status?.textContent || "";
|
||||
if (focus) status?.focus();
|
||||
}
|
||||
document.addEventListener("change", (e) => {
|
||||
if (e.target.id === "discoveryState") {
|
||||
clearTimeout(discoveryTimer);
|
||||
state.discoveryState = e.target.value;
|
||||
updateDiscoveryResults(true);
|
||||
}
|
||||
});
|
||||
document.addEventListener("click", (e) => {
|
||||
const action = e.target.closest("[data-recovery]")?.dataset.recovery;
|
||||
if (!action) return;
|
||||
clearTimeout(discoveryTimer);
|
||||
if (action === "edit") {
|
||||
$("#search").focus();
|
||||
return;
|
||||
}
|
||||
if (action === "retry") {
|
||||
state.discoveryState = "loading";
|
||||
updateDiscoveryResults(true);
|
||||
discoveryTimer = setTimeout(() => {
|
||||
state.discoveryState = "ready";
|
||||
updateDiscoveryResults(true);
|
||||
}, 700);
|
||||
return;
|
||||
}
|
||||
state.discoveryState = "ready";
|
||||
if (action === "clear") {
|
||||
state.country = "";
|
||||
state.query = "";
|
||||
$("#search").value = "";
|
||||
$("#country").value = "";
|
||||
}
|
||||
updateDiscoveryResults(true);
|
||||
});
|
||||
|
After Width: | Height: | Size: 87 KiB |
|
After Width: | Height: | Size: 79 KiB |
|
After Width: | Height: | Size: 96 KiB |
|
After Width: | Height: | Size: 91 KiB |
|
After Width: | Height: | Size: 83 KiB |
|
After Width: | Height: | Size: 76 KiB |
|
After Width: | Height: | Size: 96 KiB |
|
After Width: | Height: | Size: 87 KiB |
|
After Width: | Height: | Size: 114 KiB |
|
After Width: | Height: | Size: 106 KiB |
|
After Width: | Height: | Size: 83 KiB |
|
After Width: | Height: | Size: 76 KiB |
|
After Width: | Height: | Size: 94 KiB |
|
After Width: | Height: | Size: 81 KiB |
|
After Width: | Height: | Size: 103 KiB |
|
After Width: | Height: | Size: 90 KiB |
|
After Width: | Height: | Size: 90 KiB |
|
After Width: | Height: | Size: 83 KiB |
|
After Width: | Height: | Size: 91 KiB |
|
After Width: | Height: | Size: 82 KiB |
|
After Width: | Height: | Size: 99 KiB |
|
After Width: | Height: | Size: 93 KiB |
|
After Width: | Height: | Size: 87 KiB |
|
After Width: | Height: | Size: 75 KiB |
|
After Width: | Height: | Size: 93 KiB |
|
After Width: | Height: | Size: 80 KiB |
|
After Width: | Height: | Size: 102 KiB |
|
After Width: | Height: | Size: 91 KiB |
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 45 KiB |
@@ -0,0 +1,381 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Compare five Jobjakt concepts</title>
|
||||
<style>
|
||||
:root {
|
||||
color-scheme: light dark;
|
||||
font:
|
||||
100%/1.5 system-ui,
|
||||
sans-serif;
|
||||
}
|
||||
body {
|
||||
max-width: 76rem;
|
||||
margin: auto;
|
||||
padding: clamp(1rem, 3vw, 3rem);
|
||||
}
|
||||
header,
|
||||
section {
|
||||
border-bottom: 1px solid GrayText;
|
||||
padding-bottom: 1.5rem;
|
||||
}
|
||||
h1 {
|
||||
font-size: clamp(2rem, 5vw, 4rem);
|
||||
line-height: 1.08;
|
||||
margin: 0.65em 0 0.25em;
|
||||
}
|
||||
h2 {
|
||||
margin-top: 2rem;
|
||||
}
|
||||
p {
|
||||
max-width: 78ch;
|
||||
}
|
||||
a {
|
||||
color: LinkText;
|
||||
text-underline-offset: 0.18em;
|
||||
}
|
||||
nav,
|
||||
.links {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem 1rem;
|
||||
}
|
||||
a:focus-visible,
|
||||
select:focus-visible {
|
||||
outline: 3px solid Highlight;
|
||||
outline-offset: 4px;
|
||||
}
|
||||
.pair {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
|
||||
gap: 1rem;
|
||||
align-items: start;
|
||||
}
|
||||
.pair img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
border: 1px solid GrayText;
|
||||
}
|
||||
.pair figure {
|
||||
margin: 0;
|
||||
}
|
||||
.pair figcaption {
|
||||
font-size: 0.9rem;
|
||||
margin: 0.5rem 0;
|
||||
}
|
||||
.controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
flex-wrap: wrap;
|
||||
margin: 1.25rem 0;
|
||||
}
|
||||
select {
|
||||
font: inherit;
|
||||
padding: 0.4em;
|
||||
}
|
||||
summary {
|
||||
cursor: pointer;
|
||||
}
|
||||
@media (max-width: 44rem) {
|
||||
.pair {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.pair figure:nth-child(2) {
|
||||
max-width: 24rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<a href="index.html">All interactive prototypes</a>
|
||||
<h1>Compare five directions</h1>
|
||||
<p>
|
||||
Use the same task in each prototype. The desktop captures are in English
|
||||
with the light theme. The phone captures use Bokmål and the dark theme.
|
||||
Open any image at full size.
|
||||
</p>
|
||||
<nav aria-label="Jump to a concept">
|
||||
<a href="#A">Clear Desk</a><a href="#B">Next Chapter</a
|
||||
><a href="#C">Career Atelier</a><a href="#D">Northstar</a
|
||||
><a href="#E">The Next Move</a>
|
||||
</nav>
|
||||
<div class="controls">
|
||||
<label for="screen">Screenshots</label
|
||||
><select id="screen">
|
||||
<option value="home">Dashboard</option>
|
||||
<option value="discover">Job discovery</option>
|
||||
<option value="cv">CV studio</option>
|
||||
<option value="loading">Discovery loading</option>
|
||||
<option value="empty">Empty results</option>
|
||||
<option value="error">Discovery error</option>
|
||||
</select>
|
||||
</div>
|
||||
</header>
|
||||
<section id="A" aria-labelledby="name-A">
|
||||
<h2 id="name-A">Clear Desk</h2>
|
||||
<p>
|
||||
Find the next interview or deadline in the agenda while scanning recent
|
||||
applications.
|
||||
</p>
|
||||
<p>
|
||||
Compact top navigation and close-set lists show more work per screen. On
|
||||
a phone, long navigation scrolls horizontally.
|
||||
</p>
|
||||
<p class="links">
|
||||
<a href="index.html?concept=A">Try Clear Desk</a
|
||||
><a href="index.html?concept=A&screen=cv">Open CV studio</a
|
||||
><a href="index.html?concept=A&screen=discover">Try discovery</a>
|
||||
</p>
|
||||
<div class="pair">
|
||||
<figure>
|
||||
<a data-concept="A" data-width="1440" href="captures/A-home-1440.png"
|
||||
><img
|
||||
loading="lazy"
|
||||
alt="Clear Desk, dashboard at 1440 pixels"
|
||||
src="captures/A-home-1440.png"
|
||||
/></a>
|
||||
<figcaption>Desktop · English · Light</figcaption>
|
||||
</figure>
|
||||
<figure>
|
||||
<a data-concept="A" data-width="390" href="captures/A-home-390.png"
|
||||
><img
|
||||
loading="lazy"
|
||||
alt="Clear Desk, dashboard at 390 pixels"
|
||||
src="captures/A-home-390.png"
|
||||
/></a>
|
||||
<figcaption>Phone · Bokmål · Dark</figcaption>
|
||||
</figure>
|
||||
</div>
|
||||
<details>
|
||||
<summary>Implementation and accessibility considerations</summary>
|
||||
<p>
|
||||
Lowest migration cost of the five. Existing list, agenda and table
|
||||
owners fit the structure. Check small targets and wrapping at large
|
||||
text sizes.
|
||||
</p>
|
||||
</details>
|
||||
</section>
|
||||
<section id="B" aria-labelledby="name-B">
|
||||
<h2 id="name-B">Next Chapter</h2>
|
||||
<p>
|
||||
Start at the guided home, choose a starting point and open Career
|
||||
Profile or a CV draft.
|
||||
</p>
|
||||
<p>
|
||||
Prominent next actions and plain-language prompts reduce the number of
|
||||
choices. Large panels place secondary actions further down on mobile.
|
||||
</p>
|
||||
<p class="links">
|
||||
<a href="index.html?concept=B">Try Next Chapter</a
|
||||
><a href="index.html?concept=B&screen=cv">Open CV studio</a
|
||||
><a href="index.html?concept=B&screen=discover">Try discovery</a>
|
||||
</p>
|
||||
<div class="pair">
|
||||
<figure>
|
||||
<a data-concept="B" data-width="1440" href="captures/B-home-1440.png"
|
||||
><img
|
||||
loading="lazy"
|
||||
alt="Next Chapter, dashboard at 1440 pixels"
|
||||
src="captures/B-home-1440.png"
|
||||
/></a>
|
||||
<figcaption>Desktop · English · Light</figcaption>
|
||||
</figure>
|
||||
<figure>
|
||||
<a data-concept="B" data-width="390" href="captures/B-home-390.png"
|
||||
><img
|
||||
loading="lazy"
|
||||
alt="Next Chapter, dashboard at 390 pixels"
|
||||
src="captures/B-home-390.png"
|
||||
/></a>
|
||||
<figcaption>Phone · Bokmål · Dark</figcaption>
|
||||
</figure>
|
||||
</div>
|
||||
<details>
|
||||
<summary>Implementation and accessibility considerations</summary>
|
||||
<p>
|
||||
Moderate cost. The guidance needs rules for returning users and
|
||||
partially completed work. Preserve direct access to every tool.
|
||||
</p>
|
||||
</details>
|
||||
</section>
|
||||
<section id="C" aria-labelledby="name-C">
|
||||
<h2 id="name-C">Career Atelier</h2>
|
||||
<p>
|
||||
Open the document collection, edit a CV summary and compare its preview
|
||||
with the Career Profile.
|
||||
</p>
|
||||
<p>
|
||||
A persistent desktop library gives documents precedence. On a phone the
|
||||
preview precedes the editor, which makes reading easy but puts editing
|
||||
further away.
|
||||
</p>
|
||||
<p class="links">
|
||||
<a href="index.html?concept=C">Try Career Atelier</a
|
||||
><a href="index.html?concept=C&screen=cv">Open CV studio</a
|
||||
><a href="index.html?concept=C&screen=discover">Try discovery</a>
|
||||
</p>
|
||||
<div class="pair">
|
||||
<figure>
|
||||
<a data-concept="C" data-width="1440" href="captures/C-home-1440.png"
|
||||
><img
|
||||
loading="lazy"
|
||||
alt="Career Atelier, dashboard at 1440 pixels"
|
||||
src="captures/C-home-1440.png"
|
||||
/></a>
|
||||
<figcaption>Desktop · English · Light</figcaption>
|
||||
</figure>
|
||||
<figure>
|
||||
<a data-concept="C" data-width="390" href="captures/C-home-390.png"
|
||||
><img
|
||||
loading="lazy"
|
||||
alt="Career Atelier, dashboard at 390 pixels"
|
||||
src="captures/C-home-390.png"
|
||||
/></a>
|
||||
<figcaption>Phone · Bokmål · Dark</figcaption>
|
||||
</figure>
|
||||
</div>
|
||||
<details>
|
||||
<summary>Implementation and accessibility considerations</summary>
|
||||
<p>
|
||||
Higher cost. Preserve draft ownership, undo, conflict recovery and
|
||||
frozen output. Check reading and focus order when switching between
|
||||
editor and preview.
|
||||
</p>
|
||||
</details>
|
||||
</section>
|
||||
<section id="D" aria-labelledby="name-D">
|
||||
<h2 id="name-D">Northstar</h2>
|
||||
<p>
|
||||
Open the featured opportunity brief, then inspect the application and
|
||||
its follow-up.
|
||||
</p>
|
||||
<p>
|
||||
An editorial heading and employer brief make one opportunity easy to
|
||||
recognise. The desktop summary and phone hero both trade scanning
|
||||
density for emphasis.
|
||||
</p>
|
||||
<p class="links">
|
||||
<a href="index.html?concept=D">Try Northstar</a
|
||||
><a href="index.html?concept=D&screen=cv">Open CV studio</a
|
||||
><a href="index.html?concept=D&screen=discover">Try discovery</a>
|
||||
</p>
|
||||
<div class="pair">
|
||||
<figure>
|
||||
<a data-concept="D" data-width="1440" href="captures/D-home-1440.png"
|
||||
><img
|
||||
loading="lazy"
|
||||
alt="Northstar, dashboard at 1440 pixels"
|
||||
src="captures/D-home-1440.png"
|
||||
/></a>
|
||||
<figcaption>Desktop · English · Light</figcaption>
|
||||
</figure>
|
||||
<figure>
|
||||
<a data-concept="D" data-width="390" href="captures/D-home-390.png"
|
||||
><img
|
||||
loading="lazy"
|
||||
alt="Northstar, dashboard at 390 pixels"
|
||||
src="captures/D-home-390.png"
|
||||
/></a>
|
||||
<figcaption>Phone · Bokmål · Dark</figcaption>
|
||||
</figure>
|
||||
</div>
|
||||
<details>
|
||||
<summary>Implementation and accessibility considerations</summary>
|
||||
<p>
|
||||
Moderate cost. Existing route owners suit the shell. Reflow long
|
||||
titles and test contrast in the feature and application navigation.
|
||||
</p>
|
||||
</details>
|
||||
</section>
|
||||
<section id="E" aria-labelledby="name-E">
|
||||
<h2 id="name-E">The Next Move</h2>
|
||||
<p>
|
||||
Follow one opportunity from discovery into the tracker and calendar,
|
||||
then return through the bottom navigation.
|
||||
</p>
|
||||
<p>
|
||||
Task-led navigation makes the current step clear. Bottom navigation
|
||||
stays reachable on mobile. Users working on several roles need direct
|
||||
access to the tracker.
|
||||
</p>
|
||||
<p class="links">
|
||||
<a href="index.html?concept=E">Try The Next Move</a
|
||||
><a href="index.html?concept=E&screen=cv">Open CV studio</a
|
||||
><a href="index.html?concept=E&screen=discover">Try discovery</a>
|
||||
</p>
|
||||
<div class="pair">
|
||||
<figure>
|
||||
<a data-concept="E" data-width="1440" href="captures/E-home-1440.png"
|
||||
><img
|
||||
loading="lazy"
|
||||
alt="The Next Move, dashboard at 1440 pixels"
|
||||
src="captures/E-home-1440.png"
|
||||
/></a>
|
||||
<figcaption>Desktop · English · Light</figcaption>
|
||||
</figure>
|
||||
<figure>
|
||||
<a data-concept="E" data-width="390" href="captures/E-home-390.png"
|
||||
><img
|
||||
loading="lazy"
|
||||
alt="The Next Move, dashboard at 390 pixels"
|
||||
src="captures/E-home-390.png"
|
||||
/></a>
|
||||
<figcaption>Phone · Bokmål · Dark</figcaption>
|
||||
</figure>
|
||||
</div>
|
||||
<details>
|
||||
<summary>Implementation and accessibility considerations</summary>
|
||||
<p>
|
||||
Higher cost. Explicit context must survive route changes and browser
|
||||
navigation. Validate focus visibility and safe-area spacing above the
|
||||
bottom bar.
|
||||
</p>
|
||||
</details>
|
||||
</section>
|
||||
<footer>
|
||||
<h2>What carries forward</h2>
|
||||
<p>
|
||||
The 34 routes and 57 preservation groups remain on the implementation
|
||||
inventory. The prototype uses session-only synthetic data. Actual
|
||||
permissions, revisions, production exports, PDF rendering and provider
|
||||
integrations require their own regression checks on the selected
|
||||
implementation.
|
||||
</p>
|
||||
<p>
|
||||
Compare your daily workflow, an unfamiliar task and a task on a phone.
|
||||
Individual layouts can be combined. Incremental migration can retain the
|
||||
existing feature owners. A new shell adds routing and focus work. A full
|
||||
replacement needs parity evidence for every route before cutover.
|
||||
</p>
|
||||
</footer>
|
||||
<script>
|
||||
const chooser = document.querySelector("#screen");
|
||||
chooser.addEventListener("change", () => {
|
||||
const screen = chooser.value;
|
||||
const folder = ["empty", "loading", "error"].includes(screen)
|
||||
? "recovery-captures"
|
||||
: "captures";
|
||||
for (const link of document.querySelectorAll(".pair a")) {
|
||||
const { concept, width } = link.dataset;
|
||||
const url =
|
||||
folder + "/" + concept + "-" + screen + "-" + width + ".png";
|
||||
link.href = url;
|
||||
const img = link.querySelector("img");
|
||||
img.src = url;
|
||||
img.alt =
|
||||
document.getElementById("name-" + concept).textContent +
|
||||
", " +
|
||||
chooser.selectedOptions[0].textContent +
|
||||
" at " +
|
||||
width +
|
||||
" pixels";
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,12 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<meta charset="utf-8" /><meta
|
||||
name="viewport"
|
||||
content="width=device-width,initial-scale=1"
|
||||
/><title>Jobjakt · Five new directions</title
|
||||
><link rel="stylesheet" href="styles.css" />
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script src="app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,62 @@
|
||||
const { chromium } = require(
|
||||
require.resolve("playwright", {
|
||||
paths: [require("path").resolve(__dirname, "../../../../job-tracker-ui")],
|
||||
}),
|
||||
);
|
||||
const assert = require("assert");
|
||||
const fs = require("fs");
|
||||
(async () => {
|
||||
const b = await chromium.launch();
|
||||
const p = await b.newPage();
|
||||
let checks = [];
|
||||
for (const c of "ABCDE") {
|
||||
await p.goto(
|
||||
`${process.env.JOBJAKT_GALLERY_URL || "http://127.0.0.1:4327"}/?concept=${c}&screen=discover`,
|
||||
);
|
||||
await p.selectOption("#country", "Norway");
|
||||
assert.equal(await p.locator("#jobResults .row").count(), 2);
|
||||
await p.fill("#search", "Electrician");
|
||||
assert.equal(await p.locator("#jobResults .row").count(), 1);
|
||||
await p.selectOption("#screen", "detail");
|
||||
await p.locator("[data-action=save]").click();
|
||||
assert(await p.locator(".toast").isVisible());
|
||||
await p.locator("[data-action=apply]").click();
|
||||
await p.locator("[data-action=follow]").click();
|
||||
assert(
|
||||
(await p.locator("main").innerText()).includes(
|
||||
"Follow up with Fjord Community Health",
|
||||
),
|
||||
);
|
||||
await p.selectOption("#screen", "cv");
|
||||
await p.fill("#summary", "Edited prototype document summary");
|
||||
assert.equal(
|
||||
await p.locator("#summaryPreview").innerText(),
|
||||
"Edited prototype document summary",
|
||||
);
|
||||
await p.selectOption("#screen", "profile");
|
||||
assert.notEqual(
|
||||
await p.locator("#summary").inputValue(),
|
||||
"Edited prototype document summary",
|
||||
);
|
||||
await p.selectOption("#screen", "letter");
|
||||
await p.fill("#letter", "Synthetic review letter");
|
||||
assert.equal(
|
||||
await p.locator("#letterPreview").innerText(),
|
||||
"Synthetic review letter",
|
||||
);
|
||||
await p.selectOption("#lang", "nb");
|
||||
assert.equal(await p.locator("html").getAttribute("lang"), "nb-NO");
|
||||
await p.locator("[data-action=theme]").click();
|
||||
assert((await p.locator("body").getAttribute("class")).includes("dark"));
|
||||
checks.push({ concept: c, checks: 8, status: "PASS" });
|
||||
}
|
||||
fs.writeFileSync(
|
||||
__dirname + "/interactions.json",
|
||||
JSON.stringify(checks, null, 2),
|
||||
);
|
||||
console.log(JSON.stringify(checks));
|
||||
await b.close();
|
||||
})().catch((e) => {
|
||||
console.error(e);
|
||||
process.exit(1);
|
||||
});
|
||||
@@ -0,0 +1,27 @@
|
||||
[
|
||||
{
|
||||
"concept": "A",
|
||||
"checks": 8,
|
||||
"status": "PASS"
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"checks": 8,
|
||||
"status": "PASS"
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"checks": 8,
|
||||
"status": "PASS"
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"checks": 8,
|
||||
"status": "PASS"
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"checks": 8,
|
||||
"status": "PASS"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,59 @@
|
||||
const { chromium } = require(
|
||||
require.resolve("playwright", {
|
||||
paths: [require("path").resolve(__dirname, "../../../../job-tracker-ui")],
|
||||
}),
|
||||
);
|
||||
const fs = require("fs");
|
||||
(async () => {
|
||||
const b = await chromium.launch();
|
||||
const p = await b.newPage();
|
||||
let results = [],
|
||||
errors = [];
|
||||
p.on("pageerror", (e) => errors.push(e.message));
|
||||
for (const c of "ABCDE")
|
||||
for (const width of [1440, 820, 390])
|
||||
for (const lang of ["en", "nb"])
|
||||
for (const theme of ["light", "dark"])
|
||||
for (const screen of [
|
||||
"home",
|
||||
"discover",
|
||||
"applications",
|
||||
"detail",
|
||||
"profile",
|
||||
"cv",
|
||||
"letter",
|
||||
"calendar",
|
||||
"mail",
|
||||
"settings",
|
||||
"admin",
|
||||
"onboarding",
|
||||
]) {
|
||||
await p.setViewportSize({ width, height: 1000 });
|
||||
await p.goto(
|
||||
`${process.env.JOBJAKT_GALLERY_URL || "http://127.0.0.1:4327"}/?concept=${c}&screen=${screen}&lang=${lang}&theme=${theme}`,
|
||||
);
|
||||
results.push({
|
||||
c,
|
||||
width,
|
||||
lang,
|
||||
theme,
|
||||
screen,
|
||||
overflow: await p.evaluate(
|
||||
() => document.documentElement.scrollWidth > innerWidth + 2,
|
||||
),
|
||||
});
|
||||
}
|
||||
fs.writeFileSync(
|
||||
__dirname + "/matrix.json",
|
||||
JSON.stringify({ results, errors }, null, 2),
|
||||
);
|
||||
console.log(
|
||||
JSON.stringify({
|
||||
count: results.length,
|
||||
errors,
|
||||
overflow: results.filter((r) => r.overflow),
|
||||
}),
|
||||
);
|
||||
await b.close();
|
||||
if (errors.length || results.some((r) => r.overflow)) process.exitCode = 1;
|
||||
})();
|
||||
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 64 KiB |
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 64 KiB |
|
After Width: | Height: | Size: 56 KiB |
|
After Width: | Height: | Size: 78 KiB |
|
After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 76 KiB |
|
After Width: | Height: | Size: 67 KiB |
|
After Width: | Height: | Size: 75 KiB |
|
After Width: | Height: | Size: 64 KiB |
|
After Width: | Height: | Size: 72 KiB |
|
After Width: | Height: | Size: 59 KiB |
|
After Width: | Height: | Size: 70 KiB |
|
After Width: | Height: | Size: 57 KiB |
|
After Width: | Height: | Size: 70 KiB |
|
After Width: | Height: | Size: 55 KiB |
|
After Width: | Height: | Size: 69 KiB |
|
After Width: | Height: | Size: 62 KiB |
|
After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 67 KiB |
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 71 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 69 KiB |
|
After Width: | Height: | Size: 59 KiB |
|
After Width: | Height: | Size: 69 KiB |
|
After Width: | Height: | Size: 57 KiB |
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"date": "2026-11-19T13:15:05.631Z",
|
||||
"results": [
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 1440,
|
||||
"status": "PASS",
|
||||
"coverage": "keyboard retry, loading completion, empty reset, natural empty, search focus, cancel, three state screenshots"
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 390,
|
||||
"status": "PASS",
|
||||
"coverage": "keyboard retry, loading completion, empty reset, natural empty, search focus, cancel, three state screenshots"
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 1440,
|
||||
"status": "PASS",
|
||||
"coverage": "keyboard retry, loading completion, empty reset, natural empty, search focus, cancel, three state screenshots"
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 390,
|
||||
"status": "PASS",
|
||||
"coverage": "keyboard retry, loading completion, empty reset, natural empty, search focus, cancel, three state screenshots"
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 1440,
|
||||
"status": "PASS",
|
||||
"coverage": "keyboard retry, loading completion, empty reset, natural empty, search focus, cancel, three state screenshots"
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 390,
|
||||
"status": "PASS",
|
||||
"coverage": "keyboard retry, loading completion, empty reset, natural empty, search focus, cancel, three state screenshots"
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 1440,
|
||||
"status": "PASS",
|
||||
"coverage": "keyboard retry, loading completion, empty reset, natural empty, search focus, cancel, three state screenshots"
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 390,
|
||||
"status": "PASS",
|
||||
"coverage": "keyboard retry, loading completion, empty reset, natural empty, search focus, cancel, three state screenshots"
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 1440,
|
||||
"status": "PASS",
|
||||
"coverage": "keyboard retry, loading completion, empty reset, natural empty, search focus, cancel, three state screenshots"
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 390,
|
||||
"status": "PASS",
|
||||
"coverage": "keyboard retry, loading completion, empty reset, natural empty, search focus, cancel, three state screenshots"
|
||||
}
|
||||
],
|
||||
"errors": []
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
const { chromium } = require(
|
||||
require.resolve("playwright", {
|
||||
paths: [require("path").resolve(__dirname, "../../../../job-tracker-ui")],
|
||||
}),
|
||||
);
|
||||
const fs = require("fs");
|
||||
const assert = require("assert");
|
||||
(async () => {
|
||||
const b = await chromium.launch();
|
||||
const p = await b.newPage();
|
||||
let results = [],
|
||||
errors = [];
|
||||
p.on("pageerror", (e) => errors.push(e.message));
|
||||
fs.mkdirSync(__dirname + "/recovery-captures", { recursive: true });
|
||||
for (const c of "ABCDE")
|
||||
for (const width of [1440, 390]) {
|
||||
await p.setViewportSize({ width, height: 1000 });
|
||||
await p.goto(
|
||||
`${process.env.JOBJAKT_GALLERY_URL || "http://127.0.0.1:4327"}/?concept=${c}&screen=discover&lang=${width === 390 ? "nb" : "en"}&theme=${width === 390 ? "dark" : "light"}`,
|
||||
);
|
||||
await p.selectOption("#discoveryState", "error");
|
||||
assert.equal(
|
||||
await p.evaluate(() => document.activeElement.id),
|
||||
"discoveryStatus",
|
||||
);
|
||||
await p.keyboard.press("Tab");
|
||||
assert.equal(
|
||||
await p.locator(":focus").getAttribute("data-recovery"),
|
||||
"retry",
|
||||
);
|
||||
await p.keyboard.press("Enter");
|
||||
assert.equal(
|
||||
await p.locator("#jobResults [aria-busy]").getAttribute("aria-busy"),
|
||||
"true",
|
||||
);
|
||||
await p.waitForTimeout(850);
|
||||
assert.equal(await p.locator("#jobResults .row").count(), 6);
|
||||
assert.equal(
|
||||
await p.evaluate(() => document.activeElement.id),
|
||||
"discoveryStatus",
|
||||
);
|
||||
await p.selectOption("#discoveryState", "empty");
|
||||
await p.keyboard.press("Tab");
|
||||
assert.equal(
|
||||
await p.locator(":focus").getAttribute("data-recovery"),
|
||||
"clear",
|
||||
);
|
||||
await p.keyboard.press("Enter");
|
||||
assert.equal(await p.locator("#jobResults .row").count(), 6);
|
||||
await p.fill("#search", "not-a-real-role");
|
||||
assert.equal(await p.locator("[data-recovery=edit]").count(), 1);
|
||||
await p.locator("[data-recovery=edit]").click();
|
||||
assert.equal(await p.evaluate(() => document.activeElement.id), "search");
|
||||
await p.selectOption("#discoveryState", "loading");
|
||||
await p.keyboard.press("Tab");
|
||||
assert.equal(
|
||||
await p.locator(":focus").getAttribute("data-recovery"),
|
||||
"cancel",
|
||||
);
|
||||
await p.keyboard.press("Enter");
|
||||
assert.equal(await p.locator("#jobResults [aria-busy]").count(), 0);
|
||||
await p.locator("[data-recovery=clear]").click();
|
||||
for (const mode of ["loading", "empty", "error"]) {
|
||||
await p.selectOption("#discoveryState", mode);
|
||||
assert.equal(
|
||||
await p.evaluate(
|
||||
() => document.documentElement.scrollWidth > innerWidth + 2,
|
||||
),
|
||||
false,
|
||||
);
|
||||
await p.screenshot({
|
||||
path: __dirname + `/recovery-captures/${c}-${mode}-${width}.png`,
|
||||
fullPage: true,
|
||||
});
|
||||
}
|
||||
results.push({
|
||||
concept: c,
|
||||
width,
|
||||
status: "PASS",
|
||||
coverage:
|
||||
"keyboard retry, loading completion, empty reset, natural empty, search focus, cancel, three state screenshots",
|
||||
});
|
||||
}
|
||||
assert.equal(errors.length, 0);
|
||||
fs.writeFileSync(
|
||||
__dirname + "/recovery-validation.json",
|
||||
JSON.stringify(
|
||||
{ date: new Date().toISOString(), results, errors },
|
||||
null,
|
||||
2,
|
||||
),
|
||||
);
|
||||
console.log(JSON.stringify({ results, errors }));
|
||||
await b.close();
|
||||
})().catch((e) => {
|
||||
console.error(e);
|
||||
process.exit(1);
|
||||
});
|
||||
@@ -0,0 +1,75 @@
|
||||
{
|
||||
"results": [
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 1440,
|
||||
"lang": "en",
|
||||
"theme": "light",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 390,
|
||||
"lang": "nb",
|
||||
"theme": "dark",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 1440,
|
||||
"lang": "en",
|
||||
"theme": "light",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 390,
|
||||
"lang": "nb",
|
||||
"theme": "dark",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 1440,
|
||||
"lang": "en",
|
||||
"theme": "light",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 390,
|
||||
"lang": "nb",
|
||||
"theme": "dark",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 1440,
|
||||
"lang": "en",
|
||||
"theme": "light",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 390,
|
||||
"lang": "nb",
|
||||
"theme": "dark",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 1440,
|
||||
"lang": "en",
|
||||
"theme": "light",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 390,
|
||||
"lang": "nb",
|
||||
"theme": "dark",
|
||||
"passed": true
|
||||
}
|
||||
],
|
||||
"comparisonImageResponses": 60
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
const assert = require("node:assert/strict");
|
||||
const path = require("node:path");
|
||||
const { writeFileSync } = require("node:fs");
|
||||
const { chromium } = require(
|
||||
require.resolve("playwright", {
|
||||
paths: [path.resolve(__dirname, "../../../../job-tracker-ui")],
|
||||
}),
|
||||
);
|
||||
const base = process.env.JOBJAKT_GALLERY_URL || "http://127.0.0.1:4327";
|
||||
|
||||
async function verify() {
|
||||
const browser = await chromium.launch();
|
||||
const results = [];
|
||||
try {
|
||||
for (const concept of "ABCDE") {
|
||||
for (const width of [1440, 390]) {
|
||||
const lang = width === 390 ? "nb" : "en";
|
||||
const theme = width === 390 ? "dark" : "light";
|
||||
const page = await browser.newPage({
|
||||
viewport: { width, height: 900 },
|
||||
});
|
||||
const errors = [];
|
||||
page.on("pageerror", (error) => errors.push(error.message));
|
||||
await page.goto(
|
||||
base +
|
||||
"/?concept=" +
|
||||
concept +
|
||||
"&screen=discover&lang=" +
|
||||
lang +
|
||||
"&theme=" +
|
||||
theme,
|
||||
);
|
||||
await page.locator("#country").selectOption("Norway");
|
||||
await page.locator("#search").fill("Electrician");
|
||||
await page
|
||||
.locator("#jobResults")
|
||||
.getByRole("link", { name: "Electrician", exact: true })
|
||||
.click();
|
||||
assert.equal(await page.locator("main h1").innerText(), "Electrician");
|
||||
assert.match(
|
||||
await page.locator("main .heading").innerText(),
|
||||
/North Coast Energy · Trondheim, Norway/,
|
||||
);
|
||||
await page.locator('[data-action="save"]').click();
|
||||
await page.locator("#notes").fill("Ask about the field team.");
|
||||
await page.locator('[data-action="saveNotes"]').click();
|
||||
await page.locator('[data-action="cv"]').click();
|
||||
assert.match(
|
||||
await page.locator("main .heading").innerText(),
|
||||
/North Coast Energy/,
|
||||
);
|
||||
await page.locator("#summary").fill("Field electrician CV.");
|
||||
assert.equal(
|
||||
await page.locator("#summaryPreview").innerText(),
|
||||
"Field electrician CV.",
|
||||
);
|
||||
await page.locator("#screen").selectOption("detail");
|
||||
await page.locator('[data-action="apply"]').click();
|
||||
await page.locator('[data-action="follow"]').click();
|
||||
await page
|
||||
.locator("main")
|
||||
.getByRole("link", { name: /North Coast Energy/ })
|
||||
.click();
|
||||
assert.equal(await page.locator("main h1").innerText(), "Electrician");
|
||||
assert.equal(
|
||||
await page.locator("#notes").inputValue(),
|
||||
"Ask about the field team.",
|
||||
);
|
||||
await page.locator("#screen").selectOption("calendar");
|
||||
await page.locator('[data-action="month"]').click();
|
||||
await page
|
||||
.locator(".calendar")
|
||||
.getByRole("link", { name: "North Coast Energy" })
|
||||
.click();
|
||||
assert.equal(await page.locator("main h1").innerText(), "Electrician");
|
||||
await page.locator("#screen").selectOption("applications");
|
||||
await page.locator('[data-action="board"]').click();
|
||||
const column = page
|
||||
.locator(".board section")
|
||||
.filter({
|
||||
has: page.getByRole("heading", {
|
||||
name: lang === "en" ? "Applied" : "Søkt",
|
||||
exact: true,
|
||||
}),
|
||||
});
|
||||
await column
|
||||
.getByRole("link", { name: "Electrician", exact: true })
|
||||
.click();
|
||||
assert.equal(
|
||||
await page.locator("#notes").inputValue(),
|
||||
"Ask about the field team.",
|
||||
);
|
||||
await page.locator("#screen").selectOption("discover");
|
||||
await page.locator("#country").selectOption("Denmark");
|
||||
await page.locator("#search").fill("supervisor");
|
||||
await page
|
||||
.locator("#jobResults")
|
||||
.getByRole("link", { name: "Front-of-house supervisor", exact: true })
|
||||
.click();
|
||||
assert.equal(await page.locator("#notes").inputValue(), "");
|
||||
assert.equal(
|
||||
await page.locator("main h1").innerText(),
|
||||
"Front-of-house supervisor",
|
||||
);
|
||||
await page.locator('[data-action="cv"]').click();
|
||||
assert.match(
|
||||
await page.locator("main .heading").innerText(),
|
||||
/Harbour House/,
|
||||
);
|
||||
assert.notEqual(
|
||||
await page.locator("#summary").inputValue(),
|
||||
"Field electrician CV.",
|
||||
);
|
||||
assert.deepEqual(errors, []);
|
||||
results.push({ concept, width, lang, theme, passed: true });
|
||||
await page.close();
|
||||
}
|
||||
}
|
||||
const page = await browser.newPage();
|
||||
await page.goto(base + "/compare.html");
|
||||
for (const screen of [
|
||||
"home",
|
||||
"cv",
|
||||
"discover",
|
||||
"error",
|
||||
"empty",
|
||||
"loading",
|
||||
]) {
|
||||
await page.locator("#screen").selectOption(screen);
|
||||
for (const link of await page.locator(".pair a").all()) {
|
||||
assert.equal(
|
||||
(
|
||||
await page.request.get(
|
||||
new URL(await link.getAttribute("href"), base).href,
|
||||
)
|
||||
).status(),
|
||||
200,
|
||||
);
|
||||
}
|
||||
}
|
||||
await page.goto(
|
||||
base + "/?concept=unknown&screen=constructor&theme=invalid",
|
||||
);
|
||||
assert.equal(await page.getByRole("heading", { level: 1 }).count(), 1);
|
||||
writeFileSync(
|
||||
path.join(__dirname, "selected-job-validation.json"),
|
||||
JSON.stringify({ results, comparisonImageResponses: 60 }, null, 2) + "\n",
|
||||
);
|
||||
console.log(
|
||||
results.length + " selected-job journeys and 60 comparison images passed",
|
||||
);
|
||||
} finally {
|
||||
await browser.close();
|
||||
}
|
||||
}
|
||||
verify().catch((error) => {
|
||||
console.error(error);
|
||||
process.exitCode = 1;
|
||||
});
|
||||
@@ -0,0 +1,986 @@
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: Calibri, "Segoe UI", sans-serif;
|
||||
background: var(--bg, #f0f3f7);
|
||||
color: var(--ink, #243245);
|
||||
font-size: 16px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
font: inherit;
|
||||
}
|
||||
button,
|
||||
a,
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
outline-offset: 4px;
|
||||
}
|
||||
button:focus-visible,
|
||||
a:focus-visible {
|
||||
outline: 3px solid var(--accent, #17677a);
|
||||
}
|
||||
button,
|
||||
a {
|
||||
cursor: pointer;
|
||||
}
|
||||
button {
|
||||
border: 1px solid var(--line);
|
||||
background: var(--paper);
|
||||
color: var(--ink);
|
||||
border-radius: 7px;
|
||||
padding: 10px 16px;
|
||||
min-height: 44px;
|
||||
}
|
||||
button:hover {
|
||||
background: var(--soft);
|
||||
}
|
||||
button.primary {
|
||||
background: var(--accent);
|
||||
color: white;
|
||||
border-color: var(--accent);
|
||||
}
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
p {
|
||||
margin-top: 0;
|
||||
}
|
||||
h1 {
|
||||
font-size: clamp(30px, 3vw, 48px);
|
||||
line-height: 1.1;
|
||||
letter-spacing: -1.2px;
|
||||
font-weight: 650;
|
||||
}
|
||||
h2 {
|
||||
font-size: 24px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
h3 {
|
||||
font-size: 18px;
|
||||
}
|
||||
p {
|
||||
max-width: 70ch;
|
||||
}
|
||||
small,
|
||||
.muted {
|
||||
color: var(--muted);
|
||||
}
|
||||
.lab {
|
||||
background: #172b3c;
|
||||
color: #fff;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 9px 20px;
|
||||
flex-wrap: wrap;
|
||||
font-size: 13px;
|
||||
position: relative;
|
||||
z-index: 20;
|
||||
}
|
||||
.lab select,
|
||||
.lab button {
|
||||
background: #263f54;
|
||||
color: white;
|
||||
border: 1px solid #658093;
|
||||
padding: 5px 10px;
|
||||
min-height: 34px;
|
||||
}
|
||||
.lab a {
|
||||
margin-right: auto;
|
||||
}
|
||||
.shell {
|
||||
min-height: calc(100vh - 54px);
|
||||
}
|
||||
.brand {
|
||||
font-size: 25px;
|
||||
font-weight: 750;
|
||||
letter-spacing: -1px;
|
||||
}
|
||||
.brand span {
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
background: var(--accent);
|
||||
color: white;
|
||||
border-radius: 50%;
|
||||
margin-right: 8px;
|
||||
font-size: 17px;
|
||||
}
|
||||
.nav {
|
||||
display: flex;
|
||||
gap: 5px;
|
||||
}
|
||||
.nav a {
|
||||
padding: 10px 14px;
|
||||
border-radius: 7px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.nav a.active {
|
||||
background: var(--soft);
|
||||
color: var(--accent);
|
||||
font-weight: 700;
|
||||
}
|
||||
.nav a:hover {
|
||||
background: var(--soft);
|
||||
}
|
||||
.top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
padding: 23px 40px;
|
||||
background: var(--paper);
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
.avatar {
|
||||
background: var(--soft);
|
||||
border-radius: 50%;
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
font-weight: 700;
|
||||
}
|
||||
.content {
|
||||
padding: 38px 44px;
|
||||
max-width: 1600px;
|
||||
margin: auto;
|
||||
}
|
||||
.heading {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 24px;
|
||||
align-items: start;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.heading p {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.split {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
|
||||
gap: 38px;
|
||||
}
|
||||
.wide-split {
|
||||
display: grid;
|
||||
grid-template-columns: 300px minmax(0, 1fr);
|
||||
gap: 35px;
|
||||
}
|
||||
.section {
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
.section-title {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.section-title h2 {
|
||||
margin: 0;
|
||||
}
|
||||
.list {
|
||||
border-top: 1px solid var(--line);
|
||||
}
|
||||
.row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 18px;
|
||||
padding: 18px 0;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
.row .grow {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
.row h3 {
|
||||
margin: 0 0 4px;
|
||||
}
|
||||
.row p {
|
||||
margin: 0;
|
||||
}
|
||||
.badge {
|
||||
display: inline-block;
|
||||
border-radius: 5px;
|
||||
padding: 4px 9px;
|
||||
background: var(--soft);
|
||||
font-size: 13px;
|
||||
color: var(--accent);
|
||||
}
|
||||
.logo {
|
||||
width: 45px;
|
||||
height: 45px;
|
||||
flex-shrink: 0;
|
||||
background: var(--soft);
|
||||
display: grid;
|
||||
place-items: center;
|
||||
font-size: 23px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
.actions {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.metric-strip {
|
||||
display: flex;
|
||||
gap: 36px;
|
||||
padding: 24px 0;
|
||||
border-bottom: 1px solid var(--line);
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.metric strong {
|
||||
font-size: 32px;
|
||||
display: block;
|
||||
line-height: 1.2;
|
||||
}
|
||||
.notice {
|
||||
background: var(--soft);
|
||||
padding: 25px;
|
||||
border-radius: 12px;
|
||||
}
|
||||
.notice h2 {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.agenda .date {
|
||||
width: 52px;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.task {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
padding: 14px 0;
|
||||
align-items: start;
|
||||
}
|
||||
.task input {
|
||||
width: 21px;
|
||||
height: 21px;
|
||||
accent-color: var(--accent);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.task label {
|
||||
flex: 1;
|
||||
}
|
||||
.grid3 {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 20px;
|
||||
}
|
||||
.tile {
|
||||
padding: 24px;
|
||||
background: var(--paper);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 12px;
|
||||
min-width: 0;
|
||||
}
|
||||
.tile p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.tile:hover {
|
||||
border-color: var(--accent);
|
||||
}
|
||||
.field {
|
||||
display: grid;
|
||||
gap: 7px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.field input,
|
||||
.field textarea,
|
||||
.field select {
|
||||
width: 100%;
|
||||
background: var(--paper);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 6px;
|
||||
padding: 11px;
|
||||
color: var(--ink);
|
||||
}
|
||||
.field textarea {
|
||||
min-height: 120px;
|
||||
resize: vertical;
|
||||
}
|
||||
.filters {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
.filters input {
|
||||
flex: 1;
|
||||
min-width: 150px;
|
||||
background: var(--paper);
|
||||
border: 1px solid var(--line);
|
||||
padding: 12px;
|
||||
border-radius: 7px;
|
||||
color: var(--ink);
|
||||
}
|
||||
.document {
|
||||
background: #fff;
|
||||
color: #23323e;
|
||||
box-shadow: 0 8px 35px #162e4714;
|
||||
padding: 48px;
|
||||
min-height: 650px;
|
||||
max-width: 700px;
|
||||
margin: auto;
|
||||
font-family: Georgia, serif;
|
||||
}
|
||||
.document h2 {
|
||||
font-size: 32px;
|
||||
}
|
||||
.document h3 {
|
||||
margin-top: 30px;
|
||||
border-bottom: 1px solid #cad1d7;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
.document p {
|
||||
font-size: 15px;
|
||||
}
|
||||
.document small {
|
||||
color: #4e606e;
|
||||
}
|
||||
.studio {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(300px, 1.4fr) minmax(280px, 1fr);
|
||||
gap: 35px;
|
||||
}
|
||||
.editor {
|
||||
background: var(--paper);
|
||||
padding: 28px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
.editor-tabs {
|
||||
display: flex;
|
||||
gap: 7px;
|
||||
margin-bottom: 22px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.steps {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
.steps a {
|
||||
padding: 8px 14px;
|
||||
border-bottom: 3px solid var(--line);
|
||||
}
|
||||
.steps a.active {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
}
|
||||
.calendar {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, 1fr);
|
||||
gap: 5px;
|
||||
}
|
||||
.day {
|
||||
background: var(--paper);
|
||||
min-height: 90px;
|
||||
padding: 9px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 5px;
|
||||
}
|
||||
.day strong {
|
||||
font-size: 13px;
|
||||
}
|
||||
.day p {
|
||||
font-size: 12px;
|
||||
background: var(--soft);
|
||||
padding: 5px;
|
||||
margin: 7px 0;
|
||||
color: var(--accent);
|
||||
}
|
||||
.mail-layout {
|
||||
display: grid;
|
||||
grid-template-columns: 320px 1fr;
|
||||
gap: 30px;
|
||||
}
|
||||
.mail {
|
||||
padding: 18px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
.mail.active {
|
||||
background: var(--soft);
|
||||
}
|
||||
.mail h3 {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.mail p {
|
||||
font-size: 14px;
|
||||
margin: 0;
|
||||
}
|
||||
.board {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 22px;
|
||||
}
|
||||
.board article {
|
||||
background: var(--paper);
|
||||
padding: 20px;
|
||||
margin-bottom: 12px;
|
||||
border-radius: 10px;
|
||||
border-left: 3px solid var(--accent);
|
||||
}
|
||||
.map {
|
||||
background: var(--soft);
|
||||
padding: 30px;
|
||||
border-radius: 15px;
|
||||
position: relative;
|
||||
min-height: 320px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.map svg {
|
||||
width: 100%;
|
||||
height: 260px;
|
||||
}
|
||||
.map p {
|
||||
position: absolute;
|
||||
bottom: 10px;
|
||||
left: 20px;
|
||||
font-size: 12px;
|
||||
}
|
||||
.toast {
|
||||
position: fixed;
|
||||
bottom: 25px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
background: var(--ink);
|
||||
color: var(--paper);
|
||||
padding: 14px 22px;
|
||||
border-radius: 10px;
|
||||
z-index: 100;
|
||||
max-width: 90vw;
|
||||
}
|
||||
.mobile-more {
|
||||
display: none;
|
||||
}
|
||||
.gallery {
|
||||
max-width: 1300px;
|
||||
margin: auto;
|
||||
padding: 65px 35px;
|
||||
}
|
||||
.gallery h1 {
|
||||
font-size: 60px;
|
||||
max-width: 800px;
|
||||
}
|
||||
.gallery-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 28px;
|
||||
margin-top: 40px;
|
||||
}
|
||||
.concept-card {
|
||||
background: white;
|
||||
border-radius: 16px;
|
||||
overflow: hidden;
|
||||
border: 1px solid #d6e0e7;
|
||||
}
|
||||
.concept-card .description {
|
||||
padding: 28px;
|
||||
}
|
||||
.concept-card h2 {
|
||||
margin: 0 0 10px;
|
||||
}
|
||||
.concept-card .mini {
|
||||
height: 240px;
|
||||
background: var(--soft);
|
||||
padding: 25px;
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.mini div {
|
||||
border-radius: 5px;
|
||||
background: var(--paper);
|
||||
padding: 10px;
|
||||
font-size: 12px;
|
||||
}
|
||||
.mini strong {
|
||||
display: block;
|
||||
font-size: 18px;
|
||||
}
|
||||
.footnote {
|
||||
padding: 24px;
|
||||
text-align: center;
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
.A {
|
||||
--bg: #f6f8fa;
|
||||
--paper: #fff;
|
||||
--ink: #25303e;
|
||||
--muted: #5c6979;
|
||||
--line: #d9e0e7;
|
||||
--accent: #245a91;
|
||||
--soft: #e8f0f8;
|
||||
}
|
||||
.B {
|
||||
--bg: #f7faf6;
|
||||
--paper: #fff;
|
||||
--ink: #253f35;
|
||||
--muted: #53675b;
|
||||
--line: #d5e1d5;
|
||||
--accent: #28734f;
|
||||
--soft: #e4f1df;
|
||||
font-family: "Trebuchet MS", sans-serif;
|
||||
}
|
||||
.C {
|
||||
--bg: #ebeef4;
|
||||
--paper: #fff;
|
||||
--ink: #353651;
|
||||
--muted: #66677c;
|
||||
--line: #d9dbea;
|
||||
--accent: #6552a5;
|
||||
--soft: #efebfa;
|
||||
}
|
||||
.D {
|
||||
--bg: #f5f6f8;
|
||||
--paper: #fff;
|
||||
--ink: #172c43;
|
||||
--muted: #536b7e;
|
||||
--line: #d4dee8;
|
||||
--accent: #145f75;
|
||||
--soft: #e5eef2;
|
||||
font-family: Optima, "Segoe UI", sans-serif;
|
||||
}
|
||||
.E {
|
||||
--bg: #f8f5f9;
|
||||
--paper: #fff;
|
||||
--ink: #42374d;
|
||||
--muted: #73657f;
|
||||
--line: #e2d9e7;
|
||||
--accent: #974e71;
|
||||
--soft: #f4e8ee;
|
||||
}
|
||||
.dark {
|
||||
--bg: #19232d;
|
||||
--paper: #22303c;
|
||||
--ink: #eef3f7;
|
||||
--muted: #b4c4d0;
|
||||
--line: #435565;
|
||||
--accent: #8abdf4;
|
||||
--soft: #2a4055;
|
||||
}
|
||||
.dark.B {
|
||||
--bg: #192820;
|
||||
--paper: #23382b;
|
||||
--ink: #f0f5ed;
|
||||
--muted: #b9cdbb;
|
||||
--line: #455c49;
|
||||
--accent: #9bd2a0;
|
||||
--soft: #304b34;
|
||||
}
|
||||
.dark.C {
|
||||
--bg: #242333;
|
||||
--paper: #302e44;
|
||||
--ink: #f0eef8;
|
||||
--muted: #c2bcd6;
|
||||
--line: #514c68;
|
||||
--accent: #c3b1f3;
|
||||
--soft: #423957;
|
||||
}
|
||||
.dark.D {
|
||||
--bg: #152735;
|
||||
--paper: #203746;
|
||||
--ink: #eef7fa;
|
||||
--muted: #b2cbd6;
|
||||
--line: #405d6e;
|
||||
--accent: #8fd1e0;
|
||||
--soft: #2a485b;
|
||||
}
|
||||
.dark.E {
|
||||
--bg: #2c2230;
|
||||
--paper: #3b2d40;
|
||||
--ink: #f7eef7;
|
||||
--muted: #d1bdd1;
|
||||
--line: #634c67;
|
||||
--accent: #edabc9;
|
||||
--soft: #533b4d;
|
||||
}
|
||||
.dark button.primary {
|
||||
color: #162635;
|
||||
}
|
||||
.A .top {
|
||||
padding: 16px 35px;
|
||||
}
|
||||
.A h1 {
|
||||
font-size: 36px;
|
||||
}
|
||||
.A .content {
|
||||
padding-top: 30px;
|
||||
}
|
||||
.A .row {
|
||||
padding: 13px 0;
|
||||
}
|
||||
.B .top {
|
||||
border: 0;
|
||||
background: var(--bg);
|
||||
}
|
||||
.B .content {
|
||||
max-width: 1250px;
|
||||
}
|
||||
.B .nav {
|
||||
justify-content: center;
|
||||
background: var(--paper);
|
||||
padding: 8px;
|
||||
border-radius: 30px;
|
||||
}
|
||||
.B h1 {
|
||||
font-size: 48px;
|
||||
font-weight: 700;
|
||||
letter-spacing: -1.8px;
|
||||
}
|
||||
.B .welcome {
|
||||
background: var(--soft);
|
||||
border-radius: 30px;
|
||||
padding: 35px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.B .notice {
|
||||
border-radius: 25px;
|
||||
}
|
||||
.C .shell {
|
||||
display: grid;
|
||||
grid-template-columns: 240px 1fr;
|
||||
}
|
||||
.C .top {
|
||||
grid-column: 1;
|
||||
grid-row: 1;
|
||||
flex-direction: column;
|
||||
justify-content: start;
|
||||
align-items: stretch;
|
||||
padding: 30px 20px;
|
||||
min-height: calc(100vh - 54px);
|
||||
}
|
||||
.C .nav {
|
||||
flex-direction: column;
|
||||
margin-top: 25px;
|
||||
white-space: normal;
|
||||
}
|
||||
.C .content {
|
||||
grid-column: 2;
|
||||
grid-row: 1;
|
||||
width: 100%;
|
||||
padding: 35px;
|
||||
}
|
||||
.C .studio {
|
||||
grid-template-columns: 1.4fr 1fr;
|
||||
}
|
||||
.D .top {
|
||||
background: var(--ink);
|
||||
color: var(--paper);
|
||||
padding: 22px 45px;
|
||||
}
|
||||
.D.dark .top {
|
||||
background: #10212d;
|
||||
color: #eef7fa;
|
||||
}
|
||||
.D .nav a.active {
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
border-bottom: 2px solid currentColor;
|
||||
border-radius: 0;
|
||||
}
|
||||
.D .hero-title {
|
||||
font-family: Georgia, serif;
|
||||
font-size: 60px;
|
||||
font-weight: 400;
|
||||
max-width: 800px;
|
||||
line-height: 1.06;
|
||||
}
|
||||
.D .content {
|
||||
max-width: 1400px;
|
||||
}
|
||||
.D .feature {
|
||||
background: var(--accent);
|
||||
color: white;
|
||||
padding: 36px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
.D.dark .feature {
|
||||
color: #162635;
|
||||
}
|
||||
.E .top {
|
||||
padding: 20px 35px;
|
||||
}
|
||||
.E .nav {
|
||||
display: none;
|
||||
}
|
||||
.E .content {
|
||||
padding-bottom: 100px;
|
||||
}
|
||||
.E .journey-nav {
|
||||
display: flex;
|
||||
position: fixed;
|
||||
bottom: 22px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
background: var(--ink);
|
||||
color: var(--paper);
|
||||
padding: 8px;
|
||||
border-radius: 16px;
|
||||
z-index: 30;
|
||||
box-shadow: 0 10px 25px #0002;
|
||||
}
|
||||
.E .journey-nav a {
|
||||
padding: 12px 20px;
|
||||
border-radius: 9px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.E .journey-nav a.active {
|
||||
background: var(--paper);
|
||||
color: var(--ink);
|
||||
}
|
||||
.E .task-path {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 30px;
|
||||
}
|
||||
.E .task-path .tile {
|
||||
border: 0;
|
||||
border-top: 5px solid var(--accent);
|
||||
border-radius: 0 0 18px 18px;
|
||||
}
|
||||
.journey-nav {
|
||||
display: none;
|
||||
}
|
||||
.phone .shell {
|
||||
max-width: 430px;
|
||||
margin: auto;
|
||||
box-shadow: 0 0 35px #0002;
|
||||
}
|
||||
.phone .content {
|
||||
padding: 22px;
|
||||
}
|
||||
.phone .split,
|
||||
.phone .wide-split,
|
||||
.phone .studio,
|
||||
.phone .mail-layout,
|
||||
.phone .task-path {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.phone .grid3,
|
||||
.phone .board {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.phone .top {
|
||||
padding: 15px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.phone .nav {
|
||||
overflow: auto;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
.phone .heading {
|
||||
display: block;
|
||||
}
|
||||
.phone .heading .actions {
|
||||
margin-top: 18px;
|
||||
}
|
||||
.phone .C .shell {
|
||||
display: block;
|
||||
}
|
||||
.phone .document {
|
||||
padding: 25px;
|
||||
min-height: 500px;
|
||||
}
|
||||
.phone .calendar .day {
|
||||
min-height: 65px;
|
||||
padding: 4px;
|
||||
}
|
||||
.phone .calendar .day p {
|
||||
font-size: 10px;
|
||||
padding: 2px;
|
||||
}
|
||||
.phone .metric-strip {
|
||||
gap: 20px;
|
||||
}
|
||||
.phone .row {
|
||||
gap: 10px;
|
||||
}
|
||||
.phone .row button {
|
||||
padding: 8px;
|
||||
}
|
||||
.phone h1 {
|
||||
font-size: 32px;
|
||||
}
|
||||
.phone .hero-title {
|
||||
font-size: 40px;
|
||||
}
|
||||
.phone .task-path {
|
||||
display: block;
|
||||
}
|
||||
.phone .journey-nav {
|
||||
max-width: 420px;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
justify-content: space-around;
|
||||
border-radius: 0;
|
||||
}
|
||||
.phone .journey-nav a {
|
||||
padding: 12px 9px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.phone.C .shell {
|
||||
display: block;
|
||||
}
|
||||
.phone.C .top {
|
||||
min-height: auto;
|
||||
}
|
||||
.phone.C .nav {
|
||||
flex-direction: row;
|
||||
margin-top: 0;
|
||||
}
|
||||
.phone .board {
|
||||
display: block;
|
||||
}
|
||||
.phone .board > section {
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
@media (max-width: 1000px) {
|
||||
.content {
|
||||
padding: 24px 20px;
|
||||
}
|
||||
.top {
|
||||
padding: 18px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.nav {
|
||||
overflow: auto;
|
||||
max-width: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
.split,
|
||||
.wide-split,
|
||||
.studio,
|
||||
.mail-layout,
|
||||
.E .task-path {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.grid3,
|
||||
.board {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.heading {
|
||||
display: block;
|
||||
}
|
||||
.heading .actions {
|
||||
margin-top: 15px;
|
||||
}
|
||||
.C .shell {
|
||||
display: block;
|
||||
}
|
||||
.C .top {
|
||||
min-height: auto;
|
||||
}
|
||||
.C .nav {
|
||||
flex-direction: row;
|
||||
margin-top: 0;
|
||||
}
|
||||
.C .content {
|
||||
padding: 24px 20px;
|
||||
}
|
||||
.D .top {
|
||||
padding: 18px;
|
||||
}
|
||||
.D .hero-title {
|
||||
font-size: 40px;
|
||||
}
|
||||
.E .journey-nav {
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
justify-content: space-around;
|
||||
border-radius: 0;
|
||||
}
|
||||
.E .journey-nav a {
|
||||
padding: 12px 8px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.gallery {
|
||||
padding: 35px 20px;
|
||||
}
|
||||
.gallery h1 {
|
||||
font-size: 40px;
|
||||
}
|
||||
.gallery-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.document {
|
||||
padding: 25px;
|
||||
}
|
||||
.calendar .day {
|
||||
min-height: 65px;
|
||||
padding: 4px;
|
||||
}
|
||||
.calendar .day p {
|
||||
font-size: 10px;
|
||||
padding: 2px;
|
||||
}
|
||||
.metric-strip {
|
||||
gap: 22px;
|
||||
}
|
||||
.row {
|
||||
gap: 10px;
|
||||
}
|
||||
.row button {
|
||||
padding: 8px;
|
||||
}
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
* {
|
||||
scroll-behavior: auto !important;
|
||||
transition: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
.phone.C .studio {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
@media (max-width: 1000px) {
|
||||
.C .studio {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
#discoveryStatus:focus {
|
||||
outline: 3px solid var(--accent);
|
||||
outline-offset: 5px;
|
||||
}
|
||||
|
||||
.concept-shot {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
aspect-ratio: 1.6;
|
||||
object-fit: cover;
|
||||
object-position: top;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.avatar {
|
||||
color: var(--ink);
|
||||
}
|
||||
@@ -0,0 +1,725 @@
|
||||
{
|
||||
"results": [
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 1440,
|
||||
"screen": "home",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 1440,
|
||||
"screen": "discover",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 1440,
|
||||
"screen": "applications",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 1440,
|
||||
"screen": "detail",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 1440,
|
||||
"screen": "profile",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 1440,
|
||||
"screen": "cv",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 1440,
|
||||
"screen": "letter",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 1440,
|
||||
"screen": "calendar",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 1440,
|
||||
"screen": "mail",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 1440,
|
||||
"screen": "settings",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 1440,
|
||||
"screen": "admin",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 1440,
|
||||
"screen": "onboarding",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 390,
|
||||
"screen": "home",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 390,
|
||||
"screen": "discover",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 390,
|
||||
"screen": "applications",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 390,
|
||||
"screen": "detail",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 390,
|
||||
"screen": "profile",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 390,
|
||||
"screen": "cv",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 390,
|
||||
"screen": "letter",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 390,
|
||||
"screen": "calendar",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 390,
|
||||
"screen": "mail",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 390,
|
||||
"screen": "settings",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 390,
|
||||
"screen": "admin",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "A",
|
||||
"width": 390,
|
||||
"screen": "onboarding",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 1440,
|
||||
"screen": "home",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 1440,
|
||||
"screen": "discover",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 1440,
|
||||
"screen": "applications",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 1440,
|
||||
"screen": "detail",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 1440,
|
||||
"screen": "profile",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 1440,
|
||||
"screen": "cv",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 1440,
|
||||
"screen": "letter",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 1440,
|
||||
"screen": "calendar",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 1440,
|
||||
"screen": "mail",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 1440,
|
||||
"screen": "settings",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 1440,
|
||||
"screen": "admin",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 1440,
|
||||
"screen": "onboarding",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 390,
|
||||
"screen": "home",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 390,
|
||||
"screen": "discover",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 390,
|
||||
"screen": "applications",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 390,
|
||||
"screen": "detail",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 390,
|
||||
"screen": "profile",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 390,
|
||||
"screen": "cv",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 390,
|
||||
"screen": "letter",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 390,
|
||||
"screen": "calendar",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 390,
|
||||
"screen": "mail",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 390,
|
||||
"screen": "settings",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 390,
|
||||
"screen": "admin",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "B",
|
||||
"width": 390,
|
||||
"screen": "onboarding",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 1440,
|
||||
"screen": "home",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 1440,
|
||||
"screen": "discover",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 1440,
|
||||
"screen": "applications",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 1440,
|
||||
"screen": "detail",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 1440,
|
||||
"screen": "profile",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 1440,
|
||||
"screen": "cv",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 1440,
|
||||
"screen": "letter",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 1440,
|
||||
"screen": "calendar",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 1440,
|
||||
"screen": "mail",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 1440,
|
||||
"screen": "settings",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 1440,
|
||||
"screen": "admin",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 1440,
|
||||
"screen": "onboarding",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 390,
|
||||
"screen": "home",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 390,
|
||||
"screen": "discover",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 390,
|
||||
"screen": "applications",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 390,
|
||||
"screen": "detail",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 390,
|
||||
"screen": "profile",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 390,
|
||||
"screen": "cv",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 390,
|
||||
"screen": "letter",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 390,
|
||||
"screen": "calendar",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 390,
|
||||
"screen": "mail",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 390,
|
||||
"screen": "settings",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 390,
|
||||
"screen": "admin",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "C",
|
||||
"width": 390,
|
||||
"screen": "onboarding",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 1440,
|
||||
"screen": "home",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 1440,
|
||||
"screen": "discover",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 1440,
|
||||
"screen": "applications",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 1440,
|
||||
"screen": "detail",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 1440,
|
||||
"screen": "profile",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 1440,
|
||||
"screen": "cv",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 1440,
|
||||
"screen": "letter",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 1440,
|
||||
"screen": "calendar",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 1440,
|
||||
"screen": "mail",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 1440,
|
||||
"screen": "settings",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 1440,
|
||||
"screen": "admin",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 1440,
|
||||
"screen": "onboarding",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 390,
|
||||
"screen": "home",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 390,
|
||||
"screen": "discover",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 390,
|
||||
"screen": "applications",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 390,
|
||||
"screen": "detail",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 390,
|
||||
"screen": "profile",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 390,
|
||||
"screen": "cv",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 390,
|
||||
"screen": "letter",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 390,
|
||||
"screen": "calendar",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 390,
|
||||
"screen": "mail",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 390,
|
||||
"screen": "settings",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 390,
|
||||
"screen": "admin",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "D",
|
||||
"width": 390,
|
||||
"screen": "onboarding",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 1440,
|
||||
"screen": "home",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 1440,
|
||||
"screen": "discover",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 1440,
|
||||
"screen": "applications",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 1440,
|
||||
"screen": "detail",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 1440,
|
||||
"screen": "profile",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 1440,
|
||||
"screen": "cv",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 1440,
|
||||
"screen": "letter",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 1440,
|
||||
"screen": "calendar",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 1440,
|
||||
"screen": "mail",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 1440,
|
||||
"screen": "settings",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 1440,
|
||||
"screen": "admin",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 1440,
|
||||
"screen": "onboarding",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 390,
|
||||
"screen": "home",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 390,
|
||||
"screen": "discover",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 390,
|
||||
"screen": "applications",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 390,
|
||||
"screen": "detail",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 390,
|
||||
"screen": "profile",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 390,
|
||||
"screen": "cv",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 390,
|
||||
"screen": "letter",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 390,
|
||||
"screen": "calendar",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 390,
|
||||
"screen": "mail",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 390,
|
||||
"screen": "settings",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 390,
|
||||
"screen": "admin",
|
||||
"overflow": false
|
||||
},
|
||||
{
|
||||
"concept": "E",
|
||||
"width": 390,
|
||||
"screen": "onboarding",
|
||||
"overflow": false
|
||||
}
|
||||
],
|
||||
"errors": []
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
const { chromium } = require(
|
||||
require.resolve("playwright", {
|
||||
paths: [require("path").resolve(__dirname, "../../../../job-tracker-ui")],
|
||||
}),
|
||||
);
|
||||
const fs = require("fs");
|
||||
(async () => {
|
||||
const browser = await chromium.launch({ headless: true });
|
||||
const page = await browser.newPage();
|
||||
const errors = [];
|
||||
page.on("pageerror", (e) => errors.push(e.message));
|
||||
fs.mkdirSync(__dirname + "/captures", { recursive: true });
|
||||
let results = [];
|
||||
for (const concept of "ABCDE")
|
||||
for (const width of [1440, 390])
|
||||
for (const screen of [
|
||||
"home",
|
||||
"discover",
|
||||
"applications",
|
||||
"detail",
|
||||
"profile",
|
||||
"cv",
|
||||
"letter",
|
||||
"calendar",
|
||||
"mail",
|
||||
"settings",
|
||||
"admin",
|
||||
"onboarding",
|
||||
]) {
|
||||
await page.setViewportSize({ width, height: 1000 });
|
||||
await page.goto(
|
||||
`${process.env.JOBJAKT_GALLERY_URL || "http://127.0.0.1:4327"}/?concept=${concept}&screen=${screen}&lang=${width === 390 ? "nb" : "en"}&theme=${width === 390 ? "dark" : "light"}`,
|
||||
);
|
||||
const overflow = await page.evaluate(
|
||||
() => document.documentElement.scrollWidth > innerWidth + 2,
|
||||
);
|
||||
results.push({ concept, width, screen, overflow });
|
||||
if (["home", "cv", "discover"].includes(screen))
|
||||
await page.screenshot({
|
||||
path: __dirname + `/captures/${concept}-${screen}-${width}.png`,
|
||||
fullPage: true,
|
||||
});
|
||||
}
|
||||
fs.writeFileSync(
|
||||
__dirname + "/validation.json",
|
||||
JSON.stringify({ results, errors }, null, 2),
|
||||
);
|
||||
console.log(
|
||||
JSON.stringify({
|
||||
pages: results.length,
|
||||
errors,
|
||||
overflow: results.filter((r) => r.overflow),
|
||||
}),
|
||||
);
|
||||
await browser.close();
|
||||
if (errors.length || results.some((r) => r.overflow)) process.exitCode = 1;
|
||||
})().catch((e) => {
|
||||
console.error(e);
|
||||
process.exit(1);
|
||||
});
|
||||