Skip to content

MPDX-8832 Stop over-writing custom task name when action changes - #2015

Merged
zweatshirt merged 1 commit into
mainfrom
MPDX-8832-stop-over-writing-custom-task-name-when-action-changes
Sep 3, 2026
Merged

MPDX-8832 Stop over-writing custom task name when action changes#2015
zweatshirt merged 1 commit into
mainfrom
MPDX-8832-stop-over-writing-custom-task-name-when-action-changes

Conversation

@tamvu-cru

@tamvu-cru tamvu-cru commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Description

https://jira.cru.org/browse/MPDX-8832

The task name keeps being overwritten whenever the task type and action fields are selected. Now it will not overwrite what the user typed in the task name field; it only autofills when the task name is empty or has other generic autofilled content.

Testing

MPDX -> Tasks -> Add Task -> Select Task Type -> Select Action (Task name should now autofill):
1. Rewrite the Task Name to whatever you want-> Change the Action or the Task Type -> Task Name should not change
2. Delete the Task Name -> Change the Action or the Task Type -> Task Name should autofill again.

Checklist:

  • I have given my PR a title with the format "MPDX-(JIRA#) (summary sentence max 80 chars)"
  • I have applied the appropriate labels (Add the label "Preview" to automatically create a preview environment)
  • I have run the Claude Code /quality:agent-review command locally and fixed any relevant suggestions
  • I have requested a review from another person on the project
  • I have tested my changes in preview or in staging
  • I have cleaned up my commit history

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Bundle sizes [mpdx-react]

Compared against 4a196e3

No significant changes found

activityType,
activityType: newActivityType,
previousActivityType: activityType,
currentSubject: subject,

@zweatshirt zweatshirt Sep 1, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we change this currentSubject to currentTaskName? What do you think?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

@tamvu-cru tamvu-cru changed the title improved task name autofill MPDX-8832 Stop over-writing custom task name when action changes Sep 1, 2026
@tamvu-cru tamvu-cru added the Preview Environment Add this label to create an Amplify Preview label Sep 1, 2026
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

@zweatshirt
zweatshirt marked this pull request as ready for review September 1, 2026 20:39
@tamvu-cru

Copy link
Copy Markdown
Contributor Author

🤖 agent-review · ✅ no blockers · risk MEDIUM
Rollout: shadow — this report cannot approve or block the PR (advisory only). · 4 agents run (Architecture Review Agent, Testing & Quality Review Agent, Standards Compliance Review Agent, UX Review Agent) · 1 debate round run

BLOCKERS — fix or dismiss to pass

✅ No blockers.

OTHER FINDINGS (3)

  • #1 · 5/10 · src/components/Task/Modal/Form/TaskModalForm.test.tsx:132 — Only the Action dropdown has a test proving a custom task name survives a change; the same currentTaskName plumbing was also added to the Task Type onChange handler, but no test covers it (testing)
  • #2 · 4/10 · src/components/Task/Modal/Form/TaskModalHelper.ts:236 — The custom-name-preservation branch in setTaskName (and its callers) has zero direct unit tests in TaskModalHelper.test.ts; only exercised indirectly through full form renders (testing)
  • #3 · 3/10 · src/components/Task/Modal/Form/TaskModalForm.mock.tsx:1 — This diff removed the only imports of createTasksMutationMock/updateTaskMutationMock/deleteTaskMutationMock, leaving the whole mock file dead code (standards)
🔧 Fix suggestions (1)

#3 — Delete dead mock file: src/components/Task/Modal/Form/TaskModalForm.mock.tsx:1

- (entire file, no longer referenced anywhere in src/)
+ git rm src/components/Task/Modal/Form/TaskModalForm.mock.tsx

Apply: bash /tmp/automated_fixes/fix_1_dead_file.sh (or bash /tmp/automated_fixes/apply_all.sh for a dry run first)

📦 Dependency impact

Blast radius: 6 transitive dependents (index enabled, warmed this session).

Direct dependents of changed files:

  • TaskModalHelper.tsTaskModalCompleteForm.tsx, ResultAutocomplete.test.tsx, ResultAutocomplete.tsx, TaskModalHelper.test.ts (4 dependents — highest impact)
  • TaskModalLogForm.tsxTaskModalLogForm.test.tsx (1 dependent)
  • TaskModalForm.tsx, TaskModalForm.test.tsx — no dependents

