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

Add search in solutions #2190

Merged
merged 9 commits into from
Feb 22, 2024
Merged

Conversation

zaelgohary
Copy link
Contributor

Description

  • Add search in Application page

Changes

  • Filter applications based on the search item

Related Issues

Checklist

  • Tests included
  • Build pass
  • Documentation
  • Code format and docstrings
  • Screenshots/Video attached (needed for UI changes)

@AlaaElattar
Copy link
Contributor

  • when i searched then clicked, it didn't open directly.
Screencast.from.02-18-2024.02.16.02.PM.webm

@AhmedHanafy725 AhmedHanafy725 changed the base branch from development to development_314 February 18, 2024 13:46
@zaelgohary zaelgohary marked this pull request as draft February 19, 2024 07:51
@MohamedElmdary
Copy link
Member

  • when i searched then clicked, it didn't open directly.

Screencast.from.02-18-2024.02.16.02.PM.webm

I don't think we can use combox because it's default searching will be remove after any click event no matter we stop propagation or not because it's not about click but blur event

So I'd recommend using v-text-frield instead as we don't need to select from list but search with some text

@zaelgohary zaelgohary marked this pull request as ready for review February 20, 2024 12:06
Comment on lines 3 to 9
<v-text-field
label="Search Applications"
v-model="searchItem"
class="mb-5"
@input="filterCards"
clearable
></v-text-field>
Copy link
Member

Choose a reason for hiding this comment

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

why do we need @input ? we already using vue so we can easily check if value is updated

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Replaced function logic w computed variable.

@MohamedElmdary
Copy link
Member

Also if a user wrote a search query which doesn't match any application we should show a message with some text message (e.g No solution was found with the provided search query)

@zaelgohary zaelgohary merged commit 91ea575 into development_314 Feb 22, 2024
3 checks passed
@zaelgohary zaelgohary deleted the development_search_solutions branch February 22, 2024 13:58
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