diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 4fd3cc4..bc9f982 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,11 +1,11 @@ blank_issues_enabled: false contact_links: - name: Ask a question - url: https://github.com/solution-forest/filament-panphp/discussions/new?category=q-a + url: https://github.com/solutionforest/filament-panphp/discussions/new?category=q-a about: Ask the community for help - name: Request a feature - url: https://github.com/solution-forest/filament-panphp/discussions/new?category=ideas + url: https://github.com/solutionforest/filament-panphp/discussions/new?category=ideas about: Share ideas for new features - name: Report a security issue - url: https://github.com/solution-forest/filament-panphp/security/policy + url: https://github.com/solutionforest/filament-panphp/security/policy about: Learn how to notify us for sensitive bugs diff --git a/CHANGELOG.md b/CHANGELOG.md index d2967b2..ead59aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to `filament-panphp` will be documented in this file. +## 0.0.2 - 2024-10-17 + +**Full Changelog**: https://github.com/solutionforest/filament-panphp/compare/0.0.1...0.0.2 + ## 0.0.1 - 2024-10-17 First release diff --git a/README.md b/README.md index ed22da9..e2274dd 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # Filament UI for Pan Analytics [![Latest Version on Packagist](https://img.shields.io/packagist/v/solution-forest/filament-panphp.svg?style=flat-square)](https://packagist.org/packages/solution-forest/filament-panphp) -[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/solution-forest/filament-panphp/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/solution-forest/filament-panphp/actions?query=workflow%3Arun-tests+branch%3Amain) -[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/solution-forest/filament-panphp/fix-php-code-styling.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/solution-forest/filament-panphp/actions?query=workflow%3A"Fix+PHP+code+styling"+branch%3Amain) +[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/solutionforest/filament-panphp/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/solutionforest/filament-panphp/actions?query=workflow%3Arun-tests+branch%3Amain) +[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/solutionforest/filament-panphp/fix-php-code-style-issues.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/solutionforest/filament-panphp/actions?query=workflow%3A"Fix+PHP+code+styling"+branch%3Amain) [![Total Downloads](https://img.shields.io/packagist/dt/solution-forest/filament-panphp.svg?style=flat-square)](https://packagist.org/packages/solution-forest/filament-panphp) @@ -11,7 +11,6 @@ Seamlessly integrate [pan, the lightweight and privacy-focused PHP product analy image - Key Features: - Easy-to-use Filament components for visualizing Pan analytics data - Intuitive interface for managing and configuring tracked elements @@ -36,6 +35,9 @@ composer require solution-forest/filament-panphp ## Usage +### 1. Using in Filament Dashboard + +image ```php @@ -52,11 +54,24 @@ public function panel(Panel $panel): Panel ``` +### 2. You can use the [Widget in the blade](https://filamentphp.com/docs/3.x/widgets/adding-a-widget-to-a-blade-view) + +image + + +```php +
+ @livewire(SolutionForest\FilamentPanphp\Components\PanOverview::class) +
+``` + + ## Screenshot image image image +image ## Testing diff --git a/composer.json b/composer.json index 1a0ffbd..cf15258 100644 --- a/composer.json +++ b/composer.json @@ -6,10 +6,10 @@ "laravel", "filament-panphp" ], - "homepage": "https://github.com/solution-forest/filament-panphp", + "homepage": "https://github.com/solutionforest/filament-panphp", "support": { - "issues": "https://github.com/solution-forest/filament-panphp/issues", - "source": "https://github.com/solution-forest/filament-panphp" + "issues": "https://github.com/solutionforest/filament-panphp/issues", + "source": "https://github.com/solutionforest/filament-panphp" }, "license": "MIT", "authors": [{ diff --git a/src/Components/PanOverview.php b/src/Components/PanOverview.php index 176ee59..b0797fa 100644 --- a/src/Components/PanOverview.php +++ b/src/Components/PanOverview.php @@ -26,7 +26,9 @@ public function table(Table $table): Table ->columns([ TextColumn::make('id'), TextColumn::make('name')->searchable(), - TextColumn::make('impressions')->sortable(), + TextColumn::make('impressions') + ->sortable() + ->formatStateUsing(fn (mixed $state) => number_format($state, 0, '.', ',')), TextColumn::make('hovers') ->formatStateUsing( fn (mixed $state, ?PanAnalytics $record) => number_format($state) . ' (' . number_format($record->hover_percentage, 1) . '%)' diff --git a/src/FilamentPanphpServiceProvider.php b/src/FilamentPanphpServiceProvider.php index 0e2587e..5378331 100644 --- a/src/FilamentPanphpServiceProvider.php +++ b/src/FilamentPanphpServiceProvider.php @@ -36,7 +36,7 @@ public function configurePackage(Package $package): void ->publishConfigFile() // ->publishMigrations() // ->askToRunMigrations() - ->askToStarRepoOnGitHub('solution-forest/filament-panphp'); + ->askToStarRepoOnGitHub('solutionforest/filament-panphp'); }); $configFileName = $package->shortName();