Redesign the tracker's UI
Test and publish / test (push) Successful in 51s
Test and publish / publish (push) Successful in 54s

An app shell with a sidebar (a top bar on phones) replaces the per-page
headers and back links. A token-based design system in styles.css, with a
dark set under prefers-color-scheme, replaces the paper palette and the
cv-btn/ja-input classes ported from the main site.

- Applications: header with counts and the follow-up total, the add form
  behind a "New application" button, coloured pipeline tiles, a
  "Needs follow-up" filter, sort indicators, icon row actions, compact
  phone cards. Quick reference sits beside the table on wide screens.
- Leads: profile and sources side by side, underline tabs, score rings,
  source health dots.
- Settings: status cards for capture and email.

No API or store changes. jobs-shared.css and the unused Creato font
are removed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01CiMoE29eGkJtia4hCzSKzT
This commit is contained in:
Adam French
2026-10-14 19:31:17 +00:00
co-authored by Claude Opus 5.5
parent ef38679a45
commit f5b722d100
12 changed files with 2281 additions and 1261 deletions
+83 -58
View File
@@ -5,16 +5,16 @@
* row appears in the parent's table without the two having to talk.
*
* Like JobReferences.vue it reports through the parent's single error banner:
* `fail` carries the error, `ok` says a create succeeded.
*
* Its root sits inside the parent's `.ja-root`, which jobs-shared.css relies on.
* `fail` carries the error, `ok` says a create succeeded. `close` asks the
* parent to fold the form away, which it offers only when `closable`.
*/
import { ref } from "vue";
import { useJobApplicationsStore } from "@/stores/jobApplications";
import { STATUS_OPTIONS } from "./jobStatus";
import "./jobs-shared.css";
import Icon from "@/components/Icon.vue";
const emit = defineEmits(["fail", "ok"]);
defineProps({ closable: { type: Boolean, default: false } });
const emit = defineEmits(["fail", "ok", "close"]);
const store = useJobApplicationsStore();
@@ -62,68 +62,93 @@ async function createApplication() {
</script>
<template>
<form class="ja-form" @submit.prevent="createApplication">
<div class="ja-form-row">
<input
v-model="form.jobTitle"
class="ja-input"
placeholder="Job title *"
required
/>
<input
v-model="form.company"
class="ja-input"
placeholder="Company *"
required
/>
<select v-model="form.status" class="ja-input ja-select">
<option v-for="s in STATUS_OPTIONS" :key="s.value" :value="s.value">
{{ s.label }}
</option>
</select>
<form class="card" @submit.prevent="createApplication">
<div class="card-header">
<h2 class="card-title"><Icon name="plus" /> New application</h2>
<button
v-if="closable"
type="button"
class="btn btn-ghost btn-sm btn-icon"
title="Close"
aria-label="Close"
@click="emit('close')"
>
<Icon name="x" />
</button>
</div>
<div class="ja-form-row">
<input
v-model="form.location"
class="ja-input"
placeholder="Location"
/>
<input v-model="form.url" class="ja-input" placeholder="URL" />
<input
v-model="form.appliedAt"
class="ja-input"
type="date"
title="Applied date"
/>
</div>
<div class="ja-form-row">
<textarea
v-model="form.notes"
class="ja-input ja-textarea"
placeholder="Notes"
/>
<button type="submit" class="cv-btn cv-btn-primary">Add</button>
<div class="card-body af-grid">
<label class="field af-span-2">
<span>Job title *</span>
<input v-model="form.jobTitle" class="input" required />
</label>
<label class="field af-span-2">
<span>Company *</span>
<input v-model="form.company" class="input" required />
</label>
<label class="field">
<span>Status</span>
<select v-model="form.status" class="input">
<option v-for="s in STATUS_OPTIONS" :key="s.value" :value="s.value">
{{ s.label }}
</option>
</select>
</label>
<label class="field">
<span>Applied</span>
<input v-model="form.appliedAt" class="input" type="date" />
</label>
<label class="field af-span-2">
<span>Location</span>
<input v-model="form.location" class="input" placeholder="e.g. London, hybrid" />
</label>
<label class="field af-span-4">
<span>Posting URL</span>
<input v-model="form.url" class="input" placeholder="https://" />
</label>
<label class="field af-span-6">
<span>Notes</span>
<textarea v-model="form.notes" class="input" rows="2" />
</label>
<div class="af-actions af-span-6">
<button v-if="closable" type="button" class="btn" @click="emit('close')">
Cancel
</button>
<button type="submit" class="btn btn-primary">Add application</button>
</div>
</div>
</form>
</template>
<style scoped>
/* Inputs are styled by jobs-shared.css; buttons are .cv-btn from CVLayout.vue. */
.ja-form {
display: flex;
flex-direction: column;
gap: 0.5rem;
margin-bottom: 1.5rem;
.af-grid {
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 0.9rem 1rem;
}
.ja-form-row {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
.af-span-2 {
grid-column: span 2;
}
.af-span-4 {
grid-column: span 4;
}
.af-span-6 {
grid-column: 1 / -1;
}
.ja-textarea {
resize: vertical;
min-height: 2.4rem;
.af-actions {
display: flex;
justify-content: flex-end;
gap: 0.5rem;
}
@media (max-width: 720px) {
.af-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.af-span-2,
.af-span-4 {
grid-column: 1 / -1;
}
}
</style>