mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-25 08:03:45 +00:00
* feat: shrink the page header in stages and let the bar fold page actions Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * feat: fold the runs header through the bar and wrap its filter to a second row Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * feat: truncate the run id and fold run actions into one menu on a narrow bar Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * feat: keep an item's summary and drop its path on a narrow page header Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * feat: show the full summary and path read-only when they cannot be edited Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * feat: keep secondary detail actions in menus and the star beside the summary Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * feat: show secondary detail actions as buttons while the bar has room for them Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: fold embedded detail headers, refresh stale fold widths, keep the path beside a summary placeholder Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: drop the duplicate path on read-only detail pages and re-measure folded actions when they change Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: re-measure the runs header when its hidden counters change width Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * revert: drop the runs header's counter version, the badges do not change its width Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: stop the header re-measuring its actions every frame while idle Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
54 lines
1.1 KiB
Svelte
54 lines
1.1 KiB
Svelte
<!--
|
|
@component
|
|
Fills the layout's page header from the route that mounts it: the breadcrumb (an item's path, or a
|
|
section name for a list) and the page's own buttons. Renders nothing itself.
|
|
|
|
Only a route page mounts this. An editor nested in a session pane or a drawer must not take over
|
|
the header, so nesting is decided by the caller rather than guessed from context.
|
|
-->
|
|
<script lang="ts">
|
|
import { onMount } from 'svelte'
|
|
import { pageHeader, type PageHeaderContent } from './pageHeaderRegistry.svelte'
|
|
|
|
let {
|
|
item,
|
|
section,
|
|
afterName,
|
|
actions,
|
|
actionsOrder,
|
|
actionsFlexible,
|
|
actionsFill,
|
|
actionFolds,
|
|
earlyActionFolds,
|
|
actionsVersion,
|
|
belowBar,
|
|
belowBarFold,
|
|
separator,
|
|
contexts,
|
|
actingWorkspaceId,
|
|
barRightInset
|
|
}: PageHeaderContent = $props()
|
|
|
|
onMount(() => {
|
|
const id = pageHeader.register(() => ({
|
|
item,
|
|
section,
|
|
afterName,
|
|
actions,
|
|
actionsOrder,
|
|
actionsFlexible,
|
|
actionsFill,
|
|
actionFolds,
|
|
earlyActionFolds,
|
|
actionsVersion,
|
|
belowBar,
|
|
belowBarFold,
|
|
separator,
|
|
contexts,
|
|
actingWorkspaceId,
|
|
barRightInset
|
|
}))
|
|
return () => pageHeader.release(id)
|
|
})
|
|
</script>
|