M1.5: main window layout and project tree against mocked engine events

Left Project tool window (hide/show stripe, pointer and keyboard resize),
editor area placeholder and status bar. Project tree with lazy
project.children listings, WAI-ARIA keyboard navigation, Lucide icons,
dimmed ignored/excluded entries and refresh on TreeChanged. Empty state
runs project.openDialog. Pinia store fed only by engine events and
command results; events come through a local onEngineEvent adapter until
the desktop bridge (M1.4) lands. Lucide via @lucide/vue (the renamed
lucide-vue-next, ISC).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
danny 2026-10-14 19:24:23 +02:00
parent faadb05eb3
commit 003b7970e6
16 changed files with 1541 additions and 32 deletions

View file

@ -1,10 +1,10 @@
<script setup lang="ts">
/**
* Root component: the empty workbench of milestone M0, a main area and the
* status bar. Loads product information from the engine on mount.
* Root component: mounts the main window layout with the editor area
* placeholder. Loads product information from the engine on mount.
*/
import { onMounted } from "vue";
import StatusBar from "./components/StatusBar.vue";
import MainLayout from "./components/layout/MainLayout.vue";
import { useAppStore } from "./stores/app";
const app = useAppStore();
@ -15,34 +15,14 @@ onMounted(() => {
</script>
<template>
<div class="workbench">
<main
class="workbench__main"
data-test="main"
>
<p class="workbench__hint">
{{ app.about?.slogan ?? "" }}
</p>
</main>
<StatusBar />
</div>
<MainLayout>
<p class="workbench__hint">
{{ app.about?.slogan ?? "" }}
</p>
</MainLayout>
</template>
<style scoped>
.workbench {
display: flex;
flex-direction: column;
height: 100%;
}
.workbench__main {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
background: var(--lt-editor-bg);
}
.workbench__hint {
color: var(--lt-fg-muted);
}