Skip to content

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

Merged
thinkclay merged 3 commits into
mainfrom
claude/1418-completion-progress
Nov 24, 2026
Merged

thinkclay merged 3 commits into
mainfrom
claude/1418-completion-progress

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

Fixes #1418

What was wrong

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

Change

  • api (lib/profile-completion-calc.ts, routes/profile-completion.ts): sections that complete at a count return progress: {current, required}, capped at required. That's skills (3, csi/onet only, as before) and certifications (1). The route's response schema declares it. Thresholds are now named constants.
  • SDK: SectionStatus.progress? / SectionCountProgress in feat(profile-completion): optional progress on SectionStatus sdk#41. The submodule pointer here is bumped to that commit, so merge sdk#41 first.
  • card (BuildProfileBlock): the header shows one number, "35% complete". A row whose section needs more than one item reads "Core Skills · 1 of 3" (sectionRowLabel). A one-item section stays just its title.
  • skills page: the industry hint now says to add at least 3 trade skills.

Tests

  • Calc: two new Deno tests cover progress (1 of 3, capping, certifications, none on the other sections); 10/10 pass.
  • sectionRowLabel.test.ts (2 tests).
  • Ran this branch's api against the local DB: a worker with 1 skill gets skills.progress = {current: 1, required: 3}; a complete profile gets 3 of 3.
  • Browser, same worker: the card reads "35% complete" with a row "Core Skills · 1 of 3".
  • pnpm prepush passes, with the gated api tests run against this branch's api function directly (the shared edge runtime was serving a stale worktree).

Deploy

Needs a functions deploy to dev for the "1 of 3" row. Until then the card shows just "Core Skills" (progress is optional).

🤖 Generated with Claude Code

thinkclay and others added 3 commits November 23, 2026 23:18
… 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]>
@github-actions

Copy link
Copy Markdown
Contributor

📊 Performance Benchmark Results

    CPU | AMD EPYC 9V74 80-Core Processor
Runtime | Deno 2.9.8 (x86_64-unknown-linux-gnu)

file:///home/runner/work/SaaS/SaaS/packages/supabase/functions/api/__tests__/benchmarks/rest-vs-trpc.bench.ts

| benchmark                                     | time/iter (avg) |        iter/s |      (min … max)      |      p75 |      p99 |     p995 |
| --------------------------------------------- | --------------- | ------------- | --------------------- | -------- | -------- | -------- |

group jobs-list
REST: GET /v1/jobs (paginated list):   → Average response time: 80.00ms
REST: GET /v1/jobs (paginated list):   → Average response time: 76.45ms
REST: GET /v1/jobs (paginated list):   → Average response time: 73.58ms
REST: GET /v1/jobs (paginated list):   → Average response time: 74.19ms
REST: GET /v1/jobs (paginated list):   → Average response time: 75.82ms
| REST: GET /v1/jobs (paginated list)           |           3.0 s |           0.3 | (   3.0 s …    3.0 s) |    3.0 s |    3.0 s |    3.0 s |

group job-details
REST: GET /v1/jobs/:id (single job):   → Average response time: 70.50ms
REST: GET /v1/jobs/:id (single job):   → Average response time: 71.03ms
REST: GET /v1/jobs/:id (single job):   → Average response time: 72.03ms
REST: GET /v1/jobs/:id (single job):   → Average response time: 72.14ms
REST: GET /v1/jobs/:id (single job):   → Average response time: 70.83ms
| REST: GET /v1/jobs/:id (single job)           |           2.9 s |           0.3 | (   2.9 s …    2.9 s) |    2.9 s |    2.9 s |    2.9 s |

group application-create
REST: POST /v1/applications (create):   → Average response time: 92.89ms
REST: POST /v1/applications (create):   → Average response time: 69.82ms
REST: POST /v1/applications (create):   → Average response time: 71.28ms
REST: POST /v1/applications (create):   → Average response time: 70.54ms
REST: POST /v1/applications (create):   → Average response time: 70.81ms
| REST: POST /v1/applications (create)          |           4.8 s |           0.2 | (   4.8 s …    4.8 s) |    4.8 s |    4.8 s |    4.8 s |

group concurrency
REST: Concurrent GET /v1/jobs (10 parallel):   → Throughput: 17.32 req/s
REST: Concurrent GET /v1/jobs (10 parallel):   → Average time per batch: 577.21ms
REST: Concurrent GET /v1/jobs (10 parallel):   → Throughput: 24.56 req/s
REST: Concurrent GET /v1/jobs (10 parallel):   → Average time per batch: 407.08ms
REST: Concurrent GET /v1/jobs (10 parallel):   → Throughput: 22.39 req/s
REST: Concurrent GET /v1/jobs (10 parallel):   → Average time per batch: 446.70ms
REST: Concurrent GET /v1/jobs (10 parallel):   → Throughput: 21.51 req/s
REST: Concurrent GET /v1/jobs (10 parallel):   → Average time per batch: 464.84ms
REST: Concurrent GET /v1/jobs (10 parallel):   → Throughput: 23.00 req/s
REST: Concurrent GET /v1/jobs (10 parallel):   → Average time per batch: 434.77ms
| REST: Concurrent GET /v1/jobs (10 parallel)   |           7.8 s |           0.1 | (   7.3 s …    8.0 s) |    8.0 s |    8.0 s |    8.0 s |

group filtered-queries
REST: GET /v1/jobs with multiple filters:   → Average response time: 91.22ms
REST: GET /v1/jobs with multiple filters:   → Average response time: 90.54ms
REST: GET /v1/jobs with multiple filters:   → Average response time: 80.53ms
REST: GET /v1/jobs with multiple filters:   → Average response time: 75.14ms
REST: GET /v1/jobs with multiple filters:   → Average response time: 76.04ms
| REST: GET /v1/jobs with multiple filters      |           3.2 s |           0.3 | (   3.1 s …    3.4 s) |    3.2 s |    3.4 s |    3.4 s |


@thinkclay
thinkclay merged commit 222c178 into main Nov 24, 2026
15 checks passed
@thinkclay
thinkclay deleted the claude/1418-completion-progress branch November 24, 2026 05:37
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.

fix(dashboard): completion card pairs a weighted % with a section count, and never says Core Skills needs 3

1 participant