Skip to content
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

V3 - Filter DTOs #1503

Merged
merged 21 commits into from
Nov 1, 2023
Merged

Conversation

lrljoe
Copy link
Sponsor Collaborator

@lrljoe lrljoe commented Oct 31, 2023

This PR is a pre-requisite for several upcoming improvements to filter behaviour.

The key changes within this PR are:

  1. Use of a DTO to setup the relevant properties to be used within the filter blades
  2. Removing use of properties within the render() method of Filters

These changes will smooth the approach for future Filter improvements by allowing for:
a) Standardised Behaviour of Filter Render methods
b) Removal of defined properties from blades relating to Filter rendering
c) Exposing a DTO so that it is simpler for third parties to extend existing filters

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  1. Does your submission pass tests and did you add any new tests needed for your feature?
  2. Did you update all templates (if applicable)?
  3. Did you add the relevant documentation (if applicable)?
  4. Did you test locally to make sure your feature works as intended?

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you successfully ran tests with your changes locally?

@lrljoe lrljoe self-assigned this Oct 31, 2023
@lrljoe lrljoe added the In Progress I've started diagnosing a fix label Oct 31, 2023
@codecov
Copy link

codecov bot commented Oct 31, 2023

Codecov Report

Merging #1503 (c580922) into develop (0025311) will increase coverage by 0.45%.
The diff coverage is 93.33%.

@@              Coverage Diff              @@
##             develop    #1503      +/-   ##
=============================================
+ Coverage      88.08%   88.53%   +0.45%     
- Complexity      1251     1254       +3     
=============================================
  Files             94       95       +1     
  Lines           3013     2975      -38     
=============================================
- Hits            2654     2634      -20     
+ Misses           359      341      -18     
Files Coverage Δ
src/DataTableComponent.php 96.77% <100.00%> (+0.10%) ⬆️
src/DataTransferObjects/FilterGenericData.php 100.00% <100.00%> (ø)
src/Traits/Configuration/FilterConfiguration.php 94.11% <100.00%> (+0.50%) ⬆️
src/Traits/Helpers/FilterHelpers.php 77.44% <100.00%> (+1.06%) ⬆️
src/Traits/WithFilters.php 88.88% <ø> (ø)
src/Views/Filter.php 100.00% <ø> (ø)
src/Views/Filters/DateFilter.php 76.47% <100.00%> (-7.53%) ⬇️
src/Views/Filters/DateTimeFilter.php 76.47% <100.00%> (-7.53%) ⬇️
src/Views/Filters/MultiSelectDropdownFilter.php 100.00% <100.00%> (ø)
src/Views/Filters/MultiSelectFilter.php 92.10% <100.00%> (-1.38%) ⬇️
... and 8 more

@lrljoe lrljoe changed the base branch from v3-develop to develop November 1, 2023 21:18
@lrljoe lrljoe merged commit 1c86792 into rappasoft:develop Nov 1, 2023
6 checks passed
@lrljoe lrljoe mentioned this pull request Nov 1, 2023
9 tasks
lrljoe added a commit that referenced this pull request Nov 2, 2023
* v3-Move ConfigurableAreas to Own Section WithConfigurableAreas (#1510)

* Move ConfigurableAreas to Own Trait

---------

Co-authored-by: lrljoe <lrljoe@users.noreply.github.com>

* v3 - Splitting Codebase - ConfigurableAreas, CollapsingColumns and  TableAttributes (#1514)

* Splitting ConfigurableAreas into Traits

* Splitting TableAttributes into Traits

* Splitting CollapsingColumns into Traits

* Add HasAllTraits Trait


---------

Co-authored-by: lrljoe <lrljoe@users.noreply.github.com>

* V3 - Filter DTOs (#1503)

* Initial Update - Using DTO

* Add filterGenericData

* Remove requirement for method on render for Filter

* Remove Render requirement

* GenericHeaderTest

* Add filter comparison

---------

Co-authored-by: lrljoe <lrljoe@users.noreply.github.com>

* Update Search to Default Live (#1517)

* Update Search to Default Live

* Search Live Default - Test Fixes

* V3 add custom filter view (#1518)

* Add viewPath for Filters

* Update Filter ViewPath

* Add available methods for setCustomView

* Add Tests

* Migrate Column/Filter View properties to IsColumn & IsFilter traits to standardise

* Fix styling

---------

Co-authored-by: lrljoe <lrljoe@users.noreply.github.com>

* V3 Rename row-contents blades (#1519)

* Rename row-contents to collapsed-columns

* Update Change Log

---------

Co-authored-by: lrljoe <lrljoe@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
In Progress I've started diagnosing a fix
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant