Skip to content

Bridge 0.3.27: bundle mobile layout and donation return fixes - #133

Open
xrpbanks wants to merge 5 commits into
fix/desktop-widget-column-fitfrom
fix/calorieapp-page-footer-widget
Open

Bridge 0.3.27: bundle mobile layout and donation return fixes#133
xrpbanks wants to merge 5 commits into
fix/desktop-widget-column-fitfrom
fix/calorieapp-page-footer-widget

Conversation

@xrpbanks

@xrpbanks xrpbanks commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

The mobile screenshot audit exposed shared layout defects in Richlist, blog pagination and donation pages, alongside the market/shortcut/startup work already prepared in this PR. Version 0.3.27 bundles them into one installation candidate.

Changes:

  • Retains the 0.3.26 CAL market ancestor correction, compact original shortcut artwork, Down control on long pages and passive iframe startup cover.
  • Styles the public XUMM shortcode before JavaScript initialization and handles a late-created header card once.
  • Adds a keyboard-accessible horizontal scroll wrapper around the existing Richlist table; every row and link is retained.
  • Keeps MetaSlider blog dots in one horizontal scroll row.
  • Refines mobile donation amount controls, cart tables and checkout terms spacing/type sizes.
  • Returns a successful open-price donation form to the same product via GET, using WooCommerce's post-validation redirect filter. Existing redirects and its cart-redirect setting remain authoritative.
  • Corrects legacy footer labels in full product/cart HTML after POST; excludes checkout, AJAX, REST, admin, JSON and fragment bodies.

Scope:

  • Head: 8e5dd8fccc45aac552afdf831d62718e39614c18.
  • Base remains fix/desktop-widget-column-fit (Keep the Xumm widget inside narrow desktop columns #131), never app main.
  • Accepted login/session JavaScript and server authentication methods remain unchanged. Header presentation changes are intentional in 0.3.27.
  • The iframe cover cannot cover the separate top-level Render health page on the accepted login route.
  • The donation redirect addresses the form-resubmission path consistent with ERR_CACHE_MISS. Complete Xaman close/decline return behavior has not been reproduced; no gateway/payment-state fix is claimed.
  • App search, portion controls and wallpaper are bundled separately in Keep food logging beside products and prevent premature search timeouts #132. No Brizy content writes, merge, installation or deployment in this change.
  • Ready for code review. Actual mobile/desktop appearance and the focused return paths still require acceptance before merge or release.
  • Copilot reviewed this head after the PR became ready. Its one WooCommerce argument-type concern was checked against the official 11.0.1 form handler and frontend-scripts call sites, answered with source links, and resolved. Core passes a product object after successful form submission and null for frontend URL configuration; the existing guard fits both. No source change was needed. The review state is COMMENTED, not approval; rendered/live acceptance remains outstanding.

Validation:

  • Bridge CI run 34144739117 passed on this exact head, including PHP lint, page rendering, new donation return/footer fixtures, preserved session/handshake behavior, layout/navigation and release packaging.
  • 36 local JavaScript behavior tests and 8 release-builder tests passed. Both changed presentation stylesheets parse successfully.
  • ZIP: 26 files, 69,152 bytes. SHA-256: 5f3362081295ff1354cb830e0695b82f741fe7fe8d6e73735e264ca4d1095912. Every member matches this source tree.
  • Public HTML and user screenshots were inspected. Browser tab listing failed before visual inspection; source/fixture checks do not claim rendered acceptance.
  • Scope, source evidence, remaining limits and a short shared acceptance checklist: docs/STEP_3_CYCLE_1.md.

Installation status, 7 September 2026: the user reports replacing the WordPress plugin with 0.3.27. Public Home, Richlist and CalorieApp requests returned HTTP 200 and their bridge asset URLs reference 0.3.27. This confirms the served version on those routes; actual rendered acceptance remains pending. The separate app follow-up in #132 requires no new WordPress ZIP.

@xrpbanks xrpbanks changed the title Restore CalorieApp website footer and CAL market card (WP 0.3.24) Bridge 0.3.25: consistent CAL widgets and floating shortcuts Sep 7, 2026
@xrpbanks xrpbanks changed the title Bridge 0.3.25: consistent CAL widgets and floating shortcuts Bridge 0.3.26: fix market columns, compact shortcuts and embedded startup cover Sep 7, 2026
@xrpbanks xrpbanks changed the title Bridge 0.3.26: fix market columns, compact shortcuts and embedded startup cover Bridge 0.3.27: bundle mobile layout and donation return fixes Sep 7, 2026
@xrpbanks
xrpbanks marked this pull request as ready for review September 7, 2026 17:01
Copilot AI lite review requested due to automatic review settings September 7, 2026 17:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The WooCommerce donation redirect hook currently expects a WC_Product argument and will likely not run in production because the filter typically receives a product ID (or null), leaving the POST resubmission behavior unaddressed.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR prepares the CalorieApp Identity Bridge WordPress plugin release 0.3.27, bundling mobile layout fixes (header/card sizing, Richlist horizontal scrolling, blog slider dots, donation/cart/checkout mobile spacing) together with a donation POST redirect improvement and expanded footer-compat handling, plus new shared “page ending” (footer + market widget) components and corresponding CI/fixture tests.

Changes:

  • Adds a shared page-ending/footer renderer and a cached XPMarket widget (REST + browser renderer), plus fallback page shortcuts.
  • Updates layout/navigation scripts and CSS to improve mobile presentation (Richlist scroll wrapper, slider dot row, donation/cart/checkout sizing).
  • Introduces a WooCommerce add-to-cart redirect hook intended to return successful open-price donation POSTs back to the product GET page, and expands footer rewrite compatibility to cover full product/cart HTML returned after POST.
File summaries
File Description
wordpress-plugins/calorieapp-identity-bridge/README.md Documents the 0.3.27 bundled scope and behavioral constraints.
wordpress-plugins/calorieapp-identity-bridge/includes/class-calorieapp-identity-bridge.php Wires new components; adds donation redirect filter (needs adjustment).
wordpress-plugins/calorieapp-identity-bridge/includes/class-calorieapp-identity-bridge-page-ending.php Adds page-ending/footer + fallback shortcuts renderer and enqueues its assets.
wordpress-plugins/calorieapp-identity-bridge/includes/class-calorieapp-identity-bridge-market-widget.php Adds XPMarket widget REST endpoint, caching, payload validation, and JS config.
wordpress-plugins/calorieapp-identity-bridge/includes/class-calorieapp-identity-bridge-legal-footer-compatibility.php Extends footer rewrite buffering to cover full cart/product HTML responses after POST while preserving non-page responses.
wordpress-plugins/calorieapp-identity-bridge/includes/class-calorieapp-identity-bridge-integrated-login.php Updates asset version fallback and adds server-rendered iframe startup cover markup.
wordpress-plugins/calorieapp-identity-bridge/calorieapp-identity-bridge.php Bumps plugin version constants to 0.3.27.
wordpress-plugins/calorieapp-identity-bridge/assets/calorieapp-site-navigation.js Reconciles fixed shortcut replacement and introduces the fallback shortcut stack behavior.
wordpress-plugins/calorieapp-identity-bridge/assets/calorieapp-site-layout.js Adds Richlist scroll wrapper insertion and late shortcode initialization handling.
wordpress-plugins/calorieapp-identity-bridge/assets/calorieapp-site-layout.css Applies updated header/card selectors and adds mobile layout fixes (Richlist, blog dots, donation/cart/checkout).
wordpress-plugins/calorieapp-identity-bridge/assets/calorieapp-page-ending.js Implements page-ending behaviors: XPMarket widget renderer, footer carousel, and embed startup cover controller.
wordpress-plugins/calorieapp-identity-bridge/assets/calorieapp-page-ending.css Styles page ending/footer, XPMarket card, fallback shortcuts, and embed startup cover.
tools/tests/wordpress_site_session_markup.test.php Extends PHP fixture assertions for server-rendered startup cover placement and invariants.
tools/tests/wordpress_site_navigation.test.mjs Updates navigation tests for new reconciliation + fallback shortcuts behavior.
tools/tests/wordpress_site_layout.test.mjs Extends layout tests for late shortcode discovery and Richlist wrapper behavior.
tools/tests/wordpress_page_ending.test.php Adds PHP fixture tests for page-ending rendering, scope boundaries, and market sanitization/caching.
tools/tests/wordpress_page_ending.test.mjs Adds JS fixture tests for XPMarket rendering/fallback behavior and footer carousel behavior.
tools/tests/wordpress_legal_footer_post.test.php Adds PHP fixture coverage for POST-scoped footer correction boundaries.
tools/tests/wordpress_embed_loading.test.mjs Adds JS fixture tests for the iframe startup cover behavior and handshake gating.
tools/tests/wordpress_donation_return.test.php Adds PHP fixture tests for donation redirect behavior.
docs/STEP_3_SESSION_NAVIGATION.md Updates documentation to reflect the follow-up consistency work and new checks.
docs/STEP_3_CYCLE_1.md Adds the bundled candidate scope, evidence, limits, and acceptance checklist for the cycle.
contracts/identity-bridge/v1/code-provenance.json Records provenance entries for newly added assets and PHP components.
.github/workflows/bridge-maintenance-checks.yml Expands CI to include new PHP/JS fixtures and allows the maintenance workflow to run on the new base branch.
Review details
  • Files reviewed: 24/24 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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