Skip to content

Conversation

@michnowak
Copy link
Collaborator

What does this PR do?

  • Feature enhancement
  • Refactoring

Key Changes

  • Layout Configuration: Added support for vertical/horizontal layout configuration in Payments Summary Block. The layout can now be controlled via CMS configuration field, allowing cards to be displayed either stacked vertically or side-by-side horizontally.

  • Optional Fields Support: Made overdue and toBePaid fields optional in the Payments Summary Block. If a field is not configured in CMS, the corresponding card is not displayed. This allows displaying only one card when needed (e.g., only overdue or only toBePaid).

  • Chart Integration: Integrated chart functionality directly into Payments Summary Block (similar to Orders Summary Block architecture). The chart is now an optional part of the Payments Summary Block instead of being a separate Payments History Block. This provides better layout control:

    • When showChart is true: Cards and chart are displayed side-by-side (flex-col lg:flex-row)
    • When showChart is false or chart is not configured: Cards stretch to full width (flex-col md:flex-row), allowing payments-summary to take full width when payments-history block is removed

@vercel
Copy link

vercel bot commented Nov 5, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
o2s-docs Skipped Skipped Nov 5, 2025 3:03pm

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