Skip to content

Conversation

@GrabowskiM
Copy link
Contributor

🎫 Issue IBX-10758

Related PRs:

Description:

For QA:

Documentation:

@GrabowskiM GrabowskiM requested review from a team and Copilot October 20, 2025 07:00
Copy link
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 PR implements an overflow list component for the Ibexa design system that automatically manages the display of list items based on available container width. When items exceed the container width, they are hidden and a "more" indicator shows the count of hidden items.

  • Adds a new OverflowList Twig component with validation and template generation
  • Implements TypeScript functionality for dynamic item hiding/showing based on container resize
  • Updates ESLint configuration to allow specific magic numbers used in the overflow logic

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/lib/Twig/Components/OverflowList.php New Twig component class with props validation and template property generation
src/bundle/Resources/views/themes/standard/design_system/components/overflow_list.html.twig Twig template for rendering the overflow list with item and "more" templates
src/bundle/Resources/public/ts/init_components.ts Component initialization registration for overflow list instances
src/bundle/Resources/public/ts/components/oveflow_list.ts Main TypeScript implementation with resize handling and item visibility management
eslint.config.mjs ESLint configuration update to allow specific magic numbers

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@GrabowskiM GrabowskiM force-pushed the IBX-10758-overflow-list branch from 09b0932 to 145c418 Compare October 20, 2025 07:02
@GrabowskiM GrabowskiM force-pushed the IBX-10758-overflow-list branch 2 times, most recently from 6c73782 to e3d6e0a Compare October 23, 2025 10:31
item: this.getTemplate('item'),
itemMore: this.getTemplate('item_more'),
};

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change

}

public rerender() {
let stopRecalculating = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
let stopRecalculating = true;
let stopRecalculating = true;

@GrabowskiM GrabowskiM force-pushed the IBX-10758-overflow-list branch from fcc975d to dc6fc39 Compare October 24, 2025 14:01
Copy link
Member

@alongosz alongosz left a comment

Choose a reason for hiding this comment

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

Some remarks and questions (keep in mind that I don't work with Twig often):

@mikadamczyk mikadamczyk requested a review from alongosz October 27, 2025 08:14
@alongosz alongosz changed the title IBX-10758: Overflow list IBX-10758: Implemented overflow list component Oct 27, 2025
@dew326 dew326 merged commit edf58a7 into main Oct 27, 2025
5 checks passed
@dew326 dew326 deleted the IBX-10758-overflow-list branch October 27, 2025 13:16
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.

7 participants