Compare commits

...

2 Commits

Author SHA1 Message Date
Nicolas Mowen
ede07f43cb Improve toast consistency 2025-11-24 15:52:22 -07:00
Nicolas Mowen
8ceeb4ffb3 try changing rocm 2025-11-24 15:52:09 -07:00
9 changed files with 18 additions and 6 deletions

View File

@ -2,7 +2,7 @@ variable "AMDGPU" {
default = "gfx900" default = "gfx900"
} }
variable "ROCM" { variable "ROCM" {
default = "7.1" default = "7.1.0"
} }
variable "HSA_OVERRIDE_GFX_VERSION" { variable "HSA_OVERRIDE_GFX_VERSION" {
default = "" default = ""

View File

@ -53,6 +53,7 @@
"selectOrExport": "Select or Export", "selectOrExport": "Select or Export",
"toast": { "toast": {
"success": "Successfully started export. View the file in the exports page.", "success": "Successfully started export. View the file in the exports page.",
"view": "View",
"error": { "error": {
"failed": "Failed to start export: {{error}}", "failed": "Failed to start export: {{error}}",
"endTimeMustAfterStartTime": "End time must be after start time", "endTimeMustAfterStartTime": "End time must be after start time",

View File

@ -87,7 +87,7 @@ export default function ReviewCard({
position: "top-center", position: "top-center",
action: ( action: (
<a href="/export" target="_blank" rel="noopener noreferrer"> <a href="/export" target="_blank" rel="noopener noreferrer">
<Button>View</Button> <Button>{t("export.toast.view")}</Button>
</a> </a>
), ),
}); });

View File

@ -148,7 +148,9 @@ export default function Step3ChooseExamples({
// Step 3: Kick off training // Step 3: Kick off training
await axios.post(`/classification/${step1Data.modelName}/train`); await axios.post(`/classification/${step1Data.modelName}/train`);
toast.success(t("wizard.step3.trainingStarted")); toast.success(t("wizard.step3.trainingStarted"), {
closeButton: true,
});
setIsTraining(true); setIsTraining(true);
}, },
[step1Data, step2Data, t], [step1Data, step2Data, t],

View File

@ -97,7 +97,7 @@ export default function ExportDialog({
position: "top-center", position: "top-center",
action: ( action: (
<a href="/export" target="_blank" rel="noopener noreferrer"> <a href="/export" target="_blank" rel="noopener noreferrer">
<Button>View</Button> <Button>{t("export.toast.view")}</Button>
</a> </a>
), ),
}); });

View File

@ -106,7 +106,9 @@ export default function MobileReviewSettingsDrawer({
position: "top-center", position: "top-center",
action: ( action: (
<a href="/export" target="_blank" rel="noopener noreferrer"> <a href="/export" target="_blank" rel="noopener noreferrer">
<Button>View</Button> <Button>
{t("export.toast.view", { ns: "components/dialog" })}
</Button>
</a> </a>
), ),
}, },

View File

@ -808,6 +808,7 @@ function FaceAttemptGroup({
if (resp.status == 200) { if (resp.status == 200) {
toast.success(t("toast.success.trainedFace"), { toast.success(t("toast.success.trainedFace"), {
position: "top-center", position: "top-center",
closeButton: true,
}); });
onRefresh(); onRefresh();
} }

View File

@ -104,12 +104,14 @@ export default function ModelTrainingView({ model }: ModelTrainingViewProps) {
if (modelState == "complete") { if (modelState == "complete") {
toast.success(t("toast.success.trainedModel"), { toast.success(t("toast.success.trainedModel"), {
position: "top-center", position: "top-center",
closeButton: true,
}); });
setWasTraining(false); setWasTraining(false);
refreshDataset(); refreshDataset();
} else if (modelState == "failed") { } else if (modelState == "failed") {
toast.error(t("toast.error.trainingFailed"), { toast.error(t("toast.error.trainingFailed"), {
position: "top-center", position: "top-center",
closeButton: true,
}); });
setWasTraining(false); setWasTraining(false);
} }
@ -182,6 +184,7 @@ export default function ModelTrainingView({ model }: ModelTrainingViewProps) {
setWasTraining(true); setWasTraining(true);
toast.success(t("toast.success.trainingModel"), { toast.success(t("toast.success.trainingModel"), {
position: "top-center", position: "top-center",
closeButton: true,
}); });
} }
}) })
@ -193,6 +196,7 @@ export default function ModelTrainingView({ model }: ModelTrainingViewProps) {
toast.error(t("toast.error.trainingFailedToStart", { errorMessage }), { toast.error(t("toast.error.trainingFailedToStart", { errorMessage }), {
position: "top-center", position: "top-center",
closeButton: true,
}); });
}); });
}, [model, t]); }, [model, t]);

View File

@ -219,7 +219,9 @@ export default function EventView({
position: "top-center", position: "top-center",
action: ( action: (
<a href="/export" target="_blank" rel="noopener noreferrer"> <a href="/export" target="_blank" rel="noopener noreferrer">
<Button>View</Button> <Button>
{t("export.toast.view", { ns: "components/dialog" })}
</Button>
</a> </a>
), ),
}, },