mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-12-04 08:09:16 +00:00
* fix: stop the breadcrumb sliding when switching sessions Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: make the sidebar switch a button row that only swaps the list Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: list ai sessions inline in the workspace sidebar Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: keep home's composer open while switching workspace Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: data stores in the data menu and a customizable sidebar Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: move folders and groups to settings and add a data section to the sidebar Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: space the sidebar's sections apart and give its rows a little more height Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: remove the session mode switch the sidebar no longer renders Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: follow same-page chat links, restore new session on the rail and list ai chats once Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: follow a chat link whenever the panel shows another conversation Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: let the sidebar's session list fill the space above its pinned rows Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor: drop the group data pages option and keep data as a sidebar section Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep home's composer open only in an empty workspace Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: tell admins without ai credentials they can also hide ai sessions Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: fold home's composer on an outside click while the sidebar is hidden Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: scroll the sidebar as one list and pin the session edit actions Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
42 lines
1.2 KiB
Svelte
42 lines
1.2 KiB
Svelte
<!--
|
|
@component
|
|
A sidebar section's title row. The title folds the section and fills the row up to its actions;
|
|
its padding lines the text up with the nav rows' icons and its height matches theirs, so actions
|
|
are `sm` (h-7) buttons.
|
|
-->
|
|
<script lang="ts">
|
|
import type { Snippet } from 'svelte'
|
|
import { ChevronDown, ChevronRight } from 'lucide-svelte'
|
|
|
|
interface Props {
|
|
title: string
|
|
collapsed: boolean
|
|
onToggle: () => void
|
|
/** A section with nothing to fold: the title stays, without its chevron. */
|
|
disabled?: boolean
|
|
actions?: Snippet
|
|
}
|
|
|
|
let { title, collapsed, onToggle, disabled = false, actions }: Props = $props()
|
|
</script>
|
|
|
|
<div class="flex flex-row items-center h-7 gap-0.5">
|
|
<button
|
|
type="button"
|
|
onclick={onToggle}
|
|
{disabled}
|
|
aria-expanded={!collapsed}
|
|
class="flex-1 min-w-0 h-7 px-2 rounded-md text-secondary text-[0.5rem] font-normal uppercase flex flex-row items-center gap-1 transition-colors hover:bg-surface-hover disabled:hover:bg-transparent focus:outline-none"
|
|
>
|
|
{title}
|
|
{#if !disabled}
|
|
{#if collapsed}
|
|
<ChevronRight size={10} />
|
|
{:else}
|
|
<ChevronDown size={10} />
|
|
{/if}
|
|
{/if}
|
|
</button>
|
|
{@render actions?.()}
|
|
</div>
|