Skip to content

Commit 029c31a

Browse files
committed
Code review feedback
1 parent 8743958 commit 029c31a

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

src/components/CollectionImportButton.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import * as React from "react";
22
import { Panel } from "library-simplified-reusable-components";
33
import { CollectionData, ProtocolData } from "../interfaces";
44

5+
const IMPORT_DEFAULT_LABEL_TEXT = "Queue Import";
6+
const IMPORT_FORCED_FULL_LABEL_TEXT = "Force full re-import";
7+
58
export interface CollectionImportButtonProps {
69
collection: CollectionData;
710
protocols: ProtocolData[];
@@ -94,18 +97,19 @@ const CollectionImportButton: React.FC<CollectionImportButtonProps> = ({
9497
onChange={(e) => setForce(e.target.checked)}
9598
disabled={disabled || importing}
9699
/>{" "}
97-
Force full re-import
100+
{IMPORT_FORCED_FULL_LABEL_TEXT}
98101
</label>
99102
</div>
100103
{feedback && <div className={feedbackClass}>{feedback}</div>}
101104
<p className="description">
102-
Queue Import picks up new and changed items. Check{" "}
103-
<strong>Force full re-import</strong> to re-process everything.
105+
{IMPORT_DEFAULT_LABEL_TEXT} picks up new and changed items. Check{" "}
106+
<strong>{IMPORT_FORCED_FULL_LABEL_TEXT}</strong> to re-process
107+
everything.
104108
</p>
105109
<details className="collection-import-details" key={collection?.id}>
106110
<summary>More details</summary>
107111
<dl className="collection-import-docs">
108-
<dt>Queue Import</dt>
112+
<dt>{IMPORT_DEFAULT_LABEL_TEXT}</dt>
109113
<dd>
110114
Schedules a background import job that checks for new or updated
111115
items from the collection source and adds them to the catalog. Only
@@ -114,7 +118,7 @@ const CollectionImportButton: React.FC<CollectionImportButtonProps> = ({
114118
appear in the catalog, or when you want to pick up recent changes
115119
from the source.
116120
</dd>
117-
<dt>Force full re-import</dt>
121+
<dt>{IMPORT_FORCED_FULL_LABEL_TEXT}</dt>
118122
<dd>
119123
When checked, the import job re-processes every item in the
120124
collection, regardless of whether it appears to have changed since

0 commit comments

Comments
 (0)