Skip to content

Add table settings#7601

Merged
deleonio merged 34 commits intodevelopfrom
1834-table-settings
May 7, 2025
Merged

Add table settings#7601
deleonio merged 34 commits intodevelopfrom
1834-table-settings

Conversation

@sdvg
Copy link
Copy Markdown
Contributor

@sdvg sdvg commented Apr 24, 2025

Refs: #1834

The A11y and PO reviews will only take place after all other DoD steps have been completed by the Developer:

  • Meaningful pull request title for the release notes
  • Pull request is linked to an issue and all changes relate to the issue
  • Tests to protect this code implemented (if applicable)
  • Manual test performed successfully (if applicable)
  • Documentation or migration has been updated (if applicable)

@sdvg sdvg linked an issue Apr 24, 2025 that may be closed by this pull request
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 24, 2025

@sdvg sdvg marked this pull request as ready for review May 5, 2025 08:06
sdvg and others added 3 commits May 5, 2025 10:06
…able-settings

* origin/1834-table-settings: (25 commits)
  Update all snapshots$ $ Refs: #7627
  fix: update layout classes for better responsiveness in various components
  fix: update layout classes for better responsiveness in ChangeTabindex component
  fix: wrap terms acceptance text in a span for better structure
  fix: update grid classes for responsive design in SampleDescription and HandoutBasic components
  Fix duplicate aria-labels for pagination
  Add combobox and single-single E2E tests
  fix: refactor SampleDescription component and update documentation links
  Make git revision parsing fail-safe
  Fix: Dropdown opens on input click ( Combobox und SingleSelect)
  Update all snapshots$ $ Refs: #7594
  refactor: remove badge-text-hint mixin and styles from components
  feat: add padding and border-radius to badge-text-hint styles
  fix: improve environment variable handling in Playwright config
  fix: adjust spacing and color for button styles
  feat: add background to short and access key badge at buttons
  fix: underline only the text of a tree item
  Update all snapshots$ $ Refs: #7583
  Fix toggle button styling
  Replace Toggle Button in nav with KolButtonWc
  ...
@deleonio deleonio added the v3 label May 6, 2025
@deleonio deleonio requested review from Copilot, deleonio and laske185 May 6, 2025 04:58
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request adds table settings functionality to both stateless and stateful table components, allowing users to adjust column visibility, order, and width. Key changes include adding new prop types and localization strings for table settings and integrating the settings UI along with related event handling and tests.

Reviewed Changes

Copilot reviewed 74 out of 82 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/components/src/schema/components/tableStateless.ts Added table settings type to optional props and states.
packages/components/src/schema/components/table.ts Added table settings type to optional props and states in stateful components.
packages/components/src/locales/{en,de}.ts Introduced new localization keys for table settings.
packages/components/src/core/component-names.ts Registered new custom element tag for table settings.
packages/components/src/components/table-stateless/table-settings.tsx Implemented table settings UI and corresponding behavior.
packages/components/src/components/table-stateless/component.tsx Integrated table settings into table rendering logic and settings initialization.
packages/components/src/components/table-stateful/shadow.tsx Passed table settings down to stateful table components.
packages/components/src/components/popover-button/* Updated popover-button components to support new requirements.
Files not reviewed (8)
  • packages/components/src/components/@shared/_kol-popover-button-mixin.scss: Language not supported
  • packages/components/src/components/@shared/_kol-table-settings-mixin.scss: Language not supported
  • packages/components/src/components/@shared/_kol-table-stateless-mixin.scss: Language not supported
  • packages/components/src/components/popover-button/style.scss: Language not supported
  • packages/components/src/components/popover-button/test/snapshots/snapshot.spec.tsx.snap: Language not supported
  • packages/components/src/components/table-stateful/style.scss: Language not supported
  • packages/components/src/components/table-stateless/style.scss: Language not supported
  • packages/components/src/components/table-stateless/test/snapshots/snapshot.spec.tsx.snap: Language not supported
Comments suppressed due to low confidence (1)

packages/components/src/components/table-stateless/component.tsx:610

  • [nitpick] Instead of returning an empty string to skip rendering invisible columns, consider returning null. This more explicitly indicates that no element should be rendered and improves readability.
if (columnSetting && !columnSetting.visible) { return ''; }

Copy link
Copy Markdown
Contributor

@deleonio deleonio left a comment

Choose a reason for hiding this comment

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

Hi @sdvg,

ich habe zwei kleine Anmerkungen:

  • Styling - blaue Linie sollte soweit möglich unter dem Button durchgehend sein.
  • Submit - Bei fokussierter Checkbox geht das Absenden (ENTER) leider nicht. -> #7645

sdvg and others added 3 commits May 6, 2025 09:45
…e-settings

* 'develop' of github.com:public-ui/kolibri:
  fix: remove ts-prune references from package.json and related files
  #7572 Fix  (input-file) unify cursor styling and prevent focus when disabled
@deleonio deleonio merged commit f7d51f5 into develop May 7, 2025
9 checks passed
@deleonio deleonio deleted the 1834-table-settings branch May 7, 2025 05:54
@publicuibot publicuibot bot locked and limited conversation to collaborators May 7, 2025
@deleonio deleonio removed the v3 label Jun 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🛹 Feature: Einstellungsmenü für die KolTable

3 participants