Files
archie/ui/src/mappings/MappingsPage.vue
T
sam 686da8be4d fix(ui): trim view prose, en dash placeholders, collapse fixed grids on phones
Drop empty-state essays that repeated their titles, the harness native select
becomes the Select component, and the binding and source forms collapse to one
column below sm. Issue-ID and history narration removed from comments.
2026-10-18 15:02:00 +11:00

45 lines
1.4 KiB
Vue

<script setup lang="ts">
import { Plus } from "@lucide/vue";
import { onMounted } from "vue";
import { Button } from "@/components/ui/button";
import MappingActionError from "./MappingActionError.vue";
import MappingDeleteDialog from "./MappingDeleteDialog.vue";
import MappingEditorDialog from "./MappingEditorDialog.vue";
import MappingsTable from "./MappingsTable.vue";
import { actionError, loadMappings, startCreate } from "./state";
/**
* Payload field mapping: bind named fields to JSON paths inside a real captured
* event, preview the resolution before saving, and manage saved mappings. See
* docs/prds/payload-field-mapping.md. Binding a mapping to a workflow happens
* on the Bindings tab.
*
* Composes the list and the two overlays; it holds no state of its own.
*/
onMounted(loadMappings);
</script>
<template>
<div>
<!-- The tab owns its own action row; the page header names the page. -->
<div class="mb-4 flex flex-wrap items-center justify-end gap-2">
<RouterLink to="/org/playbooks" class="text-sm underline">Installed playbooks</RouterLink>
<Button @click="startCreate">
<Plus data-icon="inline-start" />
New mapping</Button>
</div>
<MappingActionError
v-if="actionError"
class="mb-4"
:failure="actionError"
/>
<MappingsTable />
<MappingEditorDialog />
<MappingDeleteDialog />
</div>
</template>