Skip to content

Migrate to b8 plugin package#240

Merged
kawsarahmedr merged 12 commits intomasterfrom
rewrite/2.2.4
Feb 18, 2026
Merged

Migrate to b8 plugin package#240
kawsarahmedr merged 12 commits intomasterfrom
rewrite/2.2.4

Conversation

@sultann
Copy link
Copy Markdown
Contributor

@sultann sultann commented Feb 9, 2026

Migrates plugin from ByteKit framework to B8 framework packages.

This pull request introduces several important refactors and improvements across the codebase, focusing on modernizing dependencies, updating CSS classes, improving code consistency, and enhancing compatibility with WooCommerce cart blocks. The changes include dependency and namespace updates, refactoring of admin CSS and markup, and a significant update to how cart quantity limits are handled for better compatibility and maintainability.

Dependency and Namespace Refactoring:

  • Updated all references from byteever/bytekit-plugin to byteever/plugin in composer.json, including repository URLs, package requirements, and autoload configuration. [1] [2] [3]

CSS and Admin UI Updates:

  • Introduced a new layout partial and updated admin card classes from .bk-card to .b8-card to reflect the new design system. Adjusted related markup in settings and notices for consistency. [1] [2]
  • Added new layout styles in _layout.scss for improved admin UI structure.

WooCommerce Cart Block Compatibility:

  • Refactored cart quantity filters to use the new WooCommerce Cart Block API signature, allowing for more accurate handling of minimum, maximum, and step quantities per cart item. Centralized logic in a new get_cart_item_quantity_limit helper method.

General Code Consistency and Refactoring:

  • Replaced method-based property access (e.g., get_version(), get_name(), get_assets_url()) with direct property access or new helper methods for improved readability and maintainability. [1] [2] [3] [4] [5] [6] [7] [8]
  • Updated service registration in the admin initialization to use share and make methods instead of set.
  • Updated enqueued admin styles to use new style handles (b8-layout, b8-components).
  • Updated various admin and settings methods to use new property and utility access patterns. [1] [2]

Minor Improvements:

  • Added snooze duration to certain admin notice links for better user experience. [1] [2] [3]
  • Improved code comments and added missing docblocks for clarity. [1] [2] [3]

These changes collectively modernize the codebase, improve maintainability, and ensure better compatibility with WooCommerce and the new admin UI design system.

@kawsarahmedr kawsarahmedr merged commit 75cb7c1 into master Feb 18, 2026
7 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