Skip to content

fix(profile): Profile Strength scores a field no editor can set, and counts soft-skill ratings as skills #585

Closed

Description

@thinkclay

The Profile Strength percentage does not measure what the profile editor can change.

Two defects in core.v_profile_completion_scores

packages/supabase/migrations/340_fix_profile_completion_certifications.sql:30

1. Identity (20 pts) requires users.headline, which no profile editor can set.

WHEN COALESCE(p.first_name,'') <> '' AND COALESCE(p.last_name,'') <> ''
 AND COALESCE(u.headline,'') <> '' THEN 20

headline is absent from generalProfileSchema (packages/scf-core/features/profile/config/general-schema.ts) and from ProfileGeneralLeft, and PATCH /v1/profiles/general (packages/supabase/functions/api/routes/profiles.ts:390) does not accept it. The only UI that collects a headline is the orphaned Profile Wizard (#584), where it is required — GeneralInfoStep.tsx:14. A user can fill in every field the app offers and never earn those 20 points.

2. Skills (20 pts) counts soft-skill self-ratings.

WHEN (SELECT count(*) FROM core.user_skills us WHERE us.user_id = p.user_id) >= 3 THEN 20

No skill_taxonomy filter. [email protected] has zero technical skills and three soft_skills rows, and GET /v1/profiles/completion/status returns completionPercentage: 100. The 25-question soft-skills self-assessment alone satisfies the "Skills" component.

Acceptance

  • Either the General Information editor gains a headline field wired through PATCH /v1/profiles/general, or Identity stops depending on headline.
  • The Skills component filters to skill_taxonomy IN ('csi','onet').
  • Each component is covered by a test asserting the score changes only when the corresponding editor changes.
  • After a reset+seed, marcus does not score 100% with zero trade skills.

Activity

  1. thinkclay commented on Aug 12, 2026

    @thinkclay
    ContributorAuthor

    Part of the profile-building audit rollup: #594

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Backendbugpriority: high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions