Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try/loading ecommerce module components directly #7

Draft
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

circlecube
Copy link
Member

Proposed changes

This changes how the e-commerce module components are loaded in the plugin app. Before they were loaded via a package, but this updates it to directly load them in the plugin app like we do for other modules. We load the js components directly from the module in the vendor directory. This will need considerable testing on live sites.

This would eliminate the need for a js build package in the e-commerce module.

We'd also want to restructure the module and move the components out of the src directory and into a top-level components dir (src directories are usually excluded from builds). This effort is to bring all modules to a more consistent architecture.

Open Discussion

Is there a reason I'm missing that the build step is still required for the e-commerce module components? Removing it would simplify the plugin release process and make more of the modules lend components to the plugin rather than require a composer and npm package to run.

Before merging this we may want to have a larger discussion about best practices and module architecture. If we want to update this one to be more in line with the others, we should make sure we're following a best practice.

I've also had discussions about updating the plugin app to use slots and slotfills for modules to add components into assigned places, but I think we'd need some considerable updates to get to a place we can do this.

This PR picks up where bluehost/bluehost-wordpress-plugin#1515 left off.

Type of Change

Production

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Dependency update
  • Refactoring / housekeeping (changes to files not directly related to functionality)

Development

  • Tests
  • Dependency update
  • Environment update / refactoring
  • Documentation Update

Video

Checklist

  • I have read the CONTRIBUTING doc
  • I have viewed my change in a web-browser
  • Linting and tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

circlecube and others added 9 commits January 14, 2025 15:28
Bumps [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom) from 7.1.1 to 7.1.3.
- [Release notes](https://github.com/remix-run/react-router/releases)
- [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/CHANGELOG.md)
- [Commits](https://github.com/remix-run/react-router/commits/[email protected]/packages/react-router-dom)

---
updated-dependencies:
- dependency-name: react-router-dom
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
…nents-directly

* release/3.16.0: (23 commits)
  update to latest ecommerce and facebook modules
  revert to wp-scripts 27 and remove react-jsx-runtime polyfill
  adjust polyfill path and remove from normal webpack config
  happy lint happy life
  add jsx-runtime-polyfill for wp6.5 support - remove unused package
  bump installer version in composer to match lock
  update htaccess-manager package to fix 7.3 issue in php
  add missing package according to lint
  update version to 3.16.0
  Composer(deps): Bump newfold-labs/wp-module-onboarding
  NPM Dev(deps-dev): Bump @tailwindcss/forms from 0.5.9 to 0.5.10
  NPM(deps): Bump @wordpress/icons from 10.15.1 to 10.16.0
  NPM(deps): Bump @wordpress/dom-ready from 4.14.0 to 4.16.0
  Composer(deps): Bump newfold-labs/wp-module-coming-soon
  update remaining modules for runtime updates
  use latest fully released packages
  update to latest runtime and ecommerce module
  add @newfold packaged to tailwind config
  NPM Dev(deps-dev): Bump @wordpress/env from 10.14.0 to 10.16.0
  update to runtime 1.1.3 release
  ...

# Conflicts:
#	package-lock.json
#	package.json
#	src/app/pages/ecommerce/page.js
#	src/app/pages/home/freeAddonsSection.js
#	src/app/pages/home/index.js
#	src/app/pages/home/welcomeSection.js
…p/react-router-dom-7.1.3

NPM(deps): Bump react-router-dom from 7.1.1 to 7.1.3
…irectly

* develop:
  allow cypress matrix 60 min
…irectly

* develop:
  NPM(deps): Bump react-router-dom from 7.1.1 to 7.1.3

# Conflicts:
#	package-lock.json
…ctly

* main: (29 commits)
  add `set-version-bump` script to dist ignore
  add workflows label to dependabot for actions
  Revert "update composer package name for satis"
  update composer package name for satis
  update satis repo to newfold-labs
  update to latest facebook and migration modules
  version bump to 4.0.3 and module/dependency updates
  remove skipped tests
  update readme file with new repo paths
  remove stray whitespace
  i18n update for 4.0.1
  update packages and modules to match 3.15.9 release
  version bump to 4.0.1 - corresponds to 3.15.9 release
  temporarily exclude notifications plugin-search tests
  update supported wp versions for Woo in cypress config
  new cypress project id for newfold bluehost plugin
  remove temporary test exclusion
  update coming soon and deactivation modules
  fix deactivation test with slug update and skip ecom tests for now
  skip deactivation survey test for now
  ...

# Conflicts:
#	package-lock.json
@circlecube circlecube self-assigned this Jan 30, 2025
@circlecube circlecube changed the base branch from main to develop January 30, 2025 20:58
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