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
d9c9d5db
Commit
d9c9d5db
authored
Jul 22, 2020
by
Lyza Danger Gardner
Committed by
Lyza Gardner
Jul 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve type-checking
parent
6093ca6b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
selection.js
src/sidebar/store/modules/selection.js
+5
-4
search-filter.js
src/sidebar/util/search-filter.js
+1
-1
thread-annotations.js
src/sidebar/util/thread-annotations.js
+1
-1
No files found.
src/sidebar/store/modules/selection.js
View file @
d9c9d5db
...
...
@@ -531,16 +531,17 @@ function sortKeys(state) {
/**
* Retrieve state needed to calculate the root thread
*
* @
return {
ThreadState}
* @
type {(rootState: any) =>
ThreadState}
*/
const
threadState
=
createSelector
(
rootState
=>
rootState
.
annotations
.
annotations
,
rootState
=>
rootState
.
route
.
name
,
rootState
=>
rootState
.
selection
,
(
annotations
,
routeName
,
selection
)
=>
{
const
filters
=
{};
if
(
focusModeActive
(
selection
))
{
filters
.
user
=
focusModeUserFilter
(
selection
);
const
filters
=
/** @type {Object.<string,string>} */
({});
const
userFilter
=
focusModeUserFilter
(
selection
);
if
(
userFilter
)
{
filters
.
user
=
userFilter
;
}
const
selectionState
=
{
expanded
:
expandedMap
(
selection
),
...
...
src/sidebar/util/search-filter.js
View file @
d9c9d5db
...
...
@@ -134,7 +134,7 @@ export function toObject(searchText) {
* Terms that are not associated with a particular facet are stored in the "any"
* facet.
*
* @param {string
|null
} searchText - Filter query to parse
* @param {string} searchText - Filter query to parse
* @param {FocusFilter} focusFilters - Additional filter terms to mix in
* @return {Object.<string,Facet>}
*/
...
...
src/sidebar/util/thread-annotations.js
View file @
d9c9d5db
...
...
@@ -47,7 +47,7 @@ function buildRootThread(threadState) {
if
(
annotationsFiltered
)
{
const
filters
=
generateFacetedFilter
(
selection
.
filterQuery
,
selection
.
filterQuery
||
''
,
selection
.
filters
);
options
.
filterFn
=
ann
=>
filterAnnotations
([
ann
],
filters
).
length
>
0
;
...
...
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