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

Bump DataTables version & fix header alignment #5724

Open
wants to merge 19 commits into
base: next
Choose a base branch
from
Open

Conversation

pxpm
Copy link
Contributor

@pxpm pxpm commented Nov 25, 2024

WHY

BEFORE - What was wrong? What was happening before this PR?

We were lagging ALOT in datatables versions. Major improvements and bug fixes had been made in the meanwhile, and we were not benefiting from it. Eg: the fixed header alignment: #4853

The reason was the amount of hours I need to spend to track and fix the issues that popped up just by bumping the datatables version in the cdn url. It's done 👍

AFTER - What is happening after this PR?

We are on the bleeding egde of datatables, future upgrades will be WAY easier. It looks to me that the table performs a little better.

Is it a breaking change?

I don't think so 🤷‍♂️

@pxpm pxpm added the v7 label Nov 25, 2024
@pxpm pxpm force-pushed the next branch 2 times, most recently from 0cffae1 to 8ece6d2 Compare December 3, 2024 10:19
@tabacitu tabacitu changed the title Update datatables scripts Bump DataTables version and fix header alignment Dec 5, 2024
@tabacitu tabacitu changed the title Bump DataTables version and fix header alignment Bump DataTables version & fix header alignment Dec 5, 2024
@tabacitu
Copy link
Member

tabacitu commented Dec 5, 2024

@pxpm I can confirm this PR fixes the alignment issue (omfg finally!), and it works for most CRUDS.

But I noticed it also breaks a few CRUDs in our demo - Invoices CRUD, Pets CRUD:

CleanShot 2024-12-05 at 13 14 21@2x

@tabacitu tabacitu removed their assignment Dec 5, 2024
@pxpm pxpm force-pushed the update-datatables branch from 17f4a97 to e2a69de Compare December 5, 2024 16:25
@pxpm pxpm force-pushed the update-datatables branch from e2a69de to 319bdb8 Compare January 6, 2025 10:04
@pxpm pxpm force-pushed the next branch 2 times, most recently from 1253d3b to 7019815 Compare January 23, 2025 10:31
@tabacitu tabacitu mentioned this pull request Jan 27, 2025
2 tasks
@pxpm pxpm force-pushed the update-datatables branch from 319bdb8 to 783003f Compare January 27, 2025 13:19
Copy link
Member

@tabacitu tabacitu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this-is-so-interesting-to-me-lol-real-madrid-gif

@pxpm
Copy link
Contributor Author

pxpm commented Feb 5, 2025

@tabacitu I've removed the @push() to the scripts since they are already included in the after_scripts section.

I've just kept the includes on the same file, because not having datatable assets in the list blade, allow us to include the table (in a near future) in other pages that are not related with the list.blade.php.

I've also fixed the search functionality.

@pxpm pxpm assigned tabacitu and unassigned pxpm Feb 5, 2025
Copy link
Member

@tabacitu tabacitu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can confirm it works now! Thanks Pedro.

But there are some differences in looks here, between the old and new. The changes triggered some changes in the footer that makes it looks like there's be no care given to it. Here's what I mean:

CleanShot 2025-02-07 at 09 45 33

And here are a few things that stand out to me right away:

CleanShot 2025-02-07 at 09 46 39@2x

Please polish these last things, then merge it.

@tabacitu tabacitu assigned pxpm and unassigned tabacitu Feb 7, 2025
@pxpm pxpm force-pushed the update-datatables branch from 723563a to 6117dd1 Compare February 7, 2025 14:04
@pxpm
Copy link
Contributor Author

pxpm commented Feb 7, 2025

It's done @tabacitu please give it the last look to make sure I didn't forget to polish anything. From my POV it looks ok 👍

@pxpm pxpm removed their assignment Feb 7, 2025
pxpm and others added 9 commits February 19, 2025 14:31
* add method to get ajax uploaders

* Apply fixes from StyleCI

[ci skip] [skip ci]

* use an abstract class

* wip

* Apply fixes from StyleCI

[ci skip] [skip ci]

* refactor uploaders

* Apply fixes from StyleCI

[ci skip] [skip ci]

* refactor rules

* Apply fixes from StyleCI

[ci skip] [skip ci]

* move ajax to PRO, cleanup

* Apply fixes from StyleCI

[ci skip] [skip ci]

* make attributes available for all subfields

* fix tests

* wip

* Apply fixes from StyleCI

[ci skip] [skip ci]

* upload multiple and upload properly working 🙏

* fixes

* Apply fixes from StyleCI

[ci skip] [skip ci]

* allow the configuration of valueWithoutPath call.

* fix valid upload inside repeatables

* Apply fixes from StyleCI

[ci skip] [skip ci]

* fix condition

* cleanup

* fix

* Apply fixes from StyleCI

[ci skip] [skip ci]

* fix use case for enabling validation after entry is created

* Apply fixes from StyleCI

[ci skip] [skip ci]

* dont save array keys

* fix ajax validation

* fix validation messages

* Apply fixes from StyleCI

[ci skip] [skip ci]

* fixes ValidUpload

* Apply fixes from StyleCI

[ci skip] [skip ci]

* dont json encode if casted in the model

* Apply fixes from StyleCI

[ci skip] [skip ci]

* fix previous file identification in repeatable

* Apply fixes from StyleCI

[ci skip] [skip ci]

* fix getting values

* Apply fixes from StyleCI

[ci skip] [skip ci]

* add fake fields support

* Apply fixes from StyleCI

[ci skip] [skip ci]

* wip add uploaders tests

* Apply fixes from StyleCI

[ci skip] [skip ci]

* wip

* Apply fixes from StyleCI

[ci skip] [skip ci]

* add pro columns

* fix test suite

* fix tests

* ffix tests

* remove unused test views

* add uploaders to test coverage

* Apply fixes from StyleCI

[ci skip] [skip ci]

* add coverage folder to gitignore

* make tests run faster by not reloading db when not necessary

* add coverage to validation tests

* add fake tests to uploaders

* Apply fixes from StyleCI

[ci skip] [skip ci]

* add more tests

* Apply fixes from StyleCI

[ci skip] [skip ci]

* wip

* Apply fixes from StyleCI

[ci skip] [skip ci]

* wip

* wip

* Apply fixes from StyleCI

[ci skip] [skip ci]

* wip

* Apply fixes from StyleCI

[ci skip] [skip ci]

* add more upload assets

* fixes

* Apply fixes from StyleCI

[ci skip] [skip ci]

* fix single file

* Apply fixes from StyleCI

[ci skip] [skip ci]

* add image column

* fix tests

* Apply fixes from StyleCI

[ci skip] [skip ci]

* remove hardcoded macro names

* Apply fixes from StyleCI

[ci skip] [skip ci]

* remove double loop, fix single file uploader

* Apply fixes from StyleCI

[ci skip] [skip ci]

* use a big increments and unsigned for primary key

* handle pivot file deletion

* Apply fixes from StyleCI

[ci skip] [skip ci]

* register events for relation models

* Apply fixes from StyleCI

[ci skip] [skip ci]

* fix typo

* Apply fixes from StyleCI

[ci skip] [skip ci]

* fix relationship uploaders

* Apply fixes from StyleCI

[ci skip] [skip ci]

* wip

* Apply fixes from StyleCI

[ci skip] [skip ci]

* wip

* Apply fixes from StyleCI

[ci skip] [skip ci]

* update temporary time key

* save objects in the macro

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
* wip

* clean up

* add get uploadedFilesFromRequest to clean up uploaders

* Apply fixes from StyleCI

[ci skip] [skip ci]

* fix type cast

* add summernote uploader

* update summernote

* add summernote

* add more test assets

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
* wip

* Apply fixes from StyleCI

[ci skip] [skip ci]

* tidy up

* Apply fixes from StyleCI

[ci skip] [skip ci]

* panel hooks

* Apply fixes from StyleCI

[ci skip] [skip ci]

* refactoring :broom

* finish implementing hooks

* Apply fixes from StyleCI

[ci skip] [skip ci]

* refactoring hooks

* Apply fixes from StyleCI

[ci skip] [skip ci]

* add hook to delete

* allow empty parameters

* wip

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
* wip

* wip

* Apply fixes from StyleCI

[ci skip] [skip ci]

* wip

* Apply fixes from StyleCI

[ci skip] [skip ci]

* remove filters navbar component

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

2 participants