Wasm panel modules, widget host, merged plasmoid host design, and shell/UI work

Panel and wasm host
- The panel is built from wasm plasmoid modules (compositor/wasm: wasmer-backed host).
  Modules get capabilities by importing host interfaces; the host publishes data tables
  and serves a request queue (launch, focus window, set layout, inspector, load/unload
  modules). New WIT: windows, layout-control, inspector, modules, system.
- Merged two competing host designs: generic tables + requests are the base; the
  `system` snapshot and the id-stable `windows.all/focus` (Desktop Pulse) run on top of it.
- Panel widgets: load a .wasm from a path or file chooser, reorder by dragging,
  right-click replace/remove/add, saved to panel.edn.
- Desktop widget, system sampler (sysinfo), app catalog/humanised names, Interface
  Explorer (inspector), real font rendering (compositor/font, assets/fonts).

Compositor
- Drag the divider between tiled windows; lower tiled rows leave room for the title bar.
- Title-bar buttons, 12-hour clock, truncated titles, task-list/layout menus.
- DRM/KMS session, tcc debug builds (vendored tinycc incl. conftest.c), justfile
  recipes (modules, run, test), pixi.toml.

Known gaps
- The sources for the pulse, tasks, layout, inspector, module-manager, moon-* and
  clock-digital12 modules are not in the tree yet, so `just modules` stops at pulse and
  the host tests that load those modules fail until they land.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
nandiandClaude Sonnet 5.5 committed 2026-11-24 23:38:05 -08:00
1 parent 080377fd79
commit 0145981c6a
57 files changed
+11461 -221

No files matched your search

+18 -4
View File
@@ -53,13 +53,17 @@ fn contains_ci(hay : String, needle : String) -> Bool {
ascii_lower(hay).contains(ascii_lower(needle))
}
///| KRunner-ish filter: case-insensitive substring over name, comment and category.
///| KRunner-ish filter: case-insensitive substring over name, id, comment and
/// category. Name matches come first, then the rest; each group keeps its order.
pub fn filter(apps : Array[@types.AppEntry], query : String) -> Array[@types.AppEntry] {
apps.filter(a => {
contains_ci(a.name, query) ||
let by_name = apps.filter(a => contains_ci(a.name, query))
let others = apps.filter(a => {
!contains_ci(a.name, query) &&
(contains_ci(a.id, query) ||
contains_ci(a.comment, query) ||
contains_ci(a.category, query)
contains_ci(a.category, query))
})
by_name + others
}
///|
@@ -318,3 +322,13 @@ test "focus loss closes and hover tracks the pointer" {
assert_true(handle_event(apps, st, Widget, FocusLost, _ => Ok(())))
assert_false(st.open)
}
///|
test "search matches the app id and ranks name matches first" {
let apps : Array[@types.AppEntry] = [
{ id: "org.kde.kate", name: "Text Editor", comment: "", category: "Utility", glyph: "T" },
{ id: "x.pad", name: "Kate Pad", comment: "", category: "Utility", glyph: "K" },
]
let r = filter(apps, "kate")
assert_eq(r.map(a => a.id), ["x.pad", "org.kde.kate"])
}