Skip to content

Commit 72a0d4e

Browse files
simonhampclaude
andcommitted
Fix plugin icon button layout and update UltraPluginAccessTest for third-party pricing rules
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3e6b059 commit 72a0d4e

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

resources/views/livewire/customer/plugins/show.blade.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,7 @@
171171
<x-dynamic-component :component="'heroicon-o-' . $plugin->icon_name" class="size-8" />
172172
</div>
173173
@endif
174-
<flux:button size="sm" variant="danger" wire:click="deleteIcon">
175-
<x-heroicon-o-trash class="size-4 mr-1" />
176-
Remove icon
177-
</flux:button>
174+
<flux:button size="sm" variant="danger" icon="trash" wire:click="deleteIcon">Remove icon</flux:button>
178175
</div>
179176
@endif
180177

tests/Feature/UltraPluginAccessTest.php

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public function test_ultra_user_gets_zero_price_for_official_plugin(): void
136136
$this->assertEquals(0, $bestPrice->amount);
137137
}
138138

139-
public function test_ultra_user_gets_normal_subscriber_price_for_third_party_plugin(): void
139+
public function test_ultra_user_gets_regular_price_for_third_party_plugin(): void
140140
{
141141
$user = User::factory()->create();
142142
$this->createPaidMaxSubscription($user);
@@ -145,7 +145,7 @@ public function test_ultra_user_gets_normal_subscriber_price_for_third_party_plu
145145
$bestPrice = $plugin->getBestPriceForUser($user);
146146

147147
$this->assertNotNull($bestPrice);
148-
$this->assertEquals(2900, $bestPrice->amount);
148+
$this->assertEquals(4900, $bestPrice->amount);
149149
}
150150

151151
public function test_comped_ultra_user_does_not_get_free_official_plugin(): void
@@ -462,9 +462,9 @@ public function test_satis_check_access_returns_true_for_team_member(): void
462462
]);
463463
}
464464

465-
// ---- Phase 4: Team Plugins on Purchased Plugins page ----
465+
// ---- Phase 4: Team Plugins moved to dedicated team page ----
466466

467-
public function test_purchased_plugins_page_shows_team_plugins_for_team_member(): void
467+
public function test_purchased_plugins_page_does_not_show_team_plugins_for_team_member(): void
468468
{
469469
$owner = User::factory()->create();
470470
$this->createPaidMaxSubscription($owner);
@@ -496,9 +496,7 @@ public function test_purchased_plugins_page_shows_team_plugins_for_team_member()
496496
$response = $this->get(route('customer.purchased-plugins.index'));
497497

498498
$response->assertStatus(200);
499-
$response->assertSee('Team Plugins');
500-
$response->assertSee($owner->display_name);
501-
$response->assertSee('nativephp/shared-plugin');
499+
$response->assertDontSee('Team Plugins');
502500
}
503501

504502
public function test_purchased_plugins_page_does_not_show_team_plugins_for_non_member(): void
@@ -689,7 +687,7 @@ public function test_team_member_without_own_subscription_sees_regular_price():
689687
$this->assertEquals(4900, $bestPrice->amount);
690688
}
691689

692-
public function test_team_member_with_own_subscription_sees_subscriber_price(): void
690+
public function test_team_member_with_own_subscription_sees_regular_price_for_third_party_plugin(): void
693691
{
694692
$owner = User::factory()->create();
695693
$this->createPaidMaxSubscription($owner);
@@ -712,7 +710,7 @@ public function test_team_member_with_own_subscription_sees_subscriber_price():
712710
$bestPrice = $plugin->getBestPriceForUser($member);
713711

714712
$this->assertNotNull($bestPrice);
715-
$this->assertEquals(2900, $bestPrice->amount);
713+
$this->assertEquals(4900, $bestPrice->amount);
716714
}
717715

718716
// ---- Comped Ultra subscriptions ----

0 commit comments

Comments
 (0)