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

[projects] fix search input on /new #5375

Merged
merged 1 commit into from
Aug 25, 2021
Merged

[projects] fix search input on /new #5375

merged 1 commit into from
Aug 25, 2021

Conversation

AlexTugarev
Copy link
Member

Fixes #5373

@roboquat roboquat requested a review from laushinka August 25, 2021 11:23
@AlexTugarev AlexTugarev requested review from atduarte and gtsiolis and removed request for laushinka August 25, 2021 12:04
@gtsiolis
Copy link
Contributor

gtsiolis commented Aug 25, 2021

Looking at this now! 👀

Copy link
Contributor

@gtsiolis gtsiolis left a comment

Choose a reason for hiding this comment

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

UX works like a charm! 🔮

Thanks for picking this up @AlexTugarev!
We're now one step closer to shipping Teams & Projects! 🚢

@roboquat
Copy link
Contributor

LGTM label has been added.

Git tree hash: 03c5caaf14285cca47fbbbf58083bba13b5af424

@roboquat roboquat removed the lgtm label Aug 25, 2021
@AlexTugarev
Copy link
Member Author

/hold

@AlexTugarev
Copy link
Member Author

@gtsiolis I pushed another small fix. turns out the search filter was case sensitive. it's fixed now.

@AlexTugarev AlexTugarev requested a review from gtsiolis August 25, 2021 12:52
Copy link
Contributor

@gtsiolis gtsiolis left a comment

Choose a reason for hiding this comment

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

Tried this again and works smoothly! 🌟

It helped to have some projects in place with mixed casing. 🙈

@@ -214,9 +214,11 @@ export default function NewProject() {
const renderSelectRepository = () => {

const noReposAvailable = reposInAccounts.length === 0;
const filteredRepos = Array.from(reposInAccounts).filter(r => r.account === selectedAccount && r.name.includes(repoSearchFilter));
const filteredRepos = Array.from(reposInAccounts).filter(r => r.account === selectedAccount && `${r.name}`.toLowerCase().includes(repoSearchFilter.toLowerCase()));
Copy link
Contributor

Choose a reason for hiding this comment

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

praise: Thanks so much for fixing this! I was wondering why some projects were not included in the search results when using some lowercase letters. ❗

@roboquat roboquat added the lgtm label Aug 25, 2021
@roboquat
Copy link
Contributor

LGTM label has been added.

Git tree hash: f977a64fbdfb008db9ac191e9f5f428957182fa1

@AlexTugarev
Copy link
Member Author

/hold cancel

@AlexTugarev
Copy link
Member Author

/approve

@roboquat
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: AlexTugarev, gtsiolis

Associated issue: #5373

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@roboquat roboquat merged commit dec92c5 into main Aug 25, 2021
@roboquat roboquat deleted the at/fix-search-input branch August 25, 2021 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Repository search malfunctions when adding a new project
3 participants