Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ui-layer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v4
with:
repository: trakli/webui
ref: eacbb7ec8f04c0444be272671dee127d3c8b48c1
ref: 5caf9d16b0cfb392b2d6ddb42930c98cb4b03caf
path: .host-ui
- uses: actions/setup-node@v4
with:
Expand Down
8 changes: 7 additions & 1 deletion src/CloudIntegration.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,14 @@ public function isConfigured(): bool
public function ui(): array
{
return [
'slots' => ['settings.integrations', 'sidebar.nav'],
'slots' => ['settings.integrations', 'settings.tabs'],
'card' => ['title' => 'Premium', 'cta' => 'Manage plan', 'href' => '/billing'],
'tab' => [
'key' => 'billing',
'title' => 'Plan and billing',
'component' => 'cloud.settings',
'order' => 10,
],
'show_when_unconfigured' => true,
];
}
Expand Down
4 changes: 2 additions & 2 deletions ui/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Trakli billing UI layer

Include this directory in the host web UI's `TRAKLI_UI_LAYERS` setting and enable the matching backend plugin. The layer supplies the authenticated `/billing` page, English messages and billing flow tests.
Include this directory in the host web UI's `TRAKLI_UI_LAYERS` setting and enable the matching backend plugin. The layer supplies the Plan and billing tab in Settings, English messages and billing flow tests. `/billing` redirects to that tab and keeps its query, so checkout and portal returns still arrive.

Yearly billing is selected by default. Checkout and portal returns retain the existing billing address. Bank management is shown only when a bank UI layer supplies its route.
Yearly billing is selected by default. Checkout and portal returns retain the existing billing address. Bank management is shown only when a bank UI layer is installed.

Run the host web UI's lint, format, tests and build with this layer enabled. The host provides authentication, API access, components and layout.
Loading
Loading