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

[admin] Add scopes and controller helpers for ui/table #5516

Merged
merged 14 commits into from
Nov 24, 2023

Conversation

elia
Copy link
Member

@elia elia commented Nov 23, 2023

Summary

image

This is a big-ish refactoring of the ui/table component, including:

  • added support for scopes
  • added search helpers for controllers
  • grouped keyword arguments
  • removed the internal turbo frame
  • fixed resetting filters when exiting a search

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

The following are not always needed:

  • 📖 I have updated the README to account for my changes.
  • 📑 I have documented new code with YARD.
  • 🛣️ I have opened a PR to update the guides.
  • ✅ I have added automated tests to cover my changes.
  • 📸 I have attached screenshots to demo visual changes.

elia and others added 3 commits November 24, 2023 12:15
This helps keeping the query URL short.

Co-Authored-By: Rainer Dema <[email protected]>
Using not-allowed can be confusing when a button is disabled temporarily
while submitting a form.

Co-Authored-By: Rainer Dema <[email protected]>
This helps not interpreting a domain as a relative path.
Also points the logo to the root of the admin.

Co-Authored-By: Rainer Dema <[email protected]>
@elia elia force-pushed the elia+rainer/admin/index-table-features branch 2 times, most recently from 8209ff0 to fda43bc Compare November 24, 2023 11:22
@elia elia changed the title [admin] index table scopes and controller helpers [admin] Add scopes and controller helpers for ui/table Nov 24, 2023
@elia elia requested a review from rainerdema November 24, 2023 11:23
elia and others added 3 commits November 24, 2023 13:05
The list of kwargs and the number of objects was very high, after this
we can delegate some of the logic to supporting classes.

Grouping by data and search kwargs might also help in future splitting
or extraction of subcomponents.

Co-Authored-By: Rainer Dema <[email protected]>
@elia elia force-pushed the elia+rainer/admin/index-table-features branch from fda43bc to 2e35075 Compare November 24, 2023 12:08
@elia elia force-pushed the elia+rainer/admin/index-table-features branch from 2e35075 to 73b1ded Compare November 24, 2023 12:46
Copy link
Contributor

@rainerdema rainerdema left a comment

Choose a reason for hiding this comment

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

💯

@elia elia marked this pull request as ready for review November 24, 2023 12:46
@elia elia requested a review from a team as a code owner November 24, 2023 12:46
@elia elia merged commit 4db50dc into main Nov 24, 2023
8 checks passed
@elia elia deleted the elia+rainer/admin/index-table-features branch November 24, 2023 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants