Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Products filter labels #158

Closed

Conversation

MikeSaburov
Copy link
Contributor

@MikeSaburov MikeSaburov commented Apr 17, 2024

Completed the test task as described

@anksuunamun anksuunamun self-requested a review April 18, 2024 15:20
@anksuunamun
Copy link
Contributor

anksuunamun commented Apr 22, 2024

Task description:

  1. Реализовать компонент ProductsFilterLabels, который принимает массив описаний лейблов фильтров (например, это объекты со свойствами name, id, label; сам массив - например, filterAttributes) и на основе этого рисует черные лейблы. Лейблы должны поддерживать событие нажатия на крестик и передавать пользователю компонента информацию о своих name и id.

  2. Также внутри компонента перед лейблами разместить кнопку "By default", которая передает пользователю компонента инфу о том, что её нажали.

  3. Постараться дробить компоненты, используемые внутри ProductsFilterLabels на небольшие понятные компоненты. Сам компонент разместить в src/components/Product. Относящиеся только к нему кусочки кода располагать в его папке.

Макет - https://www.figma.com/file/8BD1H4T6LjsTP7EVBeEJ24/Coffee-shop?type=design&node-id=2413-4945&mode=design&t=gdKdBfvRIx1xk2AU-0

скрин, чтобы знать что искать на макете:

репо проекта: https://github.com/Sunagatov/Iced-Latte-Frontend

image

@anksuunamun
Copy link
Contributor

Completed the test task as described

  • implemented badges/labels for illustrating product filtering (src/components/Product/ProductsFilterLabels/ProductsFilterLabels.tsx)
  • new component added on products page

iakivpekarskyi
iakivpekarskyi previously approved these changes Apr 22, 2024
Copy link
Collaborator

@iakivpekarskyi iakivpekarskyi left a comment

Choose a reason for hiding this comment

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

approved

Lightness322
Lightness322 previously approved these changes Apr 22, 2024
Copy link
Contributor

@Lightness322 Lightness322 left a comment

Choose a reason for hiding this comment

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

Approved

freecree
freecree previously approved these changes Apr 22, 2024
# Conflicts:
#	src/components/Review/CommentsList/CommentsList.tsx
#	src/components/Review/ReviewComponent/ReviewComponent.tsx
#	src/components/UI/Dropdown/Dropdown.tsx
#	src/services/reviewService.ts
#	src/types/Button.ts
# Conflicts:
#	src/components/Review/CommentsList/CommentsList.tsx
#	src/components/Review/ReviewComponent/ReviewComponent.tsx
#	src/components/UI/Dropdown/Dropdown.tsx
#	src/services/reviewService.ts
#	src/types/Button.ts
# Conflicts:
#	src/components/Review/CommentsList/CommentsList.tsx
#	src/components/Review/ReviewComponent/ReviewComponent.tsx
#	src/components/UI/Dropdown/Dropdown.tsx
#	src/services/reviewService.ts
#	src/types/Button.ts
@anksuunamun
Copy link
Contributor

These changes will be merged into PR #169, because the forked repository was causing issues with Sonar.

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.

5 participants