Inline error paragraphs become destructive Alerts, divided record lists become Item rows, the redirect URI box uses CodeView, and icon-button title hints use Tooltip. Native titles remain on truncated values and on disabled controls.
39 lines
1.1 KiB
Vue
39 lines
1.1 KiB
Vue
<script setup lang="ts">
|
|
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
|
import { MessageCirclePlus } from "@lucide/vue";
|
|
|
|
import { Button } from "@/components/ui/button";
|
|
import ChatSessionActions from "./ChatSessionActions.vue";
|
|
import ChatSessionList from "./ChatSessionList.vue";
|
|
import { newChat } from "./state";
|
|
|
|
/**
|
|
* One row for everything that is not the conversation: which conversation is
|
|
* open, and the controls that are consulted rather than used constantly.
|
|
*
|
|
* Whatever the dock adds to the row, such as its hide control, comes after.
|
|
*/
|
|
</script>
|
|
|
|
<template>
|
|
<div class="flex items-center gap-1 border-b px-3 py-2">
|
|
<ChatSessionList />
|
|
<Tooltip>
|
|
<TooltipTrigger as-child>
|
|
<Button
|
|
variant="ghost"
|
|
size="icon-sm"
|
|
class="flex-none"
|
|
aria-label="New chat"
|
|
@click="newChat"
|
|
>
|
|
<MessageCirclePlus />
|
|
</Button>
|
|
</TooltipTrigger>
|
|
<TooltipContent>New chat</TooltipContent>
|
|
</Tooltip>
|
|
<ChatSessionActions />
|
|
<slot />
|
|
</div>
|
|
</template>
|