Skip to content

feat(profile-completion): optional progress on SectionStatus - #41

Merged
thinkclay merged 1 commit into
mainfrom
fix/completion-section-progress
Nov 24, 2026
Merged

thinkclay merged 1 commit into
mainfrom
fix/completion-section-progress

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

Adds progress?: { current, required } (exported as SectionCountProgress) to SectionStatus.

The Scaffald api's /v1/profiles/completion/status now returns it on sections that complete at a count — skills need 3 trade skills, certifications 1 — so the dashboard can show "Core Skills · 1 of 3" instead of a bare "Add". Optional, so older api responses still type-check.

For Scaffald/SaaS#1418; the SaaS PR bumps the submodule pointer to this commit.

🤖 Generated with Claude Code

The api now returns `progress: {current, required}` on sections that
complete at a count (skills need 3, certifications 1), so a client can
say "Core Skills · 1 of 3" instead of a bare "Add" (Scaffald/SaaS#1418).
Optional, so older api responses still type-check.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@thinkclay
thinkclay merged commit 32ed6a3 into main Nov 24, 2026
@thinkclay
thinkclay deleted the fix/completion-section-progress branch November 24, 2026 05:24
thinkclay added a commit to Scaffald/SaaS that referenced this pull request Nov 24, 2026
… 1 of 3" (#1418) (#1427)

* fix(dashboard): one number on the completion card, and "Core Skills · 1 of 3" (#1418)

The Build-your-profile card printed the weighted completion percent next
to a plain section count ("80% · 5 of 6"), which never agreed, and a
skills row read "Add" with nothing saying the section needs 3 trade
skills.

- api: count-based sections (skills 3, certifications 1) return
  `progress: {current, required}` from getSectionStatuses, capped at
  `required`, and the route schema declares it. Calc tests cover it.
- SDK: SectionStatus gains optional `progress` (Scaffald/sdk#41);
  submodule pointer bumped.
- card: the header shows "80% complete" only; a row whose section needs
  more than one item reads "Core Skills · 1 of 3" (sectionRowLabel,
  unit-tested).
- skills page: the industry hint says to add at least 3 trade skills.

Fixes #1418

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* chore(sdk): bump to 147f790 (sdk#41 progress on SectionStatus, sdk#42)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
thinkclay added a commit to Scaffald/SaaS that referenced this pull request Nov 24, 2026
…sheet row (#1398)

- packages/sdk: main moved the SDK pointer to 147f790 (Scaffald/sdk#41,
  #42). Merged that into the invites branch (Scaffald/sdk#43) and point at
  the merge commit ab3eed0, so this keeps both.
- The 'Invite your crew' row in MobileAccountSheet used fontSize: 14 like
  its neighbours, which pushed the drawer over the literal-styling ratchet
  ceiling. It uses fontSize.md (14) from @scaffald/ui/tokens.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

1 participant