Repository navigation
November: billing dashboard, capability catalogue, plan kinds, owner deletion #39
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
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
5b029fd
fix: cancel the subscription when its owner is deleted (sc-1120)
roble e18b231
feat: explain each plan kind in the admin and lead the product view w…
roble 7f5c1a2
feat: pick entitlements from the capabilities catalogue, and let One-…
roble aaafaa5
fix: an empty price row no longer fails validation when the form renders
roble 9ee2ff0
feat: billing dashboard with trends, health and attention cards, cach…
roble cf66254
fix: end cancelled subscriptions without dates at their last update, …
roble b5cabc7
chore: require core ^2.11.0 for the dashboard and capability catalogue
roble File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
database/migrations/1000_00_01_000001_add_dashboard_indexes.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| <?php | ||
|
|
||
| use Illuminate\Database\Migrations\Migration; | ||
| use Illuminate\Database\Schema\Blueprint; | ||
| use Illuminate\Support\Facades\Schema; | ||
|
|
||
| /** | ||
| * The dashboards filter by status and date range. Its own migration, so apps that | ||
| * installed billing before it get the indexes too. | ||
| */ | ||
| return new class extends Migration | ||
| { | ||
| public function up(): void | ||
| { | ||
| Schema::table('payments', fn (Blueprint $table) => $table->index(['status', 'currency', 'created_at'])); | ||
| Schema::table('subscriptions', function (Blueprint $table): void { | ||
| $table->index('created_at'); | ||
| $table->index('cancelled_at'); | ||
| }); | ||
| Schema::table('checkout_sessions', fn (Blueprint $table) => $table->index(['status', 'created_at'])); | ||
| } | ||
|
|
||
| public function down(): void | ||
| { | ||
| Schema::table('payments', fn (Blueprint $table) => $table->dropIndex(['status', 'currency', 'created_at'])); | ||
| Schema::table('subscriptions', function (Blueprint $table): void { | ||
| $table->dropIndex(['created_at']); | ||
| $table->dropIndex(['cancelled_at']); | ||
| }); | ||
| Schema::table('checkout_sessions', fn (Blueprint $table) => $table->dropIndex(['status', 'created_at'])); | ||
| } | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 0 additions & 36 deletions
36
resources/views/filament/pages/billing-dashboard.blade.php
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Script executed:
Repository: saucebase-dev/billing
Length of output: 11877
Script executed:
Repository: saucebase-dev/billing
Length of output: 4824
Script executed:
Repository: saucebase-dev/billing
Length of output: 11639
Script executed:
Repository: saucebase-dev/billing
Length of output: 947
Require a core version that provides
Dashboard.Core
v2.10.0satisfies the current constraint but lacks the parent class. LoadingBillingDashboardcan therefore fail.If core
v2.11.0includes the required classes, release it and update the constraint before releasing billing:Update the core constraint
GitHub Actions: Billing Module Tests / 1_test _ PHPUnit billing (react).txt
[error] 16-16: Composer post-autoload-dump failed during
composer require "saucebase/billing:*" ...while running@php artisan package:discover --ansi. ClassSaucebase\Core\Filament\Pages\Dashboardwas not found whenBillingDashboardextendedDashboard.GitHub Actions: Billing Module Tests / 2_test _ PHPUnit billing (vue).txt
[error] 16-16: Composer dependency installation failed during
@php artisan package:discover --ansi(part ofcomposer require "saucebase/billing:*"). ClassSaucebase\Core\Filament\Pages\Dashboardwas not found while loadingBillingDashboard extends Dashboard; the command exited with code 1.GitHub Actions: Billing Module Tests / test _ PHPUnit billing (react)
[error] 16-16: Composer dependency installation failed during
@php artisan package:discover --ansi(Composer update of saucebase/billing).BillingDashboardextendsSaucebase\Core\Filament\Pages\Dashboard, but that class could not be found.GitHub Actions: Billing Module Tests / test _ PHPUnit billing (vue)
[error] 16-16: Composer dependency installation failed during
composer require "saucebase/billing:*" ...while running@php artisan package:discover --ansi. ClassSaucebase\Core\Filament\Pages\Dashboardwas not found whenBillingDashboardextended it.Source: Pipeline failures