Skip to content

Comments

refactor(initiator): refactor initiator code#158

Merged
korgon merged 3 commits intodevelopfrom
initiator_refactor
Jan 8, 2026
Merged

refactor(initiator): refactor initiator code#158
korgon merged 3 commits intodevelopfrom
initiator_refactor

Conversation

@chrisFrazier77
Copy link

No description provided.

Copilot AI review requested due to automatic review settings January 2, 2026 17:26
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors how the initiator/framework identifier is tracked throughout the system. The changes replace the old initiator property-based approach with a cleaner managed flag pattern, and updates the tracker to use "athos" as the product identifier instead of "searchspring".

Key changes:

  • Replaced dynamic initiator detection with a boolean managed flag for clearer intent
  • Updated the tracker's product identifier from "searchspring" to "athos"
  • Standardized the framework path format to use managed/snap/preact or snap/preact

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/snap-tracker/src/Tracker.ts Changed product identifier from "searchspring" to "athos" in initiator string
packages/snap-preact/src/Snap.tsx Replaced initiator property detection with managed flag, updated framework path construction
packages/snap-preact-demo/templates/webpack.modern.js Updated webpack entry point to use modern.ts
packages/snap-preact-demo/templates/src/universal.ts Added searchspring.managed flag instead of using initiator property
packages/snap-preact-demo/templates/src/modern.ts Created new entry file that sets managed flag
packages/snap-preact-demo/snap/webpack.modern.js Updated webpack entry point to use modern.ts
packages/snap-preact-demo/snap/src/universal.ts Replaced initiator property with managed flag
packages/snap-preact-demo/snap/src/modern.ts Replaced initiator property with managed flag
.eslintignore Added webpack.modern.js files to eslint ignore list

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@korgon korgon merged commit f4318c9 into develop Jan 8, 2026
1 check passed
@korgon korgon deleted the initiator_refactor branch January 8, 2026 21:21
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