Files
Davide SilvestriandBram Wiepjes b580793dd7 fix(agent): address agent builder feedback (#6781)
* fix(agent): address agent builder feedback

* feat(identities): let builders bind existing identities

Binding an Agent or a Local Baserow integration to an existing identity takes the new identity.bind permission, held by workspace builders and admins. Creating, editing and deleting identities stays admin-only. ADR 013 updated and trimmed of migration and deployment details.

* fix(agent): show ask before changes only for the Everything preset

* fix(agent): fix CI and polish the tools modal and input table

Update tests for the identity bind rule and the key/value input table, keep table keys on one line, use one toggle style in the external tools modal, and apply Prettier.

* fix(agent): compact the pending approvals menu

Each conversation is one line: its title with an ellipsis, then Always allow, Reject and Approve. The chat keeps the full approval card.

* feat(agent): make the conversation sidebar collapsible

* address feedback

* Added a little bit of space after the trigger

---------

Co-authored-by: Bram Wiepjes <bramw@protonmail.com>
2026-11-20 11:54:38 +00:00

54 lines
1.8 KiB
Vue

<template>
<div
class="agent-trigger-start"
:class="{ 'agent-trigger-start--collapsed': !expanded }"
>
<button
type="button"
class="agent-trigger-start__header"
:aria-expanded="expanded"
:aria-controls="textId"
@click="expanded = !expanded"
>
<i class="agent-trigger-start__icon" :class="icon" aria-hidden="true" />
<span class="agent-trigger-start__title">{{ title }}</span>
<i
class="agent-trigger-start__chevron"
:class="expanded ? 'iconoir-nav-arrow-down' : 'iconoir-nav-arrow-right'"
aria-hidden="true"
/>
</button>
<div :id="textId" class="agent-trigger-start__text">
{{ content }}
</div>
</div>
</template>
<script setup>
import { computed, ref, useId } from 'vue'
import { useI18n } from 'vue-i18n'
import { useNuxtApp } from '#app'
import { serviceTypeOf } from '@baserow/modules/agent/utils/triggers'
/** The opening message of a trigger-started conversation. */
const props = defineProps({
/** The resolved trigger message, exactly what the agent received. */
content: { type: String, required: true },
/** The trigger's service type key, null once the trigger is permanently deleted. */
triggerType: { type: String, default: null },
/** The trigger's current name, blank or null when it has none. */
triggerName: { type: String, default: null },
})
const { $registry } = useNuxtApp()
const { t } = useI18n()
const textId = useId()
const expanded = ref(false)
const serviceType = computed(() => serviceTypeOf($registry, props.triggerType))
const icon = computed(() => serviceType.value?.icon || 'iconoir-flash')
const title = computed(() => {
const name = props.triggerName || serviceType.value?.name
return name ? t('agent.startedBy', { name }) : t('agent.startedByTrigger')
})
</script>