Skip to content

fix(table-skeleton): colsAlign index start at 1 - #5246

Merged
jeremie-lucca merged 4 commits into
release/23.0from
fix/table-skeleton/colsalign-index
Sep 18, 2026
Merged

jeremie-lucca merged 4 commits into
release/23.0from
fix/table-skeleton/colsalign-index

Conversation

@ymalie-lucca

Copy link
Copy Markdown
Contributor

Description

🔥 Breaking
The colsAlign keys on lu-skeleton-table, lu-skeleton-index-table and lu-skeleton-data-table are now column numbers starting at 1 instead of 0-based indexes.
Increment every key by one: { 0: 'center', 1: 'end' } becomes { 1: 'center', 2: 'end' }.


@ymalie-lucca ymalie-lucca added 💥 Breaking change Requires actions on products side (even a very small one) 🔖🐛 FIX Bug / Visual fix (PR should target Master branch) labels Aug 19, 2026
@c-3po c-3po Bot added the 📖 Documentation changes Requires a Prisme update label Aug 19, 2026
@github-actions

Copy link
Copy Markdown

🚀 Storybook preview deployed: https://pub-dc6d99acd6874e2aaff6219dd8a13ae2.r2.dev/PR-5246/index.html

@Supamiu

Supamiu commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Can you give us a bit more details on why this is needed please? We use 0-based indexes everywhere, using 1 just here feels wrong.

@ymalie-lucca

Copy link
Copy Markdown
Contributor Author

@Supamiu I already discussed this with Jérémie a couple of months ago, it's so uncomfortable when I know that the fourth column of the table needs to be aligned to the right. I have to think about how it's calculated in the component code, then subtract one to set the correct value that matches the code logic rather than the human reading logic.

@jeremie-lucca
jeremie-lucca marked this pull request as ready for review September 17, 2026 09:36
@jeremie-lucca
jeremie-lucca requested review from a team as code owners September 17, 2026 09:36
Copilot AI balanced review requested due to automatic review settings September 17, 2026 09:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The breaking behavior needs an explicit one-based API description and a component changelog entry.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Updates table skeletons so colsAlign uses one-based column numbers.

Changes:

  • Generates column identifiers from 1 through cols.
  • Updates templates and examples for one-based alignment keys.
  • Adds colsAlign input documentation.
File summaries
File Description
stories/qa/skeleton-components/skeleton-components.stories.html Updates QA examples.
stories/documentation/loaders/skeleton-table/angular/skeleton-table.stories.ts Updates table documentation.
stories/documentation/loaders/skeleton-table/angular/skeleton-table-body.stories.ts Updates body-only example.
stories/documentation/loaders/skeleton-index-table/angular/skeleton-index-table.stories.ts Updates index-table documentation.
stories/documentation/loaders/skeleton-index-table/angular/skeleton-index-table-body.stories.ts Updates body-only example.
stories/documentation/loaders/skeleton-data-table/angular/skeleton-data-table.stories.ts Updates data-table documentation.
stories/documentation/loaders/skeleton-data-table/angular/skeleton-data-table-body.stories.ts Updates body-only example.
packages/ng/skeleton/skeleton-table/skeleton-table.component.ts Generates one-based column numbers.
packages/ng/skeleton/skeleton-table/skeleton-table.component.html Uses column numbers for alignment.
packages/ng/skeleton/skeleton-index-table/skeleton-index-table.component.ts Generates one-based column numbers.
packages/ng/skeleton/skeleton-index-table/skeleton-index-table.component.html Uses column numbers for alignment.
packages/ng/skeleton/skeleton-data-table/skeleton-data-table.component.ts Generates one-based column numbers.
packages/ng/skeleton/skeleton-data-table/skeleton-data-table.component.html Uses column numbers for alignment.
Review details
  • Files reviewed: 13/13 changed files
  • Comments generated: 4
  • Review effort level: Balanced (auto)

Note

Copilot is running an experiment and ran this review at Balanced.


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread packages/prisme/skeleton/skeleton-table/skeleton-table.component.ts
Comment thread stories/documentation/loaders/skeleton-table/angular/skeleton-table.stories.ts Outdated
@jeremie-lucca
jeremie-lucca force-pushed the fix/table-skeleton/colsalign-index branch from 8de19c7 to d854cf1 Compare September 17, 2026 14:51
@jeremie-lucca
jeremie-lucca changed the base branch from master to release/23.0 September 17, 2026 14:52
@jeremie-lucca jeremie-lucca added this to the 23.0 milestone Sep 17, 2026
jeremie-lucca and others added 2 commits September 17, 2026 16:52
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@jeremie-lucca
jeremie-lucca merged commit 1336ea5 into release/23.0 Sep 18, 2026
10 of 11 checks passed
@jeremie-lucca
jeremie-lucca deleted the fix/table-skeleton/colsalign-index branch September 18, 2026 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📖 Documentation changes Requires a Prisme update 🔖🐛 FIX Bug / Visual fix (PR should target Master branch) 💥 Breaking change Requires actions on products side (even a very small one)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants