Skip to content

SHIP-89 Small sprint fixes: edit sprint dates, sprint naming, public holidays, capacity in days - #33

Merged
joeldickson merged 46 commits into
mainfrom
feat/89-sprint-fixes
Oct 30, 2026
Merged

joeldickson merged 46 commits into
mainfrom
feat/89-sprint-fixes

Conversation

@joeldickson

Copy link
Copy Markdown
Contributor

SHIP-89 Small sprint fixes: edit a sprint's dates after creation, a project sprint naming convention (year/quarter/number by default for new projects), public holidays by country, and capacity in days with a velocity share, plus the Capacity tab's layout. Plan, the numbered defaults and per-task reports are on SHIP-89 and its tasks (SHIP-230..245) in ShipLean.

What changed

  • Edit sprint (SHIP-230). An Edit sprint rail (Name, Start, End, Goal) opens from the sprint header and from each All sprints row; it shares SprintForm with New sprint and sends only changed fields. An ended sprint's dates are locked ("An ended sprint's dates can't change."); its name and goal still change. A sprint can't be moved to end in the past.
  • Sprint naming (SHIP-232, SHIP-234). project.sprint_naming (yearQuarterNumber | number, column default number). New projects get 2026 Q4 Sprint 3 (calendar quarter of the start date, 1 + floor((start − quarterStart) / length)); existing projects, the seed and Jira-imported projects stay on Number only. It applies to the New sprint rail (the suggestion follows the typed dates via sprints/next?start=&end=), the first sprint of a new project, MCP create_sprint and the forecast's future sprints. Settings › Sprints has a Sprint naming select; changing it renames nothing.
  • Public holidays (SHIP-236, SHIP-238). holiday_country / public_holiday tables, filled by a hosted job from Nager.Date (national holidays only) for countries a project uses: on start, then daily, retried after 30 minutes on a failure; an empty feed keeps the stored data. SHIPLEAN_HOLIDAYS_API_URL (empty = off; documented in the README). GET api/holidays/countries. Settings › General has a Public holidays country select (None by default).
  • Capacity in days (SHIP-240, SHIP-241, SHIP-243). A sprint stores the team's velocity; each member stores days available (null = working days minus holidays). Points = velocity / N × days / W, rounded half away from zero, capped 9999.99, where W counts working weekdays with holidays kept. capacity_points is still stored, so forecast, planning lines, rollover, KPIs, All sprints and the MCP tools are unchanged. The server recomputes stored points for running sprints with a velocity when a sprint's dates, the project's working days or country, or the holidays change; ended and old points-only sprints are never touched. MCP sprint_status adds velocity, working days and per-member days.
  • Capacity tab. Team velocity box, the working days and holidays line, Days available per member with a default marker and reset, live capacity computed with the server's formula in integer arithmetic, Add member / remove / Copy / Clear, an ended sprint read-only. The layout bug was a table using CSS classes that don't exist; it's now a bordered card with a fixed column grid, with the summary beside it on wide screens and below on narrow ones.
  • Journey and docs (SHIP-245). Journeys/Planning/SprintNamingAndCapacityJourneyTests; site docs in ShipLean/docs (separate PR).

Deploy notes

  • Four additive migrations (202610291000..1300). Nullable columns and defaults keep an old server working on the new schema.
  • An old client's capacity Save is refused ("Capacity needs a velocity.") until it reloads; everything else stays compatible (settings PUT keeps fields it omits).
  • The holiday job calls date.nager.at from the server; set SHIPLEAN_HOLIDAYS_API_URL= to turn it off.

Review

One review pass, split into server and client. Server: 1 major (a Jira import re-run reset the naming) and minors (empty feed wiped holidays, no quick retry, tracking failure gave a 500, holiday recompute stopped at the first failing project, end moved into the past, case-sensitive name checks, sprint_status days on points-only sprints), all fixed. Client: 2 majors (float rounding differed from the server at half cents; dates formatted with Intl in the SPA, now a server label) and minors (Days input couldn't be cleared, stale suggested name on a quick Create, velocity clash/dirty state, points-only sprints, realtime refresh breadth, focus management, goal editor vs rail), all fixed.
Left as is: a copied project's first-sprint suggestion uses Year/quarter even when the source is Number only; days numeric(4,1) only overflows for sprints over ~1,000 working days; the settings "changed" check reads outside the transaction (tiny race, only skips a recompute).

Verification (local)

  • Release build: 0 warnings, 0 errors.
  • UnitTest: whole project, 2001 passed.
  • WebApi.Tests: whole project, 3519 passed; the 13 failures are the real-model embedding tests, which fail the same way on main on this host (the ONNX model isn't installed here).
  • Client: lint and typecheck clean; vitest 1063 passed; CT for sprints, sprintHeader, settings, backlog and the sprints page shots, 400 passed. Page-screenshot baselines regenerated in the CI image for the changed pages only (13 files); --verify of all 100 shots, 3 repeats each, 300 passed.
  • Acceptance: Lanes.Sprints, Lanes.Settings, Journeys.Planning, Journeys.Navigation on a fresh client build, 54 passed (incl. the new journey after its placeholder fix).
  • format:check flags only TasksSection.tsx, which is already unformatted on main.

After merge: on prod SHIP, edit a sprint's dates, set Australia, check the Capacity tab, and comment the result on SHIP-89.

🤖 Generated with Claude Code

octain and others added 30 commits October 29, 2026 21:18
Settings > Sprints gets a Sprint naming dropdown through the draft model. The New sprint rail and the New project form
ask the server for the name that fits the typed dates while the name is untouched. The empty backlog no longer names
the sprint.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…; journey reads sprint names

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…re, recompute, MCP status

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…holiday country case

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…s after a failure, clamps its wait and tracks project countries
octain and others added 14 commits October 29, 2026 22:21
…nd date edit, Number only

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ound as the server's decimal does

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…uilds no Date objects

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…uched value, points-only sprints keep their stored figures, ended rows say default, velocity reason and labelling, no false No-capacity callout

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…d name is stale; New sprint hint follows the naming convention

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…he name and returns focus; opening the goal editor closes the rail

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…, not its stored points

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…and new project changes

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@joeldickson
joeldickson merged commit 4a2f434 into main Oct 30, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants