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

1093/search redesign #1150

Merged
merged 66 commits into from
Jan 9, 2024
Merged

1093/search redesign #1150

merged 66 commits into from
Jan 9, 2024

Conversation

Ty-ci
Copy link
Contributor

@Ty-ci Ty-ci commented Dec 18, 2023

Refactored main search page to follow recent design changes and allow searching for more content types.

Figma: https://www.figma.com/file/A9aoQH2FGhR1D14wvvk6FW/Mestsky-web-(bratislava.sk)?type=design&node-id=1223-1739&mode=design&t=lVTUvjy2sRM3DzOD-0

Satus 2024/01/05

Implemented:

  • Search bar and options row building on top of React Aria Components, with updated design
  • Search categories: articles, webpages, contacts

Ready but hidden:

  • Search category: inBA articles (because currently there is only one inBA article in the production database)

To be implemented:

  • Search categories: Official Board, inBA releases, Regulation (VZN), events, zverejnovanie,
  • Secondary search filter for some categories
  • "didnt't find what you were looking for?" section at the bottom of the page

Details can be found in #1072

@Ty-ci Ty-ci requested a review from radoslavzeman December 18, 2023 14:49
@Ty-ci Ty-ci linked an issue Dec 18, 2023 that may be closed by this pull request
Copy link
Contributor

@radoslavzeman radoslavzeman left a comment

Choose a reason for hiding this comment

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

Round 2 of comments

@@ -12,7 +13,9 @@ export const SearchResultsHeader = ({ title, handleShowMore }: SearchResultsHead

return (
<div className="flex flex-col flex-wrap items-baseline justify-between gap-y-2 text-gray-800 sm:flex-row">
<h2 className="text-size-h4">{title}</h2>
<Typography type="h2" size="h4" className="text-gray-800">
Copy link
Contributor

Choose a reason for hiding this comment

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

In this kind of situations, we always want confront and change Figma to follow design system rules. --> Write a comment to Figma and tag Patrik.
DS Foundations can be found here https://www.figma.com/file/ctDKMhAPIjLUVNNmq430D4/DS-ESBS%3A-Foundations?node-id=59-21&t=M4lXbCEzOWWIiekd-0

@@ -8,6 +8,7 @@ import React, { ReactNode } from 'react'
type PaginationProps = {
currentPage: number
totalCount: number
style?: 'black' | 'category'
Copy link
Contributor

Choose a reason for hiding this comment

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

1: style is kind of reserved word. I this case variant is the best naming.

2: Please revert this change as it's not sustainable. Whole DS is now being updated (a "black" pagination is what "category" was used for before).
We want to make a global change that will solve this for all components at once, I would like to avoid local minor changes to specific components.

Please revert this change. (And if we want to have black pagination, we can still use getCategoryColorLocalStyle({category: 'gray'})

Copy link
Contributor Author

Choose a reason for hiding this comment

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

{resultsCount.get(selectedKey) > 0 ? (
<p>{t('SearchPage.showingResults', { count: resultsCount.get(selectedKey) })}</p>
{getResultsCountById(selectedKey) > 0 ? (
<p>
Copy link
Contributor

Choose a reason for hiding this comment

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

Use <Typography> please

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@radoslavzeman radoslavzeman left a comment

Choose a reason for hiding this comment

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

Very nice job! I think we are ready to merge 🥳

@github-actions github-actions bot added pr: fix & ship 🚢 No additional review needed before merge - some work may be required, if specified in last review and removed pr: needs review 🙏 labels Jan 8, 2024
Copy link

github-actions bot commented Jan 9, 2024

Test build pipeline info 🚀

Changes in the code and tag info:

➡️ Changes in strapi: false

➡️ Changes in next: true

We are going to build 🚢

🔜 next

🥳 Bratiska-cli successfully created an kustomize file.

@Ty-ci Ty-ci merged commit 56dd7af into master Jan 9, 2024
7 of 8 checks passed
@Ty-ci Ty-ci deleted the 1093/Search-redesign branch January 9, 2024 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: fix & ship 🚢 No additional review needed before merge - some work may be required, if specified in last review pr: needs review 🙏
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor vyhladavania
2 participants