Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

Add location filter chip in search - #9304

Merged
JammingBen merged 43 commits into
masterfrom
add-location-filter-search
Jul 14, 2023
Merged

JammingBen merged 43 commits into
masterfrom
add-location-filter-search

Conversation

@lookacat

@lookacat lookacat commented Jun 28, 2023 •

Copy link
Copy Markdown
Contributor

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

update-docs Bot commented Jun 28, 2023

Copy link
Copy Markdown

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

lookacat commented Jul 3, 2023

Copy link
Copy Markdown
Contributor Author

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
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
Copy Markdown
Contributor

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.

@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
@lookacat
lookacat force-pushed the add-location-filter-search branch from d31e1c5 to d02010f Compare July 14, 2023 10:40
@sonarqubecloud

Copy link
Copy Markdown

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

@JammingBen JammingBen left a comment

Copy link
Copy Markdown
Contributor

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[web] Add "Location" filter

2 participants