← Back to Pull requests

chore(release): promote dev to main #2440

Open
unknown opened this pull request with 554 lines diff across 6 files
View on GitHub
unknown unknown commented on Dec 03, 2026 07:54 UTC
Author

Promote dev to main.

  • #2407 refactor(web): remove stray Bootstrap classes from HeroSearchInspector

  • #2408 fix(importer): use 4K UHD resolution in the samsung ls27d700eaexxv seed

  • #2409 feat(web): preserve display-title custom_fields on slimmed client rows

  • #2410 refactor(web): migrate CompareWorkspace to Tailwind CSS v4

  • #2412 fix(web): link the Item page from the home recent reviews

  • #2420 fix(web): badge ratings as stars with readable ink in dark mode (#2415)

  • #2414 fix(web): decimal comma for vi percents and ratings (#2413)

  • #2424 chore(deps): clear high and critical audit advisories via overrides

  • #2426 feat(api): expose additive display_name on lookup and products routes (#2419)

  • #2434 fix(web): localize price slider decimals and OG card scores

  • #2427 perf(web): prune remaining Bootstrap 5 partials from bootstrap.scss (#2417)

  • #2433 perf(web): prune dead legacy Bootstrap rules from custom SCSS partials (#2418)
  • Merge with a merge commit, never squash (Docs/Resources/RELEASE.md).

    ---

    <!-- dos-pr-summary -->

    📌 TL;DR


    This PR introduces a localized display_name field to the public REST API v1, standardizes Vietnamese number formatting (comma decimal separator) across UI and tests, and aggressively prunes unused Bootstrap SCSS partials to reduce bundle size.

    🎯 Type of Change


  • 🚀 New feature

  • 🐛 Bugfix

  • 🧹 Refactor

  • ⚡ Performance

  • 📚 Documentation

  • ⚙️ CI / Configuration
  • 🔍 Changes Walkthrough


    | File | Summary of Changes |
    | :--- | :--- |
    | apps/web/src/app/api/v1/rate/display-name.ts | New Module: Adds parseApiDisplayLocale and withApiDisplayName helpers to safely parse locale params and attach localized display names to API payloads. |
    | apps/web/src/app/api/v1/rate/lookup/route.ts | API Update: Integrates withApiDisplayName into the lookup route to return localized names for masterProduct and suggestions. |
    | apps/web/src/app/api/v1/rate/products/route.ts | API Update: Adds locale parsing and applies withApiDisplayName to product list and item group responses. |
    | apps/web/src/app/api/v1/rate/products/[slug]/route.ts | API Update: Applies withApiDisplayName to the single product detail response. |
    | apps/web/src/app/api/v1/rate/__tests__/api-display-name.test.ts | New Tests: Comprehensive test suite verifying display_name generation, locale fallbacks, and raw name preservation across all API v1 routes. |
    | apps/web/locales/vi.json | i18n Fix: Replaces dot decimal separators with commas (e.g., 5.0 → 5,0) in Vietnamese strings to match locale standards. |
    | apps/web/src/app/[locale]/components/range-slider.tsx | UI Fix: Uses formatSliderNumber and useLocale to ensure slider values display with correct locale-specific decimal separators. |
    | apps/web/src/app/style/__tests__/bootstrap-card-prune.test.ts | Test Update: Updates assertions to verify that bootstrap.scss now only imports core variables/reboot and omits all component/layout partials (grid, forms, buttons, etc.). |
    | apps/web/src/app/style/__tests__/style-scss-prune.test.ts | Test Update: Extends dead CSS pruning tests to cover additional SCSS partials and verify Tailwind source registration. |
    | apps/web/e2e/*.spec.ts | E2E Updates: Updates regexes and text assertions to expect comma decimals (e.g., 4,9) and adjusts SVG selector scoping for leaderboard icons. |
    | apps/importer/src/shopee/flagship-seed-sourced-wave3-appliances.ts | Data Fix: Corrects Samsung monitor resolution seed data from '4K' to '4K UHD'. |
    | apps/extension/src/test-extension-pipeline.ts | Test Fix: Updates test expectations to match the new comma-decimal formatting for weight explanations. |

    📊 Architectural Flow


    sequenceDiagram
        participant Client
        participant API as API v1 Route
        participant Helper as display-name.ts
        participant Lib as product-display-title.ts
    
        Client->>API: GET /api/v1/rate/products?locale=en
        API->>Helper: parseApiDisplayLocale(request)
        Helper-->>API: 'en'
        
        loop For each product
            API->>Helper: withApiDisplayName(product, 'en')
            Helper->>Lib: formatProductDisplayTitle(product, 'en')
            Lib-->>Helper: "Localized Display Name"
            Helper-->>API: { ...product, display_name: "Localized Display Name" }
        end
        
        API-->>Client: JSON Response with display_name
    

    <!-- /dos-pr-summary -->

    Diff: 554 lines (+415 / -139) across 6 files Reviewer: claude[bot] Review duration: 6m
    All Vouch review confidence checks passed
    Residual risk 0.34 = Change Risk (0.48) × (1 − Review Confidence (0.29)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.48 · 554 lines diff across 6 files
    0.48
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 46% · Reviewer familiarity: 35%
    28%
    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.378
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #2440"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 28.9% 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: 48.1% (MEDIUM) · Higher = larger blast radius
    48.1%
    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: 28.9% · Lower = rushed or shallow review
    28.9%
    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: 34.2% · Safe to merge
    34.2%
    Repository