Skip to content

refactor cli-kit to vertical slices of shopify product domains#6855

Open
ryancbahan wants to merge 8 commits intomainfrom
ryan/cli-kit-domain-refactor
Open

refactor cli-kit to vertical slices of shopify product domains#6855
ryancbahan wants to merge 8 commits intomainfrom
ryan/cli-kit-domain-refactor

Conversation

@ryancbahan
Copy link
Contributor

@ryancbahan ryancbahan commented Feb 12, 2026

WHY are these changes introduced?

The cli kit section does not have a directory structure that lends itself well to team ownership boundaries. This PR is a no-op overhaul of code geography to provide a top-level structure that splits concerns by Shopify product/domain so that clearer boundaries can be established.

Before:

Screenshot 2026-02-12 at 9.33.06 AM.png

After:

Screenshot 2026-02-12 at 9.26.29 AM.png

This is the first step of many. The work ahead would be to better organize the shared directory, and to ensure our primitives are isolated and composable (right now things like session and fqdn are multi-domain "god objects" that need to be effectively split). We also need to consider how we manage cross-domain dependency. But I believe this change introduces a feasible path forward to better ownership and stewardship.

WHAT is this pull request doing?

Behavioral no-op. Establishing a clear set of conventions and semantics for how to organize code in the CLI.

How to test your changes?

We're gonnsa have to test basically everything. Sorry/not sorry, let's rip this bandaid.

Post-release steps

Measuring impact

How do we know this change was effective? Please choose one:

  • n/a - this doesn't need measurement, e.g. a linting rule or a bug-fix
  • Existing analytics will cater for this addition
  • PR includes analytics changes to measure impact

Checklist

  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've considered possible documentation changes

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ryancbahan ryancbahan marked this pull request as ready for review February 12, 2026 16:36
@ryancbahan ryancbahan requested review from a team as code owners February 12, 2026 16:36
@ryancbahan ryancbahan force-pushed the ryan/cli-kit-domain-refactor branch from 46c759d to 0b16ad7 Compare February 12, 2026 16:40
@github-actions

This comment has been minimized.

@ryancbahan ryancbahan force-pushed the ryan/cli-kit-domain-refactor branch from 0b16ad7 to 3bd6aa0 Compare February 12, 2026 16:47
@github-actions
Copy link
Contributor

github-actions bot commented Feb 12, 2026

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements 78.9% 14555/18447
🟡 Branches 73.23% 7224/9865
🟡 Functions 79.09% 3704/4683
🟡 Lines 79.25% 13762/17365

Test suite run success

3771 tests passing in 1453 suites.

Report generated by 🧪jest coverage report action from 13ef0dd

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.

1 participant