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
099152fb
Commit
099152fb
authored
Jan 15, 2024
by
Alejandro Celaya
Committed by
Alejandro Celaya
Jan 15, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move user select first in export annotations dialog
parent
28f09161
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
73 additions
and
67 deletions
+73
-67
ExportAnnotations.tsx
src/sidebar/components/ShareDialog/ExportAnnotations.tsx
+73
-67
No files found.
src/sidebar/components/ShareDialog/ExportAnnotations.tsx
View file @
099152fb
...
@@ -210,7 +210,7 @@ function ExportAnnotations({
...
@@ -210,7 +210,7 @@ function ExportAnnotations({
>
>
{exportableAnnotations.length > 0 ? (
{exportableAnnotations.length > 0 ? (
<>
<>
<p className="text-color-text-light
mb-3
">
<p className="text-color-text-light">
<Link
<Link
variant="text-light"
variant="text-light"
underline="always"
underline="always"
...
@@ -221,6 +221,30 @@ function ExportAnnotations({
...
@@ -221,6 +221,30 @@ function ExportAnnotations({
</Link>{' '}
</Link>{' '}
about copying and exporting annotations.
about copying and exporting annotations.
</p>
</p>
<div className="flex flex-col gap-y-3">
<label htmlFor={userSelectId} className="font-medium">
Select which user{"'"}s annotations to export:
</label>
<SelectNext
value={selectedUser}
onChange={setSelectedUser}
buttonId={userSelectId}
buttonContent={
<UserAnnotationsListItem userAnnotations={selectedUser} />
}
data-testid="user-select"
>
<SelectNext.Option value={allAnnotationsOption}>
<UserAnnotationsListItem
userAnnotations={allAnnotationsOption}
/>
</SelectNext.Option>
{userList.map(userInfo => (
<SelectNext.Option key={userInfo.userid} value={userInfo}>
<UserAnnotationsListItem userAnnotations={userInfo} />
</SelectNext.Option>
))}
</SelectNext>
<label
<label
data-testid="export-count"
data-testid="export-count"
htmlFor={fileInputId}
htmlFor={fileInputId}
...
@@ -246,7 +270,9 @@ function ExportAnnotations({
...
@@ -246,7 +270,9 @@ function ExportAnnotations({
<SelectNext
<SelectNext
value={exportFormat}
value={exportFormat}
onChange={setExportFormat}
onChange={setExportFormat}
buttonContent={exportFormat.shortTitle ?? exportFormat.title}
buttonContent={
exportFormat.shortTitle ?? exportFormat.title
}
data-testid="export-format-select"
data-testid="export-format-select"
right
right
>
>
...
@@ -269,27 +295,7 @@ function ExportAnnotations({
...
@@ -269,27 +295,7 @@ function ExportAnnotations({
</div>
</div>
)}
)}
</div>
</div>
<label htmlFor={userSelectId} className="block font-medium">
</div>
Select which user{"'"}s annotations to export:
</label>
<SelectNext
value={selectedUser}
onChange={setSelectedUser}
buttonId={userSelectId}
buttonContent={
<UserAnnotationsListItem userAnnotations={selectedUser} />
}
data-testid="user-select"
>
<SelectNext.Option value={allAnnotationsOption}>
<UserAnnotationsListItem userAnnotations={allAnnotationsOption} />
</SelectNext.Option>
{userList.map(userInfo => (
<SelectNext.Option key={userInfo.userid} value={userInfo}>
<UserAnnotationsListItem userAnnotations={userInfo} />
</SelectNext.Option>
))}
</SelectNext>
</>
</>
) : (
) : (
<p data-testid="no-annotations-message">
<p data-testid="no-annotations-message">
...
...
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