← Back to Pull requests

fix: issues in profile and settings views #1870

Closed
unknown closed this pull request without merging on Nov 23, 2026 08:21 UTC
View on GitHub
unknown unknown commented on Nov 08, 2026 13:10 UTC
Author

Checklist:

<!-- Please follow this checklist and put an x in each of the boxes, like this: [x]. It will ensure that our team takes your pull request seriously. -->

  • I have read and followed the contribution guidelines.

  • I have read and followed the how to open a pull request guide.

  • My pull request targets the main branch of the repo. - This PR targets feat/redesign

  • I have tested these changes locally on my machine.
  • <!--If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.-->

    Changes

  • Save profile visibility changes in one request instead of one API call per toggle.

  • Keep Save disabled on Edit Profile until a field changes.

  • Rename the visibility location label to "stated location" to match what the setting controls.

  • Show lock icons on the owner profile for Stats, Activity, Certifications, Portfolio, and Experience when their visibility is off. Streaks follow showPoints, and the Supporter and Top contributor pills render independently.

  • Hide the profile visibility setting when signed out.

  • Animate FccSwitch between on and off, with a sliding thumb and tweened colors. Skip the animation when reduce motion is on.

  • Gray out FccSwitch when it is on and disabled.

  • Stop the settings screen flicker when toggling the daily reminder by moving settings state into SettingsNotifier.
  • Notes

    We currently have open PRs targeting Settings, News, and Podcast, so I haven't worked on the Downloads view yet to avoid potential merge conflicts. The work is tracked separately in #1872.

    Results

    <details>
    <summary>Screen recording - Screen no longer flickers when toggling daily reminder</summary>

    https://github.com/user-attachments/assets/5c0fd8ad-ddfb-495f-a0ae-9ac44fb2ed19

    </details>

    <details>
    <summary>Screenshot - Lock icon on private profile sections</summary>

    <img width="380" height="752" alt="image" src="https://github.com/user-attachments/assets/651b9404-7c40-43b5-a128-dc6dc1e06b5a" />

    </details>

    <details>
    <summary>Screen recording - Profile visibility changes with a Save button (so that we make a single API request instead of one request for each toggle change)</summary>

    https://github.com/user-attachments/assets/f137a35f-54e8-4d38-9ce6-646bfeb8b7f0

    </details>

    <details>
    <summary>Screen recording - Hide profile visibility section from Settings view when the camper is signed out</summary>

    https://github.com/user-attachments/assets/b6f8b0dd-d03a-4e7e-9ffa-6e45ad750663

    </details>

    <!-- Feel free to add any additional description of changes below this line -->

    Diff: 344 lines (+258 / -86) across 4 files Reviewer: Sembauke Review duration: 21311m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 344 lines diff across 4 files
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.350
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1870"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 42.4% (MEDIUM) · Higher = larger blast radius
    42.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 16.7% · Safe to merge
    16.7%