Small fixes for global search [SCI-10712]

This commit is contained in:
Anton 2024-05-15 12:21:29 +02:00
parent cb35d5f16b
commit b3fe869c23
3 changed files with 15 additions and 11 deletions

View file

@ -40,7 +40,6 @@ class ProjectsController < ApplicationController
end
end
def inventory_assigning_project_filter
viewable_experiments = Experiment.viewable_by_user(current_user, current_team)
assignable_my_modules = MyModule.repository_row_assignable_by_user(current_user)
@ -260,7 +259,6 @@ class ProjectsController < ApplicationController
render json: { data: user_roles_collection(Project.new).map(&:reverse) }
end
def actions_toolbar
render json: {
actions:

View file

@ -25,14 +25,17 @@
class="mb-6"
@change="(v) => {this.updatedAt = v}"
></DateFilter>
<div class="sci-label mb-2">{{ i18n.t('search.filters.by_team') }}</div>
<SelectDropdown :options="teams"
class="mb-6"
:with-checkboxes="true"
:clearable="true"
:multiple="true"
:value="selectedTeams"
@change="(v) => {selectedTeams = v}" />
<template v-if="teams.length > 1">
<div class="sci-label mb-2">{{ i18n.t('search.filters.by_team') }}</div>
<SelectDropdown :options="teams"
class="mb-6"
:with-checkboxes="true"
:clearable="true"
:multiple="true"
:value="selectedTeams"
:placeholder="i18n.t('search.filters.by_team_placeholder')"
@change="(v) => {selectedTeams = v}" />
</template>
<div class="sci-label mb-2 flex items-center gap-2">
{{ i18n.t('search.filters.by_user') }}
<i class="sn-icon sn-icon-info" :title="i18n.t('search.filters.by_user_info')"></i>
@ -45,6 +48,7 @@
:clearable="true"
:with-checkboxes="true"
:multiple="true"
:placeholder="i18n.t('search.filters.by_user_placeholder')"
@change="(v) => {selectedUsers = v}" />
<div class="flex items-center gap-2">
<div class="sci-checkbox-container">

View file

@ -472,7 +472,9 @@ en:
by_created_date: "Filter by created date"
by_updated_date: "Filter by updated date"
by_team: "Filter by team"
by_team_placeholder: "Select team"
by_user: "Filter by user"
by_user_placeholder: "Filter by user"
by_user_info: "The 'Filter by user' option will refine search results based on records where the selected user is the creator, modifier, or is assigned to the entry."
include_archived: "Include Archived objects"
clear: "Clear filters"
@ -492,7 +494,7 @@ en:
index:
head_title: "Search"
page_title: "Search"
results_title_html: "Search Results for '%{query}'"
results_title_html: "Search results for '%{query}'"
experiments: "Experiments"
tasks: "Tasks"
task_results: "Task results"