Replace the long scrolling DetailsIslandView with the new pinned layout: a separated TaskHeaderBar (trash↔skull, gear), a DescriptionStepsCard (text⇄steps toggle, Preview = composed prompt), and a pinned WorkConsole (Output/Actions/ Session tabs). The three components now bind to DetailsIslandViewModel; their scaffolding sample VMs are removed. Drops the old inline sections + AgentStripView. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
23 lines
608 B
C#
23 lines
608 B
C#
using Avalonia.Controls;
|
|
using Avalonia.Input;
|
|
using Avalonia.Input.Platform;
|
|
using ClaudeDo.Ui.ViewModels.Islands;
|
|
|
|
namespace ClaudeDo.Ui.Views.Islands.Detail;
|
|
|
|
public partial class TaskHeaderBar : UserControl
|
|
{
|
|
public TaskHeaderBar()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private async void OnTaskIdTapped(object? sender, TappedEventArgs e)
|
|
{
|
|
if (DataContext is not DetailsIslandViewModel vm || vm.Task is null) return;
|
|
var clipboard = TopLevel.GetTopLevel(this)?.Clipboard;
|
|
if (clipboard is null) return;
|
|
await clipboard.SetTextAsync(vm.Task.Id);
|
|
}
|
|
}
|