Skip to content

Conversation

@untreu2
Copy link
Member

@untreu2 untreu2 commented Jul 23, 2025

Description

The "Search in Chat" feature has been added in accordance with the designs.

image image

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

Checklist

  • Run just precommit to ensure that formatting and linting are correct
  • Updated the CHANGELOG.md file with your changes

@josefinalliende josefinalliende self-requested a review July 23, 2025 13:55
@untreu2 untreu2 requested review from Quwaysim and codeswot July 23, 2025 13:57
Copy link
Contributor

@josefinalliende josefinalliende left a comment

Choose a reason for hiding this comment

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

Really cool feature! Huge job! 🚀 I still have to try it locally but left some comments/doubts in the meantime

visualState: AppButtonVisualState.secondary,
icon: const Text('Search Chat'),
label: SvgPicture.asset(
AssetsPaths.icSearch,
Copy link
Contributor

Choose a reason for hiding this comment

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

I have a doubt.. there is a carbon icons package that has the same icons that Figma design. Is there a reason to have them downloaded as svgs?

Copy link
Contributor

Choose a reason for hiding this comment

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

Its seems confusing to me that the icon prop receives the text and that the label prop receives the icon...

Copy link
Member Author

Choose a reason for hiding this comment

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

I did this because of the position of the icon and label. This is more of a discussion about app button widget. So I'll leave it as it is for now.

As for the SVG issue, I used the assets folder so that we could make changes to them from a single location in the future. I think @Quwaysim created the assets folder.

Copy link
Contributor

Choose a reason for hiding this comment

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

So, should all CarbonIcons be replaced with SVGs from the assets folder? I like the CarbonIcons syntax, t’s easy to read and makes it simple to match icon names with Figma. That said, maybe SVGs work better in Flutter? Or are there any drawbacks to using CarbonIcons? Happy to chat more about it on Thursday to make sure we're on the same page.

Copy link
Contributor

Choose a reason for hiding this comment

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

Related to the app button widget .. Would it be okay if I open a small issue to suggest adding something like an iconPosition prop to the button? Just to make it clearer whether the icon is on the left or right—so we don't have to swap prop values like in this case.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, It’d be good for sure.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'll open the issue then! 😄

untreu2 added 2 commits July 23, 2025 18:36
Simplifies the loop for finding query matches in message content by using a single variable for match index and updating it within the loop. This improves readability and ensures correct handling of overlapping matches.
Copy link
Contributor

@josefinalliende josefinalliende left a comment

Choose a reason for hiding this comment

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

I tried to help with the rebase due to the conflicts cause of my PR that renames components. Hope it helps!

],
),
Gap(32.h),
AppFilledButton.icon(
Copy link
Contributor

Choose a reason for hiding this comment

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

Just to help with the rebase: this one is now called WnFilledButton

),
Gap(32.h),
AppFilledButton.icon(
size: AppButtonSize.small,
Copy link
Contributor

Choose a reason for hiding this comment

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

same, to help with the rebase: this one is now called WnButtonVisualState

),

Gap(12.h),
AppFilledButton.icon(
Copy link
Contributor

Choose a reason for hiding this comment

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

same, to help with the rebase: this one is now called WnFilledButton


Gap(12.h),
AppFilledButton.icon(
size: AppButtonSize.small,
Copy link
Contributor

Choose a reason for hiding this comment

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

same, to help with the rebase: this one is now called WnButtonSize

}
// Only show AppBar when search is not active
if (!searchState.isSearchActive)
CustomAppBar.sliver(
Copy link
Contributor

Choose a reason for hiding this comment

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

same, to help with the rebase: this one is now called WnAppBar

@josefinalliende josefinalliende self-requested a review July 23, 2025 22:42
Copy link
Contributor

@josefinalliende josefinalliende left a comment

Choose a reason for hiding this comment

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

I tried it locally and loved it 😍 . Just a couple of small feedback (totally fine to address in a future PR—I just wanted to share them so we don’t forget):

  • The color of the match count looks white, but in Figma it seems to be muted.
Captura de pantalla 2025-07-23 a la(s) 6 41 49 p m
  • Messages without a match don’t appear transparent—they look like regular messages. Not sure if that’s intentional, but I think adding some transparency might help make it clearer when a message doesn't contain a match.
Without match on first message ❓ With match in first message ✅
no-match-on-first match on first
doubt ok

@untreu2
Copy link
Member Author

untreu2 commented Jul 23, 2025

I tried it locally and loved it 😍 . Just a couple of small feedback (totally fine to address in a future PR—I just wanted to share them so we don’t forget):

  • The color of the match count looks white, but in Figma it seems to be muted.
Captura de pantalla 2025-07-23 a la(s) 6 41 49 p m
  • Messages without a match don’t appear transparent—they look like regular messages. Not sure if that’s intentional, but I think adding some transparency might help make it clearer when a message doesn't contain a match.

|Without match on first message| ❓ With match in first message ✅ |

|----|----|

|no-match-on-first|match on first|

|doubt|ok|

Thanks for the feedback! Noted.

@untreu2 untreu2 merged commit cb3e44f into master Jul 23, 2025
1 check passed
@untreu2 untreu2 deleted the search-in-chat branch July 25, 2025 14:03
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.

3 participants