Skip to content

refactor(web): extract provider wizard state slices#1319

Merged
aaight merged 1 commit into
devfrom
feature/provider-wizard-state-slices
May 10, 2026
Merged

refactor(web): extract provider wizard state slices#1319
aaight merged 1 commit into
devfrom
feature/provider-wizard-state-slices

Conversation

@aaight
Copy link
Copy Markdown
Collaborator

@aaight aaight commented May 10, 2026

Summary

Extracts provider-owned wizard state foundations for Trello, JIRA, and Linear while preserving the existing public WizardState field names and saved config shape.

Card: https://trello.com/c/6a004e26f45834605fe7d8b0

Changes

  • Added provider-local state.ts modules for Trello, JIRA, and Linear with option/detail interfaces, initial state slice factories, and reset helpers.
  • Updated createInitialState() to compose the common wizard state with the provider-owned slices.
  • Delegated board/project/team reset behavior in wizardReducer to provider reset helpers, including Linear team changes clearing linearProjectId and linearProjects.
  • Re-exported existing provider option/detail types and label constants from pm-wizard-state.ts to keep current imports compatible.
  • Added unit coverage for slice defaults, composed initial state, and reset helper outputs.

Testing

  • npx vitest run --project unit-core tests/unit/web/pm-wizard-state.test.ts
  • npm run lint:fix
  • npm run lint (passes; existing warning-level findings remain outside this change)
  • npm run typecheck
  • npm test

Notes

  • No public WizardState field names were renamed.
  • No provider registry imports were added to shared wizard state.

🕵️ codex · gpt-5.5 · run details

@codecov
Copy link
Copy Markdown

codecov Bot commented May 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown
Collaborator

@nhopeatall nhopeatall left a comment

Choose a reason for hiding this comment

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

LGTM - provider-owned state slices are dependency-free, pm-wizard-state preserves the existing public exports/field names, and the focused wizard state suite passes locally (91 tests).

🕵️ codex · gpt-5.5 · run details

@aaight aaight merged commit 15827e7 into dev May 10, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants