Skip to content

Commit

Permalink
Update serial number override alert content
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanielrindlaub committed Jan 13, 2025
1 parent b3a2765 commit 2a35037
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions src/features/upload/BulkUploadForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,13 +256,21 @@ const BulkUploadForm = () => {
const alertContent = {
'override-serial-set': {
title: 'Serial Number Override Set',
type: 'info',
body: (
<p>
You&apos;ve included a camera Serial Number Override in your upload. Setting the Serial
Number Override will override the serial number for all images in this ZIP file, so proceed
with caution. For more information on the implications of using this feature, please refer
to the{' '}
<a href="https://docs.animl.camera" target="_blank" rel="noopener noreferrer">
You&apos;ve included a camera Serial Number Override in your upload.{' '}
<strong>
Setting the Serial Number Override will override the serial number for ALL images in this
ZIP file
</strong>
, so proceed with caution. For more information on the implications of using this feature,
please refer to the{' '}
<a
href="https://docs.animl.camera/fundamentals/uploading-images#overriding-serial-numbers"
target="_blank"
rel="noopener noreferrer"
>
Animl Documentation
</a>
.
Expand All @@ -271,13 +279,18 @@ const alertContent = {
},
'no-automation-rule': {
title: 'No Automation Rules Configured',
type: 'warning',
body: (
<p>
There are currently no machine learning automation rules configured to trigger when new
images are added to this Project, so if you proceed, images in this ZIP will be saved, but
the upload will not trigger any machine learning predictions. To learn more about how to
configure machine learning pipelines using Automation Rules, please refer to the{' '}
<a href="https://docs.animl.camera" target="_blank" rel="noopener noreferrer">
<a
href="https://docs.animl.camera/fundamentals/automation-rules"
target="_blank"
rel="noopener noreferrer"
>
Animl Documentation
</a>
.
Expand Down Expand Up @@ -306,7 +319,7 @@ const UploadAlert = ({ open, setAlertOpen, upload, formValues, warnings }) => {
{warnings &&
warnings.map((warn) => {
return (
<Callout key={warn} type="warning" title={alertContent[warn].title}>
<Callout key={warn} type={alertContent[warn].type} title={alertContent[warn].title}>
{alertContent[warn].body}
</Callout>
);
Expand Down

0 comments on commit 2a35037

Please sign in to comment.