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

Datahub: Add pagination for table component #1120

Merged
merged 37 commits into from
Feb 25, 2025
Merged

Conversation

tkohr
Copy link
Collaborator

@tkohr tkohr commented Feb 17, 2025

Description

This PR introduces pagination to the table.component

Todos:

  • handle geo-table
  • pagination: layout and translate
  • storybook
  • tests

Screenshots

image

Quality Assurance Checklist

  • Commit history is devoid of any merge commits and readable to facilitate reviews
  • If new logic ⚙️ is introduced: unit tests were added
  • If new user stories 🤏 are introduced: E2E tests were added
  • If new UI components 🕹️ are introduced: corresponding stories in Storybook were created
  • If breaking changes 🪚 are introduced: add the breaking change label
  • If bugs 🐞 are fixed: add the backport <release branch> label
  • The documentation website 📚 has received the love it deserves

Copy link
Contributor

github-actions bot commented Feb 17, 2025

Affected libs: feature-dataviz,
Affected apps: datahub,

  • 🚀 Build and deploy storybook and demo on GitHub Pages
  • 📦 Build and push affected docker images

Copy link
Contributor

github-actions bot commented Feb 19, 2025

📷 Screenshots are here!

Copy link
Collaborator

@jahow jahow left a comment

Choose a reason for hiding this comment

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

Thank you!! that looks really good! I'll try this alongside with the PR from @AlitaBernachot and see if everything goes according to plan ;)

@tkohr tkohr marked this pull request as ready for review February 20, 2025 16:14
// export const WithWfs: StoryObj<TableComponent> = {
// loaders: [
// async () => ({
// dataset: await openDataset(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hello, small change, function signature has changed:

await openDataset(
 'https://www.geo2france.fr/geoserver/cr_hdf/ows',
 'wfs',
  {
  wfsFeatureType: 'accidento_hdf_L93',
 }
),
      `

@jahow jahow force-pushed the paginate-table-compoonent branch from b404f14 to 4e531b2 Compare February 21, 2025 22:04
@coveralls
Copy link

coveralls commented Feb 21, 2025

Coverage Status

coverage: 85.618% (+1.2%) from 84.467%
when pulling 72239c9 on paginate-table-compoonent
into 77e75b4 on main.

@jahow jahow force-pushed the paginate-table-compoonent branch 2 times, most recently from ad9f43e to cabd2ba Compare February 21, 2025 22:53
@jahow jahow force-pushed the paginate-table-compoonent branch from cabd2ba to c358bc8 Compare February 22, 2025 10:28
@jahow jahow force-pushed the paginate-table-compoonent branch from c358bc8 to 576ea1a Compare February 22, 2025 10:47
@tkohr tkohr force-pushed the paginate-table-compoonent branch from cd2e7fa to f9fade5 Compare February 24, 2025 16:25
@tkohr tkohr force-pushed the paginate-table-compoonent branch from dfc8637 to 90ab2bb Compare February 24, 2025 20:23
independent of maxFeatureCount
Copy link
Collaborator

@jahow jahow left a comment

Choose a reason for hiding this comment

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

Everything's looking good to me now. Thanks for the involvement! these were quite big changes.
We might revisit some things related to the integration in the datahub as we get some usage feedback.

@tkohr tkohr force-pushed the paginate-table-compoonent branch from da3eb6d to 72239c9 Compare February 25, 2025 09:14
@tkohr tkohr merged commit 97ab0d3 into main Feb 25, 2025
14 checks passed
@tkohr tkohr deleted the paginate-table-compoonent branch February 25, 2025 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants