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

Implement AG Grid for data tables #195

Open
lane711 opened this issue Aug 14, 2023 · 0 comments
Open

Implement AG Grid for data tables #195

lane711 opened this issue Aug 14, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed in progress

Comments

@lane711
Copy link
Owner

lane711 commented Aug 14, 2023

Currently, all table data in the admin UI use simple HTML tables with no paging, filtering, etc. For example:
Screenshot 2023-08-14 at 1 07 52 PM

By adding AG grid, we can hookup paging to start and add filtering later on once its available in the API:
Screenshot 2023-08-14 at 1 12 09 PM

The main file to modify to replace the existing tables is:
src/cms/admin/pages/content.tsx

You can add the js/css references in the theme file using cdn references:
src/cms/admin/theme.tsx

The scope of this story is to add minimum setup for AG Grid

  1. Add js/css refernces
  2. Replaces all existing tables with AG Grid. There are currently 5 tables in the app. You can find them by searching the codebase for "<table"
  3. Tables should render on the client side, not server side like they do know. So you'll need the grid to hit the API from the client instead of hitting the data methods directly.
  4. Paging is supported in the auto-generated APIs, so that should be included in the issue.

Items that are out of scope and will be addressed in future stories:

  1. sorting (will be a separate story)
  2. filtering (will be a separate set of stories)
@lane711 lane711 added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Aug 14, 2023
@lane711 lane711 self-assigned this Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed in progress
Projects
None yet
Development

No branches or pull requests

1 participant