Skip to content

Conversation

@rossedfort
Copy link
Contributor

@rossedfort rossedfort commented Jul 25, 2025

Description & motivation 💭

  • Refactor paginated table to use <Table /> component
  • Remove "split" variant for paginated table
  • Add "bordered" prop to <Table /> to support only adding a border when the table isn't wrapped by an element with a border
    • Also added to <SkeletonTable />
  • Add deprecation comment to <ApiPagination />
  • remove "simple" table variant

Screenshots (if applicable) 📸

Design Considerations 🎨

Testing 🧪

How was this tested 👻

  • Manual testing
  • E2E tests added
  • Unit tests added

Steps for others to test: 🚶🏽‍♂️🚶🏽‍♀️

Checklists

Draft Checklist

Merge Checklist

Issue(s) closed

Docs

Any docs updates needed?

@rossedfort rossedfort requested a review from a team as a code owner July 25, 2025 16:12
@rossedfort rossedfort requested review from laurakwhit and removed request for a team July 25, 2025 16:12
@vercel
Copy link

vercel bot commented Jul 25, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
holocene ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 25, 2025 8:45pm

@@ -1,3 +1,7 @@
<!--
@component ApiPagination
@deprecated This component is deprecated. Use `src/lib/holocene/table/paginated-table/api-paginated.svelte` instead.
Copy link
Collaborator

Choose a reason for hiding this comment

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

🎉

export let updating = false;
export let maxHeight = '';
export let fixed = false;
export let id: string = null;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we just extend the HTMLTableAttributes here instead of defining id?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In this case maybe not the most useful, because this component is really only ever used when wrapped by src/lib/holocene/table/paginated-table/api-paginated.svelte or src/lib/holocene/table/paginated-table/paginated.svelte, and those components don't extended html table attributes. That said, they probably should. I've at least made the change to this component for now.

@rossedfort rossedfort merged commit d10ef5e into main Jul 28, 2025
16 checks passed
@rossedfort rossedfort deleted the DT-3150-refactor-paginated-table branch July 28, 2025 16:14
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