Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
5778d06
fix: Alt+C closes a date field's calendar again
fmpallini Nov 8, 2026
4fde4db
feat(help): Editor tab lists key tables first, prose sections last
fmpallini Nov 8, 2026
9147678
fix(editor): plain-text paste mid-list-item no longer splits the item…
fmpallini Nov 11, 2026
269a1af
chore: bump version to 3.6.4
fmpallini Nov 11, 2026
73e9e8b
fix(editor): the space typed after a bold run or @-mention is no long…
fmpallini Nov 12, 2026
508dc0a
fix(a11y): axe scans every module and overlay in both themes; fix wha…
fmpallini Nov 12, 2026
e39a99b
fix(images): pictures added after a browser copy drifted survive the …
fmpallini Nov 12, 2026
17f7bbc
fix(a11y): task due pills are solid, AA in every palette and theme
fmpallini Nov 12, 2026
aa496e6
fix(a11y): AA text and 3:1 icons in every palette x theme
fmpallini Nov 12, 2026
3d17b8a
fix(a11y): tag chips keep one text color per theme
fmpallini Nov 12, 2026
ad0caba
fix(risks): the Exposure header's sort arrow is no longer clipped
fmpallini Nov 12, 2026
b01b0d2
feat(palettes): High contrast and Colorblind-safe replace Blueprint a…
fmpallini Nov 12, 2026
ba4679c
fix(risks): the Exposure column sizes itself so its header always rea…
fmpallini Nov 12, 2026
dc4ed6c
chore(deps): bump Playwright 1.65, jsdom 31, vitest 5.1, typescript-e…
fmpallini Nov 12, 2026
05193fb
feat: double-click a column's blank space to add a task, right-click …
fmpallini Nov 12, 2026
cedef24
chore: bump version to 3.7.0
fmpallini Nov 12, 2026
689392e
chore: keep release at 3.6.4 (never tagged), fold all changes into it…
fmpallini Nov 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ All notable changes to Team Tracker are documented here, written for people usin

See [CLAUDE.md](CLAUDE.md#changelog) for how and when to update this file.

## [3.6.4] - 2026-11-11

### Added
- Double-click the blank space of a task-board column to add a task there; right-click a team in the sidebar to edit or delete it.
- High contrast and Colorblind-safe palettes replace Blueprint and Desert (a saved Blueprint becomes Signal, Desert becomes Field Ledger).

### Changed
- Every palette and theme now has readable text and icons (AA contrast), and more controls have screen-reader names.
- The Editor tab of Help lists the key tables first and the prose sections last.

### Fixed
- Pasting plain text mid-list-item no longer splits the item; a space after bold text or an @-mention is no longer doubled; Alt+C closes date calendars again.
- Pictures added after a failed password change are kept when the file is next opened.

## [3.6.3] - 2026-11-07

### Added
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ your machine. Team Tracker doesn't:
Chromium browsers (Chrome, Edge, Brave): phones and tablets get a notice
instead of the app, since mobile browsers lack the File System Access API
the open/save flow depends on.
- 🎨 **Yours to tune** — 12 color palettes, light/dark/system theme, 7 font
stacks, adjustable font size, and pt-BR/en-US locales, all in Settings.
- 🎨 **Yours to tune** — 12 color palettes (high-contrast and colorblind-safe
among them), light/dark/system theme, 7 font stacks, adjustable font size,
and pt-BR/en-US locales, all in Settings.

## Getting started

Expand Down
116 changes: 107 additions & 9 deletions e2e/a11y.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// e2e/a11y.spec.ts — automated accessibility scan (axe-core) of the three
// surfaces a keyboard-driven app most needs to keep clean: the start screen,
// the main shell with a document open, and an open modal dialog. Nothing else
// in the suite checks ARIA roles/names, focus semantics, or contrast.
// e2e/a11y.spec.ts — automated accessibility scan (axe-core): the start
// screen, the main shell, every module with real content in it, and the
// overlays a keyboard user lives in (Settings, fast switch, Help, the card
// editor). Nothing else in the suite checks ARIA roles/names, focus
// semantics, or contrast.
//
// Served over http://localhost (secure context) via the OPFS picker shim, the
// same setup fs-api.spec.ts uses, so the real create → shell flow runs.
Expand All @@ -10,10 +11,40 @@ import AxeBuilder from '@axe-core/playwright'
import { E2E_BASE_URL } from '../playwright.config'
import { installOpfsPickerShim } from './opfs-shim'
import { createEncryptedDoc, blockUpdateCheck } from './helpers'
import { buildDoc, openDoc, TEAM_ID } from './layout-fixtures'
import type { Doc, ModuleRef, PaletteId } from '../src/core/types'

const TODAY = new Date().toLocaleDateString('en-CA')

type Theme = 'light' | 'dark'
const THEMES: Theme[] = ['light', 'dark']

/** layout-fixtures' busy document (some tasks due today, the rest overdue), plus the note content its builder leaves empty. */
function contentDoc(ref: ModuleRef, theme: Theme = 'light', palette: PaletteId = 'ledger', splitRight?: ModuleRef): Doc {
const doc = buildDoc('M', ref, { stakeholderRoots: 3, milestones: 'spread', dueToday: true, ...(splitRight ? { splitRight } : {}) })
doc.prefs.theme = theme
doc.prefs.palette = palette
const team = doc.teams.find((t) => t.id === TEAM_ID)!
const note = '# Weekly sync\n\n- **Decision**: ship on Friday\n- Follow up with [link](https://example.com)\n\n> Quote\n\n```\ncode()\n```'
team.dailyNotes[TODAY] = note
team.generalNotes = note
team.stakeholders[0]!.notes = note
team.risks[0]!.followup = note
team.milestones[0]!.followup = note
return doc
}

// WCAG 2 A/AA is the bar; scope each scan to the surface under test.
const scan = (page: Page, selector: string) =>
new AxeBuilder({ page }).withTags(['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']).include(selector).analyze()
const scan = (page: Page, selector: string, skipRules: string[] = []) =>
new AxeBuilder({ page }).withTags(['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']).include(selector).disableRules(skipRules).analyze()

/** One line per offending node (`rule: selector — html`), so a failure reads at a glance instead of as axe's raw dump. */
const violations = (results: Awaited<ReturnType<typeof scan>>): string[] =>
results.violations.flatMap((v) => v.nodes.map((n) => {
const c = n.any[0]?.data as { fgColor?: string; bgColor?: string; contrastRatio?: number } | null | undefined
const ratio = c?.contrastRatio ? ` [${c.fgColor} on ${c.bgColor} = ${c.contrastRatio}]` : ''
return `${v.id}: ${n.target.join(' ')}${ratio} — ${n.html.slice(0, 140)}`
}))

test.describe('accessibility (axe-core)', () => {
test('start screen has no WCAG A/AA violations', async ({ page }) => {
Expand All @@ -23,7 +54,7 @@ test.describe('accessibility (axe-core)', () => {
await expect(page.locator('.tt-start-screen')).toBeVisible()

const results = await scan(page, '.tt-start-screen')
expect(results.violations).toEqual([])
expect(violations(results)).toEqual([])
})

test('main shell (document open, first team created) has no WCAG A/AA violations', async ({ page }) => {
Expand All @@ -39,7 +70,7 @@ test.describe('accessibility (axe-core)', () => {
await teamDialog.waitFor({ state: 'hidden' })

const results = await scan(page, '.tt-shell')
expect(results.violations).toEqual([])
expect(violations(results)).toEqual([])
})

test('the Settings modal has no WCAG A/AA violations', async ({ page }) => {
Expand All @@ -53,6 +84,73 @@ test.describe('accessibility (axe-core)', () => {
await expect(dialog).toBeVisible()

const results = await scan(page, '.tt-modal-overlay')
expect(results.violations).toEqual([])
expect(violations(results)).toEqual([])
})

const MODULES: Array<[string, ModuleRef]> = [
['daily notes', { kind: 'daily', date: TODAY }],
['general notes', { kind: 'general' }],
['stakeholders', { kind: 'stakeholders' }],
['members (empty)', { kind: 'members' }],
['person notes', { kind: 'person', personId: 's0', group: 'stakeholders' }],
['tasks (kanban)', { kind: 'actions' }],
['milestones', { kind: 'milestones' }],
['risks', { kind: 'risks' }],
]
// Both themes: contrast is a per-theme property, and the default palette is what most users run.
for (const theme of THEMES) {
for (const [name, ref] of MODULES) {
test(`the ${name} module has no WCAG A/AA violations (${theme})`, async ({ page }) => {
await openDoc(page, contentDoc(ref, theme))
await expect(page.locator('.tt-pane-body').first()).not.toBeEmpty()
const results = await scan(page, '.tt-shell')
expect(violations(results)).toEqual([])
})
}

const OVERLAYS: Array<[string, ModuleRef, (page: Page) => Promise<void>, string, string[]]> = [
// The result list scrolls without being a Tab stop: focus stays in the input, whose arrows move the selection
// and scroll it into view. (It still lacks combobox/listbox semantics — a known gap, not hidden by this.)
['the fast switch', { kind: 'daily', date: TODAY }, (page) => page.keyboard.press('Control+Shift+K'), '.tt-palette-overlay', ['scrollable-region-focusable']],
['Help', { kind: 'daily', date: TODAY }, (page) => page.keyboard.press('F1'), '.tt-modal-overlay', []],
['the task editor', { kind: 'actions' }, (page) => page.locator('.tt-kanban-card').first().dblclick(), '.tt-modal-overlay', []],
]
for (const [name, ref, open, overlay, skipRules] of OVERLAYS) {
test(`${name} has no WCAG A/AA violations (${theme})`, async ({ page }) => {
await openDoc(page, contentDoc(ref, theme))
await open(page)
await expect(page.getByRole('dialog')).toBeVisible()
const results = await scan(page, overlay, skipRules)
expect(violations(results)).toEqual([])
})
}
}
})

// The other palettes, for contrast only (nothing else varies by palette): every module, two per page in split view,
// plus the task editor (the danger button on a tinted dialog). test/palette-contrast.test.ts proves the token recipes
// statically; this catches a surface that uses a recipe it does not know about.
const PALETTES: PaletteId[] = ['signal', 'forest', 'cosmic', 'synthwave', 'verdant', 'ember', 'graphite', 'rose', 'citrus', 'contrast', 'colorsafe']
test.describe('palette contrast (axe-core color-contrast)', () => {
for (const palette of PALETTES) {
for (const theme of THEMES) {
test(`${palette} ${theme}: every module and the task editor read at AA`, async ({ page }) => {
const contrast = (selector: string) =>
new AxeBuilder({ page }).withRules(['color-contrast']).include(selector).analyze()
const SPLITS: Array<[ModuleRef, ModuleRef]> = [
[{ kind: 'milestones' }, { kind: 'daily', date: TODAY }],
[{ kind: 'stakeholders' }, { kind: 'person', personId: 's0', group: 'stakeholders' }],
[{ kind: 'actions' }, { kind: 'risks' }],
]
for (const [left, right] of SPLITS) {
await openDoc(page, contentDoc(left, theme, palette, right))
await expect(page.locator('.tt-pane-body').nth(1)).not.toBeEmpty()
expect(violations(await contrast('.tt-shell')), `${left.kind} | ${right.kind}`).toEqual([])
}
await page.locator('.tt-kanban-card').first().dblclick()
await expect(page.getByRole('dialog')).toBeVisible()
expect(violations(await contrast('.tt-modal-overlay'))).toEqual([])
})
}
}
})
175 changes: 175 additions & 0 deletions e2e/editor-scenarios.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
// e2e/editor-scenarios.spec.ts — editing behavior as a table, in real Chromium.
//
// test/editor.test.ts runs under jsdom, which has no document.execCommand, no
// real selection model and no layout, so most of the editor's bugs (paste,
// undo, list structure, autoformat) can only be seen here. Each row is: the
// note as it starts (markdown, with ‸ marking the caret — two of them mark a
// selection), the steps a user takes, and the markdown the app SAVES — read
// back from the browser copy, the same bytes the file gets. Adding a
// regression is one row.
//
// Step strings are typed; press()/paste()/pasteHtml()/waitFor() build the others.
import { test, expect, type Page } from '@playwright/test'
import { openDoc } from './layout-fixtures'
import { flushLiveCopy } from './helpers'
import { createEmptyDocument, createEmptyTeam } from '../src/core/document'
import type { Doc } from '../src/core/types'

const TEAM = 'team-0'
const TODAY = new Date().toLocaleDateString('en-CA')
const CARET = '‸'

type Step = string | { press: string } | { paste: Record<string, string> } | { wait: string }
const press = (key: string): Step => ({ press: key })
const paste = (text: string): Step => ({ paste: { 'text/plain': text } })
const pasteHtml = (html: string, text: string): Step => ({ paste: { 'text/html': html, 'text/plain': text } })
/** Waits for `selector` to be visible (a picker opening on what was typed). */
const waitFor = (selector: string): Step => ({ wait: selector })

interface Row {
name: string
/**
* The note before the steps; ‸ is the caret, two ‸ a selection. Empty: an empty note, caret in it. It loads as
* markdown, so a space at the end of a line is not kept — type it as a step instead.
*/
start: string
steps: Step[]
/** The note's saved markdown afterwards. */
saved: string
}

const ROWS: Row[] = [
// --- typing and autoformat --------------------------------------------------
{ name: '"- " starts a bulleted list, Enter continues it', start: '', steps: ['- one', press('Enter'), 'two'], saved: '- one\n- two' },
{ name: '"1. " starts a numbered list', start: '', steps: ['1. a', press('Enter'), 'b'], saved: '1. a\n2. b' },
{ name: '"> " starts a quote', start: '', steps: ['> q'], saved: '> q' },
// The editor parks the caret after the bold in a space of its own; the space typed next is that one, not a second.
{ name: '"**x**" becomes bold as the closing marker is typed, and the next space is not doubled', start: '', steps: ['a **b** c'], saved: 'a **b** c' },
{ name: 'two spaces typed after the bold stay two', start: '', steps: ['a **b** c'], saved: 'a **b** c' },
{ name: 'an @-mention picked from the list, then a space and a word: one space', start: '', steps: ['see @Ana', waitFor('.tt-atref-dropdown'), press('Enter'), ' x'], saved: 'see @[Ana](person:p1) x' },
{ name: '"# " on the line under text makes THAT line a heading', start: `above${CARET}`, steps: [press('Enter'), '# Title'], saved: 'above\n# Title' },
{ name: 'Ctrl+1 on a blank line under text makes that line a heading', start: `text${CARET}`, steps: [press('Enter'), press('Control+1'), 'H'], saved: 'text\n# H' },
{ name: 'Ctrl+B bolds the selected word', start: `a ${CARET}word${CARET} b`, steps: [press('Control+b')], saved: 'a **word** b' },

// --- list structure ---------------------------------------------------------
{ name: 'Enter mid-item splits the item', start: `- ab${CARET}cd`, steps: [press('Enter')], saved: '- ab\n- cd' },
{ name: 'Enter on an empty item ends the list', start: `- a${CARET}`, steps: [press('Enter'), press('Enter'), 'p'], saved: '- a\np' },
{ name: 'Tab nests an item', start: `- a\n- b${CARET}`, steps: [press('Tab')], saved: '- a\n - b' },
{ name: 'Shift+Tab lifts a nested item', start: `- a\n - b${CARET}`, steps: [press('Shift+Tab')], saved: '- a\n- b' },
{ name: 'Enter on the empty last line of a quote leaves the quote', start: `> q${CARET}`, steps: [press('Enter'), press('Enter'), 'after'], saved: '> q\nafter' },

// --- paste ------------------------------------------------------------------
{ name: 'plain text pasted mid-item stays inside the item', start: `- ab${CARET}cd`, steps: [paste('XY')], saved: '- abXYcd' },
{ name: 'plain text pasted mid-paragraph', start: `ab${CARET}cd`, steps: [paste('XY')], saved: 'abXYcd' },
{ name: 'an HTML list pasted into an empty note becomes a real list', start: '', steps: [pasteHtml('<ul><li>one</li><li>two</li></ul>', 'one\ntwo')], saved: '- one\n- two' },
{ name: 'blocks inside one pasted list item save as sibling items', start: '', steps: [pasteHtml('<ul><li><p>a</p><p>b</p></li></ul>', 'a\nb')], saved: '- a\n- b' },
{ name: 'styled HTML pasted into a heading keeps a plain heading', start: `# He${CARET}ad`, steps: [pasteHtml('<span style="color:red;font-size:30px">X</span>', 'X')], saved: '# HeXad' },
{ name: 'HTML pasted inside a code block lands as its literal text', start: `\`\`\`\ncode${CARET}\n\`\`\``, steps: [pasteHtml('<b>bold</b>', 'bold')], saved: '```\ncodebold\n```' },

// --- undo / redo ------------------------------------------------------------
{ name: 'Ctrl+Z takes a paste back', start: `ab${CARET}`, steps: [paste('XY'), press('Control+z')], saved: 'ab' },
{ name: 'Ctrl+Z takes a Tab back', start: `- a\n- b${CARET}`, steps: [press('Tab'), press('Control+z')], saved: '- a\n- b' },
{ name: 'Ctrl+Shift+Z redoes the Tab', start: `- a\n- b${CARET}`, steps: [press('Tab'), press('Control+z'), press('Control+Shift+z')], saved: '- a\n - b' },
]

function noteDoc(note: string): Doc {
const doc = createEmptyDocument('en-US')
const team = createEmptyTeam(TEAM, 'Team', '📝', 'en-US')
team.dailyNotes[TODAY] = note
team.members.push({ id: 'p1', name: 'Ana', role: '', parentId: null, order: 0, notes: '' })
doc.teams.push(team)
doc.nav.activeTeamId = TEAM
doc.nav.panes = [{ history: [{ teamId: TEAM, ref: { kind: 'daily', date: TODAY } }], index: 0 }, { history: [], index: -1 }]
return doc
}

/** Focuses the editor and turns its ‸ markers into the selection (an empty note: caret in its first block). */
async function placeCaret(page: Page): Promise<void> {
await page.evaluate((mark) => {
const ed = document.querySelector<HTMLElement>('.editor')!
ed.focus()
const points: Array<[Node, number]> = []
const walker = document.createTreeWalker(ed, NodeFilter.SHOW_TEXT)
const nodes: Text[] = []
for (let n = walker.nextNode(); n; n = walker.nextNode()) nodes.push(n as Text)
// Last marker first, so removing it leaves the earlier offsets valid.
for (const node of nodes.reverse()) {
for (let i = node.data.lastIndexOf(mark); i !== -1; i = node.data.lastIndexOf(mark, i - 1)) {
node.deleteData(i, mark.length)
points.unshift([node, i])
if (i === 0) break
}
}
for (const [node] of points) {
const block = node.parentElement!
if (block.textContent === '' && !block.querySelector('br')) block.appendChild(document.createElement('br'))
}
const range = document.createRange()
if (points.length === 0) {
range.selectNodeContents(ed.firstElementChild ?? ed)
range.collapse(true)
} else {
const [a, b] = [points[0]!, points[points.length - 1]!]
const at = (p: [Node, number]): [Node, number] => ((p[0] as Text).data === '' ? [p[0].parentElement!, 0] : p)
range.setStart(...at(a))
range.setEnd(...at(b))
}
const sel = getSelection()!
sel.removeAllRanges()
sel.addRange(range)
}, CARET)
}

/** A real paste event at the current selection: the app reads only `clipboardData`, and its execCommand is the browser's. */
async function dispatchPaste(page: Page, data: Record<string, string>): Promise<void> {
await page.evaluate((data) => {
const dt = new DataTransfer()
for (const [type, value] of Object.entries(data)) dt.setData(type, value)
document.querySelector('.editor')!.dispatchEvent(new ClipboardEvent('paste', { clipboardData: dt, bubbles: true, cancelable: true }))
}, data)
}

/** The note as the browser copy holds it once the editors and the store are flushed (plain document: rows are JSON text). */
async function savedNote(page: Page): Promise<string> {
await flushLiveCopy(page)
return page.evaluate(async (path) => {
const db: IDBDatabase = await new Promise((resolve, reject) => {
const req = indexedDB.open('team-tracker-live')
req.onsuccess = () => resolve(req.result)
req.onerror = () => reject(req.error ?? new Error('open failed'))
})
const rows: unknown[] = await new Promise((resolve, reject) => {
const r = db.transaction('records', 'readonly').objectStore('records').getAll()
r.onsuccess = () => resolve(r.result as unknown[])
r.onerror = () => reject(r.error ?? new Error('read failed'))
})
db.close()
const seen: string[] = []
// live-db.ts: { docId, key, value }, where a plain document's value is { t: JSON text of { path, value } }.
for (const row of rows) {
const text = ((row as { value?: { t?: unknown } }).value)?.t
if (typeof text !== 'string') { seen.push(JSON.stringify(row).slice(0, 80)); continue }
const rec = JSON.parse(text) as { path: string; value: unknown }
if (rec.path === path) return String(rec.value)
seen.push(rec.path)
}
throw new Error(`no saved record ${path}; found: ${seen.join(', ')}`)
}, `team/${TEAM}/daily/${TODAY}`)
}

test.describe('editor scenarios (real browser, saved markdown)', () => {
for (const row of ROWS) {
test(row.name, async ({ page }) => {
await openDoc(page, noteDoc(row.start))
await expect(page.locator('.editor').first()).toBeVisible()
await placeCaret(page)
for (const step of row.steps) {
if (typeof step === 'string') await page.keyboard.type(step)
else if ('press' in step) await page.keyboard.press(step.press)
else if ('wait' in step) await expect(page.locator(step.wait)).toBeVisible()
else await dispatchPaste(page, step.paste)
}
expect(await savedNote(page)).toBe(row.saved)
})
}
})
Loading
Loading