Files
archie/ui/src/mappings/MappingsPage.vue
T
sam 94f79177a2
deploy / gate (push) Successful in 4m53s
Quality / check (push) Successful in 6m42s
deploy / archied-image (push) Successful in 3m20s
deploy / agent-image (push) Successful in 11s
deploy / dist-zip (push) Skipped
fix(ui): adopt the type scale across components/ui and pages (#1758)
components/ui and the pages now use only the style.css scale:
text-[0.8rem]→text-label, text-[0.625rem]→text-micro, text-base/text-sm→
text-label (rows and controls), text-xs→text-caption (captions and
secondary text), text-lg/text-xl/text-2xl→text-title (panel and page
titles). Rendered markdown (ChatMarkdown/ChatInline/markdown.ts) keeps
Tailwind steps as the issue allows. 196 files, class-token swaps only.
2026-11-06 23:07:46 +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-label 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>