fix: additional tooltips for add plan modal

This commit is contained in:
garethgeorge
2024-05-18 19:12:31 -07:00
parent 294864fe43
commit fcdf07da6c

View File

@@ -152,6 +152,7 @@ export const AddPlanModal = ({ template }: { template: Plan | null }) => {
disabled={confirmLoading} disabled={confirmLoading}
> >
{/* Plan.id */} {/* Plan.id */}
<Tooltip title="Unique ID that identifies this plan in the backrest UI (e.g. s3-myplan). This cannot be changed after creation.">
<Form.Item<Plan> <Form.Item<Plan>
hasFeedback hasFeedback
name="id" name="id"
@@ -184,8 +185,10 @@ export const AddPlanModal = ({ template }: { template: Plan | null }) => {
disabled={!!template} disabled={!!template}
/> />
</Form.Item> </Form.Item>
</Tooltip>
{/* Plan.repo */} {/* Plan.repo */}
<Tooltip title="The repo that backrest will store your snapshots in.">
<Form.Item<Plan> <Form.Item<Plan>
name="repo" name="repo"
label="Repository" label="Repository"
@@ -206,6 +209,7 @@ export const AddPlanModal = ({ template }: { template: Plan | null }) => {
disabled={!!template} disabled={!!template}
/> />
</Form.Item> </Form.Item>
</Tooltip>
{/* Plan.paths */} {/* Plan.paths */}
<Form.Item label="Paths" required={true}> <Form.Item label="Paths" required={true}>
@@ -258,6 +262,20 @@ export const AddPlanModal = ({ template }: { template: Plan | null }) => {
</Form.Item> </Form.Item>
{/* Plan.excludes */} {/* Plan.excludes */}
<Tooltip
title={
<>
Paths to exclude from your backups. See the{" "}
<a
href="https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files"
target="_blank"
>
restic docs
</a>{" "}
for more info.
</>
}
>
<Form.Item label="Excludes" required={false}> <Form.Item label="Excludes" required={false}>
<Form.List <Form.List
name="excludes" name="excludes"
@@ -307,8 +325,23 @@ export const AddPlanModal = ({ template }: { template: Plan | null }) => {
)} )}
</Form.List> </Form.List>
</Form.Item> </Form.Item>
</Tooltip>
{/* Plan.excludes */} {/* Plan.iexcludes */}
<Tooltip
title={
<>
Case insensitive paths to exclude from your backups. See the{" "}
<a
href="https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files"
target="_blank"
>
restic docs
</a>{" "}
for more info.
</>
}
>
<Form.Item label="Excludes (Case Insensitive)" required={false}> <Form.Item label="Excludes (Case Insensitive)" required={false}>
<Form.List <Form.List
name="iexcludes" name="iexcludes"
@@ -358,6 +391,7 @@ export const AddPlanModal = ({ template }: { template: Plan | null }) => {
)} )}
</Form.List> </Form.List>
</Form.Item> </Form.Item>
</Tooltip>
{/* Plan.cron */} {/* Plan.cron */}
<Tooltip title="Cron expression to schedule the plan in 24 hour time"> <Tooltip title="Cron expression to schedule the plan in 24 hour time">