Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
ddc96b77
Commit
ddc96b77
authored
Dec 14, 2023
by
Robert Knight
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move a comment down to the data structure it describes
parent
06b77010
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
17 deletions
+16
-17
filters.ts
src/sidebar/store/modules/filters.ts
+16
-17
No files found.
src/sidebar/store/modules/filters.ts
View file @
ddc96b77
...
...
@@ -5,23 +5,6 @@ import type { FocusConfig, SidebarSettings } from '../../../types/config';
import
type
{
FocusUserInfo
}
from
'../../../types/rpc'
;
import
{
createStoreModule
,
makeAction
}
from
'../create-store'
;
/**
* Manage state pertaining to the filtering of annotations in the UI.
*
* There are a few sources of filtering that gets applied to annotations:
*
* - focusFilters: Filters defined by config/settings. Currently, supports a
* user filter. Application of these filters may be toggled on/off by user
* interaction (`focusActive`), but the values of these filters are set by
* config/settings or RPC (not by user directly). The value(s) of
* focusFilters are retained even when focus is inactive such that they might
* be re-applied later.
* - filters: Filters set by faceting/filtering UI. Any filter here is currently
* active (applied).
* - query: String query that is either typed in by the user or provided in
* settings. A query string may contain supported facets.
*/
export
type
FilterOption
=
{
/** The machine-readable value of the option */
value
:
string
;
...
...
@@ -42,6 +25,22 @@ type FocusState = {
displayName
:
string
;
};
/**
* State pertaining to the filtering of annotations in the UI.
*
* There are a few sources of filtering that gets applied to annotations:
*
* - focusFilters: Filters defined by config/settings. Currently, supports a
* user filter. Application of these filters may be toggled on/off by user
* interaction (`focusActive`), but the values of these filters are set by
* config/settings or RPC (not by user directly). The value(s) of
* focusFilters are retained even when focus is inactive such that they might
* be re-applied later.
* - filters: Filters set by faceting/filtering UI. Any filter here is currently
* active (applied).
* - query: String query that is either typed in by the user or provided in
* settings. A query string may contain supported facets.
*/
export
type
State
=
{
filters
:
Filters
;
focusActive
:
boolean
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment