From ceba291f70bf2f4468c1a9b63e22823d81477cb5 Mon Sep 17 00:00:00 2001 From: Kaspar Rosin Date: Wed, 29 Jun 2022 10:53:18 +0300 Subject: [PATCH 1/2] feat: rename organisation --- CHANGELOG.md | 4 ++-- LICENSE.md | 2 +- README.md | 12 ++++++------ composer.json | 8 ++++---- src/CardServiceProvider.php | 2 +- src/DetachedFilterColumn.php | 2 +- src/HasDetachedFilters.php | 2 +- src/NovaDetachedFilters.php | 2 +- tests/Feature/DetachedFiltersTest.php | 16 ++++++++-------- tests/Fixtures/FirstFilter.php | 2 +- tests/Fixtures/SecondFilter.php | 2 +- tests/Fixtures/ThirdFilter.php | 2 +- tests/Fixtures/User.php | 2 +- tests/Fixtures/UserResource.php | 6 +++--- tests/Fixtures/UserWithDetachedColumn.php | 6 +++--- tests/TestCase.php | 2 +- tests/Unit/HasDetachedFiltersTraitTest.php | 10 +++++----- 17 files changed, 41 insertions(+), 41 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba0f512..6af53df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,7 +35,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- When using `hasDetachedFilters`, filters are now grouped by `->key()` [#13](https://github.com/optimistdigital/nova-detached-filters/issues/13) +- When using `hasDetachedFilters`, filters are now grouped by `->key()` [#13](https://github.com/outl1ne/nova-detached-filters/issues/13) ## [1.0.9] - 2020-10-30 @@ -48,7 +48,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- Fixed support with `optimistdigital/nova-multiselect-filter` +- Fixed support with `outl1ne/nova-multiselect-filter` ## [1.0.7] - 2020-10-30 diff --git a/LICENSE.md b/LICENSE.md index 454a12c..787e56c 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2019 Optimist Digital +Copyright (c) 2022 Outl1ne Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 8a6a8c0..b56d400 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Nova Detached Filters -[![Latest Version on Packagist](https://img.shields.io/packagist/v/optimistdigital/nova-detached-filters.svg?style=flat-square)](https://packagist.org/packages/optimistdigital/nova-detached-filters) -[![Total Downloads](https://img.shields.io/packagist/dt/optimistdigital/nova-detached-filters.svg?style=flat-square)](https://packagist.org/packages/optimistdigital/nova-detached-filters) +[![Latest Version on Packagist](https://img.shields.io/packagist/v/outl1ne/nova-detached-filters.svg?style=flat-square)](https://packagist.org/packages/outl1ne/nova-detached-filters) +[![Total Downloads](https://img.shields.io/packagist/dt/outl1ne/nova-detached-filters.svg?style=flat-square)](https://packagist.org/packages/outl1ne/nova-detached-filters) This [Laravel Nova](https://nova.laravel.com/) package allows you to place filters in Nova cards detached from the filter dropdown. @@ -24,7 +24,7 @@ This [Laravel Nova](https://nova.laravel.com/) package allows you to place filte Install the package in a Laravel Nova project via Composer: ```bash -composer require optimistdigital/nova-detached-filters +composer require outl1ne/nova-detached-filters ``` ## Usage @@ -32,7 +32,7 @@ composer require optimistdigital/nova-detached-filters Pass the filters you wish to detach from the filter menu and show on a card to `NovaDetachedFilters` class. ```php -use OptimistDigital\NovaDetachedFilters\NovaDetachedFilters; +use Outl1ne\NovaDetachedFilters\NovaDetachedFilters; public function filters() { @@ -62,8 +62,8 @@ protected function myFilters() If you only wish to show some filters on `DetachedFilters` card, you must use `HasDetachedFilters` trait. ```php -use OptimistDigital\NovaDetachedFilters\NovaDetachedFilters; -use \OptimistDigital\NovaDetachedFilters\HasDetachedFilters; +use Outl1ne\NovaDetachedFilters\NovaDetachedFilters; +use \Outl1ne\NovaDetachedFilters\HasDetachedFilters; class ExampleResource extends Resource { diff --git a/composer.json b/composer.json index 144165f..f81b8c0 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "optimistdigital/nova-detached-filters", + "name": "outl1ne/nova-detached-filters", "description": "This Laravel Nova package allows you to detach filters from the filter dropdown", "keywords": [ "laravel", @@ -38,18 +38,18 @@ }, "autoload": { "psr-4": { - "OptimistDigital\\NovaDetachedFilters\\": "src/" + "Outl1ne\\NovaDetachedFilters\\": "src/" } }, "autoload-dev": { "psr-4": { - "OptimistDigital\\NovaDetachedFilters\\Tests\\": "tests/" + "Outl1ne\\NovaDetachedFilters\\Tests\\": "tests/" } }, "extra": { "laravel": { "providers": [ - "OptimistDigital\\NovaDetachedFilters\\CardServiceProvider" + "Outl1ne\\NovaDetachedFilters\\CardServiceProvider" ] } }, diff --git a/src/CardServiceProvider.php b/src/CardServiceProvider.php index 373b7ef..6e3a260 100644 --- a/src/CardServiceProvider.php +++ b/src/CardServiceProvider.php @@ -1,6 +1,6 @@ Date: Wed, 29 Jun 2022 11:23:36 +0300 Subject: [PATCH 2/2] docs: update changelog --- CHANGELOG.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c925ca..77927c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,15 +16,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Requirements + - php: `>= 8.0` - laravel/framework: `>= 9.0` - laravel/nova: `^4.0` -### Removed + ### Removed - Resources per page selector: `withPerPage`. - There might be a way to re-integrate this feature, but as of now, I've hidden this feature. +**Due to our organization changing it's name, we are changing the namespace starting this release.** + +- composer.json: + - `"optimist-digital/nova-detached-filters"` =>`"outl1ne/nova-detached-filters"` +- imports: + - `OptimistDigital\NovaDetachedFilters` => `Outl1ne\NovaDetachedFilters` + ## [1.1.0] - 2021-05-06 ### Changed