No breaking changes detected (no exports removed; currentTaskName/previousActivityType are additive parameters).

📊 Review detail & stats

Generated: 2026-09-01 · Day: Tuesday · Files changed: 4 (+146 -77 lines)
Risk score: 6/10+ — MEDIUM · Required reviewer: entry-level+

Risk factors detected: pattern score 4 (medium-tier src/components/**/*.{ts,tsx}) + volume score 2; no special patterns; no unmatched paths

Deterministic evidence:

  • AST/static rules: none (ast_grep disabled in config)
  • CI snapshot: unavailable (no evidence artifact supplied for this local run)
  • Cross-repo context: none

Agent summary (bands: Critical 9-10 · High 7-8 · Important 5-6 · Suggestions 3-4):

Agent Critical High Important Suggestions Confidence
Architecture Review Agent 0 0 0 0 High
Testing & Quality Review Agent 0 0 2 1 Medium
Standards Compliance Review Agent 0 0 0 1 High
UX Review Agent 0 0 0 0 High
Total 0 0 2 2 -

Per-agent perspectives on blockers: No blockers to detail.

Debate summary:

  • Rounds: 1 · Challenges raised: 0 (defended 0, conceded 0) · Findings revised: 0 · Severity adjustment: 0 average · Escalated to human: 0
  • No formal challenges. Architecture strongly supported the standards dead-file finding (independently re-verified via grep) and suggested it could reasonably run 3→5 for drift risk; standards and UX both suggested testing's finding Tasks #1 (Task Type/Phase test gap) could run higher (6-7) given it's an unverified path in a bug-fix PR. None of these crossed the severity-7 blocker threshold, so consensus severities were left as each owning agent originally rated them — see the findings above for the as-rated scores.

Review quality:

  • Average agent confidence: High · Consensus rate: ~33% (1 of 3 final findings corroborated by a merge of 2 raw findings) · Review time: ~4 minutes
  • Findings suppressed by approved learnings: 0
💬 How to act on this review

Every finding above is numbered. No severity ≥7 findings exist, so nothing blocks this PR — all three are advisory. Locally: /agent-review:address pulls this ledger into a Claude Code session. (This repo is in shadow rollout mode, so @claude fix/dismiss PR-comment interaction isn't wired to auto-approve yet.)

  • #3 has an available automated fix (bash /tmp/automated_fixes/apply_all.sh to dry-run, --yes to apply)
  • #1 and #2 are test-coverage gaps — the fix field on each finding gives a concrete starting point

@tamvu-cru
tamvu-cru force-pushed the MPDX-8832-stop-over-writing-custom-task-name-when-action-changes branch from b8ecb29 to 2aef187 Compare September 1, 2026 20:47
@tamvu-cru
tamvu-cru requested a review from zweatshirt September 1, 2026 20:52
@zweatshirt
zweatshirt force-pushed the MPDX-8832-stop-over-writing-custom-task-name-when-action-changes branch from 8b2c5f5 to 7259302 Compare September 1, 2026 20:59
@zweatshirt zweatshirt added Preview Environment Add this label to create an Amplify Preview and removed Preview Environment Add this label to create an Amplify Preview labels Sep 1, 2026
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

@zweatshirt

zweatshirt commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Don't forget to put the ticket link in the description
Also, as we go, we should update ticket statuses. Since this PR is ready for review we can move it to 'Ready for Review' on the MPDX Jira board

@zweatshirt
zweatshirt force-pushed the MPDX-8832-stop-over-writing-custom-task-name-when-action-changes branch 2 times, most recently from fc39e45 to fd7e8d3 Compare September 3, 2026 13:15

@zweatshirt zweatshirt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this Tam

Co-authored-by: zach w/ an e <zweatshirt@users.noreply.github.com>
@zweatshirt
zweatshirt force-pushed the MPDX-8832-stop-over-writing-custom-task-name-when-action-changes branch from fd7e8d3 to 16aa412 Compare September 3, 2026 13:26
@zweatshirt
zweatshirt enabled auto-merge September 3, 2026 13:27
@zweatshirt
zweatshirt merged commit 9ad7319 into main Sep 3, 2026
21 of 22 checks passed
@zweatshirt
zweatshirt deleted the MPDX-8832-stop-over-writing-custom-task-name-when-action-changes branch September 3, 2026 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Preview Environment Add this label to create an Amplify Preview

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants