Skip to content

Commit

Permalink
Add a collapsible preservation action help box
Browse files Browse the repository at this point in the history
Fixes #986.
  • Loading branch information
djjuhasz committed Jan 21, 2025
1 parent 48d050c commit 00d95d8
Showing 1 changed file with 42 additions and 2 deletions.
44 changes: 42 additions & 2 deletions dashboard/src/pages/packages/[id]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import StatusBadge from "@/components/StatusBadge.vue";
import UUID from "@/components/UUID.vue";
import { useAuthStore } from "@/stores/auth";
import { usePackageStore } from "@/stores/package";
import { computed, ref } from "vue";
import { computed } from "vue";
import IconBoxArrowUpRight from "~icons/bi/box-arrow-up-right";
import IconHelpSolid from "~icons/clarity/help-solid?height=0.8em&width=0.8em";
const authStore = useAuthStore();
const packageStore = usePackageStore();
Expand Down Expand Up @@ -68,7 +70,45 @@ const createAipWorkflow = computed(

<div v-if="authStore.checkAttributes(['package:listActions'])">
<div class="d-flex">
<h2 class="mb-0">Preservation actions</h2>
<h2 class="mb-0">
Preservation actions
<a
id="presActionHelpToggle"
data-bs-toggle="collapse"
href="#preservationActionHelp"
role="button"
aria-expanded="false"
aria-controls="preservationActionHelp"
aria-label="Show preservation action help"
><IconHelpSolid alt="help"
/></a>
</h2>
</div>
<div
class="collapse"
id="preservationActionHelp"
aria-labelledby="presActionHelpToggle"
>
<div class="card card-body flex flex-column bg-light">
<div>
<p>
A preservation action is a <strong>workflow</strong> composed of
one or more <strong>tasks</strong> performed on a package to
support preservation.
</p>
<p>
Click on a preservation action listed below to expand it and see
more information on individual tasks run as part of the workflow.
</p>
</div>
<div class="align-self-end">
<a
href="https://github.com/artefactual-sdps/enduro/blob/main/docs/src/user-manual/usage.md#view-tasks-in-enduro"
target="_new"
>Learn more <IconBoxArrowUpRight alt="" aria-hidden="true"
/></a>
</div>
</div>
</div>

<hr />
Expand Down

0 comments on commit 00d95d8

Please sign in to comment.