You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(skills): skill search returns nothing and two skills endpoints 404 — the Skills section cannot be exercised #583
The Skills section of the profile cannot be exercised. Skill search returns nothing for every query, two of the SDK's skills endpoints do not exist, and the technical-skills widget returns [] for a user the seed claims has six skills.
Evidence
Signed in as [email protected] (seed 014 documents him as "6 skills", completion 100):
POST /v1/profiles/skills/search-parents
{"query":"electrical","industryId":"<construction>","taxonomies":["csi","onet"]} -> {"skills":[]}
{"query":"conc", "industryId":"<construction>","taxonomies":["csi"]} -> {"skills":[]}
GET /v1/profiles/skills/user -> 404 {"error":"Not found"}
GET /v1/profiles/skills/legacy -> 404 {"error":"Not found"}
GET /v1/profiles/widgets/skills?userId=…-> []
GET /v1/profiles/skills -> {"explicitSkills":[], "impliedSkills":[3 × soft_skills]}
core.user_skills for marcus holds only soft_skills rows. Seed 014's CSI insert (packages/supabase/seeds/014_seed-worker-profiles.sql:87) joins the MasterFormat catalog, which is empty locally, so it silently matches zero rows — the exact failure mode that seed's own header warns about ("an empty state and a broken query look identical").
No developer, test, or reviewer can add a skill to a profile in local dev. Every skills screen is an empty state, so skills bugs are undetectable by construction.
Acceptance
A seed populates enough CSI (and O*NET) taxonomy for search-parents to return results for common construction terms.
Seed 014's CSI insert fails loudly (or asserts a row count) instead of matching zero rows silently.
/v1/profiles/skills/user and /v1/profiles/skills/legacy either exist or their SDK methods and hooks are deleted.
GET /v1/profiles/widgets/skills returns marcus's trade skills after a reset+seed.
An e2e spec adds a skill through the UI and asserts it appears on Profile Overview.
The catalog half is fixed in #602: data.masterformat had never been seeded, because scripts/seed-csi.ts is TypeScript and config.toml only runs seeds/*.sql. Converted to a real 8,953-row seed, and 014 now asserts its own CSI inserts landed instead of silently matching zero rows.
The two 404 endpoints are not fixed there. This issue proposed deleting them or their hooks; on inspection both have live consumers — the work-log skill picker, the work-log detail screen, and the skills section of every other-user profile — so deleting is wrong and the endpoints are genuinely missing. Split out as #603.
Closing — both halves are done and verified against a live stack serving this branch's code.
Catalog (#602).data.masterformat was never seeded because scripts/seed-csi.ts is TypeScript and config.toml runs only seeds/*.sql. Converted to a real 8,953-row seed; 014 now asserts its own CSI inserts landed instead of silently matching zero rows.
Verified after supa db reset off main:
data.masterformat = 8953
marcus csi skills = 3 (was 0)
POST /profiles/skills/search-parents
electrical -> 20 results concrete -> 20 plumbing -> 20 (all were 0)
Endpoints (#610). This issue proposed deleting the two 404ing endpoints or their hooks. Only one was real:
/v1/profiles/skills/legacy — genuinely 404, one consumer (SkillsWidget, rendered on every other-user profile). Migrated to useSkillsWidget({userId}), which also fixed the widget fetching the viewer's skills rather than the profile owner's, and a response cast to a shape the legacy type never had.
/v1/profiles/skills/user — my error.client.skills.getUserSkills() requests /v1/profiles/skills, which exists and returns data. I inferred the path from the hook's query key and probed a URL nothing calls. The work-log skill picker was never broken.
GET /v1/profiles/widgets/skills now returns the enriched shape its own OpenAPI schema and SDK type always declared:
Activity
thinkclay commentedon Aug 12, 2026
Part of the profile-building audit rollup: #594
thinkclay commentedon Aug 12, 2026
The catalog half is fixed in #602:
data.masterformathad never been seeded, becausescripts/seed-csi.tsis TypeScript andconfig.tomlonly runsseeds/*.sql. Converted to a real 8,953-row seed, and 014 now asserts its own CSI inserts landed instead of silently matching zero rows.The two 404 endpoints are not fixed there. This issue proposed deleting them or their hooks; on inspection both have live consumers — the work-log skill picker, the work-log detail screen, and the skills section of every other-user profile — so deleting is wrong and the endpoints are genuinely missing. Split out as #603.
fix(seeds): the CSI trade taxonomy was never seeded, so skills could …
thinkclay commentedon Aug 12, 2026
Closing — both halves are done and verified against a live stack serving this branch's code.
Catalog (#602).
data.masterformatwas never seeded becausescripts/seed-csi.tsis TypeScript andconfig.tomlruns onlyseeds/*.sql. Converted to a real 8,953-row seed; 014 now asserts its own CSI inserts landed instead of silently matching zero rows.Verified after
supa db resetoff main:Endpoints (#610). This issue proposed deleting the two 404ing endpoints or their hooks. Only one was real:
/v1/profiles/skills/legacy— genuinely 404, one consumer (SkillsWidget, rendered on every other-user profile). Migrated touseSkillsWidget({userId}), which also fixed the widget fetching the viewer's skills rather than the profile owner's, and a response cast to a shape the legacy type never had./v1/profiles/skills/user— my error.client.skills.getUserSkills()requests/v1/profiles/skills, which exists and returns data. I inferred the path from the hook's query key and probed a URL nothing calls. The work-log skill picker was never broken.GET /v1/profiles/widgets/skillsnow returns the enriched shape its own OpenAPI schema and SDK type always declared:{"taxonomy":"csi","name":"Electrical","label":"Electrical","displayCode":"26 00 00.00","proficiency":5,"yearsExperience":7.5}