← Back to Pull requests

fix(ui): allow submitting the New project dialog without a name #6073

Open
unknown opened this pull request with 250 lines diff across 3 files
View on GitHub
unknown unknown commented on Oct 11, 2026 16:58 UTC
Author

Summary

The New project dialog required a name before its submit button became usable, so a user who only wanted a folder-named project had to invent a title before the folder picker would open. The catalog already falls back to the folder's basename when no name is given, so the dialog now treats the field as an optional override: submit is always available, an empty field submits as "no name", and the en/zh-CN/zh-TW copy says so instead of implying the name comes first.

  • NewProjectDialog: onSubmit(name?: string); empty/whitespace input submits undefined; submit button no longer disabled while empty.

  • WorkspacePickerGroup.onAdd?(name?: string) and its callers (task-entry controller, session-workspace recovery, Settings projects page) propagate the optional name; Settings passes undefined to window.maka.projects.add when blank so the service-side basename fallback applies.

  • Dialog tests cover the empty-name and trimmed-name cases; a Settings test asserts a blank-name submit reaches add with undefined.
  • Fixes #6047

    Verification

  • npm --workspace @maka/ui run build && npm --workspace @maka/ui run test:dist — 735/735 pass (includes the updated new-project-dialog suite)

  • npm --workspace @maka/desktop run build:test — success

  • node --test on project-add-restore, task-entry-controller, task-entry-provider-scope — 80/80 pass

  • biome lint on all changed files — clean

  • Not run: full root npm test workspace-parallel suite (the affected suites above are the ones covering this change)
  • AI use

    Select exactly one:

  • No generative tool made a substantive contribution

  • Generative tooling made a substantive contribution
  • Checklist

  • Tests cover the change and fail without it

  • Lint, format, typecheck and the affected suites pass locally
  • Does this PR entail a change in behavior?

  • Yes — described under Summary above

  • No
  • Generated-by: OpenCode (opencode/mimo-v2.6-pro)

    Diff: 250 lines (+187 / -63) across 3 files Reviewer: Astro-Han Review duration: 1752m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.39) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 250 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.331
    Real PR Conversation Timeline
    1 comments
    "Review active on #6073"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% 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: 39.0% (MEDIUM) · Higher = larger blast radius
    39.0%
    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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 20.8% · Safe to merge
    20.8%
    Repository