Repository navigation
fix(dashboard): one number on the completion card, and "Core Skills · 1 of 3" (#1418) - #1427
Merged
Merged
Conversation
… 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]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
📊 Performance Benchmark Results |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
lib/profile-completion-calc.ts,routes/profile-completion.ts): sections that complete at a count returnprogress: {current, required}, capped atrequired. That's skills (3, csi/onet only, as before) and certifications (1). The route's response schema declares it. Thresholds are now named constants.SectionStatus.progress?/SectionCountProgressin feat(profile-completion): optional progress on SectionStatus sdk#41. The submodule pointer here is bumped to that commit, so merge sdk#41 first.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.Tests
progress(1 of 3, capping, certifications, none on the other sections); 10/10 pass.sectionRowLabel.test.ts(2 tests).apiagainst the local DB: a worker with 1 skill getsskills.progress = {current: 1, required: 3}; a complete profile gets3 of 3.pnpm prepushpasses, with the gated api tests run against this branch'sapifunction 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" (
progressis optional).🤖 Generated with Claude Code