Skip to content

added category pills#26

Merged
Lavi2910 merged 2 commits into
mainfrom
discovery-tags
Apr 23, 2026
Merged

added category pills#26
Lavi2910 merged 2 commits into
mainfrom
discovery-tags

Conversation

@Lavi2910

Copy link
Copy Markdown
Owner

Description

Related Issue(s)

Fixes SOLY-

Checklist

  • I have performed a self-review of my own code
  • My changes generate no new warnings

Screenshots (if appropriate)

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.

Pull request overview

Adds a new CategoryPills UI element to the customer Discovery page to display a horizontally scrollable set of selectable category “pills”.

Changes:

  • Introduced CategoryPills component with internal active-state handling.
  • Added pill styling (active gradient pill + token-based inactive pill).
  • Rendered CategoryPills in DiscoveryPage below the search bar.

Reviewed changes

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

File Description
apps/web/src/pages/customer/DiscoveryPage/components/CategoryPills/styles.ts Adds inline style objects for the pills and scroll container.
apps/web/src/pages/customer/DiscoveryPage/components/CategoryPills/CategoryPills.tsx Implements the category pill button group UI and active selection state.
apps/web/src/pages/customer/DiscoveryPage/DiscoveryPage.tsx Wires the new CategoryPills component into the page layout.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +5 to +12
export const scrollContainer: CSSProperties = {
display: 'flex',
flexDirection: 'row',
gap: '0.5rem',
overflowX: 'auto',
padding: '0 1rem',
scrollbarWidth: 'none',
};

Copilot AI Apr 23, 2026

Copy link

Choose a reason for hiding this comment

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

The exported style object name scrollContainer is inconsistent with the surrounding DiscoveryPage component style files, which consistently suffix exported CSSProperties with Style (e.g., containerStyle, filterButtonStyle). Consider renaming to scrollContainerStyle for consistency (and updating usages).

Copilot uses AI. Check for mistakes.
Comment on lines +24 to +32
export const getInactivePill = (token: GlobalToken): CSSProperties => ({
backgroundColor: token.colorBgContainer,
border: `1px solid ${token.colorBorder}`,
borderRadius: 20,
padding: '0.35rem 0.85rem',
cursor: 'pointer',
whiteSpace: 'nowrap',
flexShrink: 0,
});

Copilot AI Apr 23, 2026

Copy link

Choose a reason for hiding this comment

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

getInactivePill is a style factory but its name doesn't indicate it's returning a style object, and it’s inconsistent with activePillStyle / other get*Style helpers in this area. Consider renaming to something like getInactivePillStyle (or making it a constant like inactivePillStyle if it doesn’t need token).

Copilot uses AI. Check for mistakes.
<DiscoveryHeader name={name} avatar={avatar} />
<SearchBar />
{/* CategoryPills — next */}
<CategoryPills />

Copilot AI Apr 23, 2026

Copy link

Choose a reason for hiding this comment

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

PR description still contains an incomplete issue reference (Fixes SOLY-). Please link the correct ticket/issue ID (or remove the placeholder) so the change is traceable.

Copilot uses AI. Check for mistakes.
@Lavi2910 Lavi2910 merged commit 773c38c into main Apr 23, 2026
1 check passed
@Lavi2910 Lavi2910 deleted the discovery-tags branch April 23, 2026 17:46
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.

2 participants