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 location filter chip in search #9304

Merged
merged 43 commits into from
Jul 14, 2023
Merged

Conversation

lookacat
Copy link
Contributor

@lookacat lookacat commented Jun 28, 2023

Description

See #9258

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

@update-docs
Copy link

update-docs bot commented Jun 28, 2023

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@lookacat lookacat changed the title WIP add location filter chip in search Add location filter chip in search Jun 29, 2023
@lookacat
Copy link
Contributor Author

lookacat commented Jul 3, 2023

The glitch when selecting a different location scope while the search page is open is related to the backend not yet working, it just stops the update of the component for some reason. So probably fixed as soon as the backend works.

@lookacat lookacat force-pushed the add-location-filter-search branch from fdf1302 to a95f0e2 Compare July 3, 2023 08:00
packages/web-app-files/src/components/Search/List.vue Outdated Show resolved Hide resolved
Comment on lines +131 to +151
const availableLocationOptions = ref([
{
title: $gettext('All Files'),
id: SearchLocationFilterConstants.allFiles,
enabled: true,
default: false
},
{
title: $gettext('Current Folder'),
id: SearchLocationFilterConstants.currentFolder,
enabled: currentFolderAvailable,
default: true
}
])
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would be nice to have a type somewhere so we can re-use it across the app.

packages/web-pkg/src/composables/search/constants.ts Outdated Show resolved Hide resolved
@lookacat lookacat force-pushed the add-location-filter-search branch 2 times, most recently from 4b70f06 to 7f8f62b Compare July 13, 2023 06:59
@lookacat lookacat marked this pull request as ready for review July 13, 2023 14:10
@sonarcloud
Copy link

sonarcloud bot commented Jul 14, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

67.5% 67.5% Coverage
0.0% 0.0% Duplication

@lookacat lookacat requested a review from JammingBen July 14, 2023 12:47
Copy link
Collaborator

@JammingBen JammingBen left a comment

Choose a reason for hiding this comment

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

Nice work! 🥳

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.

[web] Add "Location" filter
2 participants