Commit Graph

40 Commits

Author SHA1 Message Date
Brian McGee
9cc85b36c6 feat(ui): switch to webkit for storybook tests 2025-10-09 14:56:38 +01:00
Johannes Kirschbauer
92151331f3 ui/devShell: remove fonts directory if exists 2025-09-03 21:33:40 +02:00
Michael Hoang
a71a5880c1 treewide: reformat 2025-08-08 15:28:37 +10:00
Qubasa
695141b2ae clan-app: Make http server non blocking, add tests for the http server and for cancelling tasks 2025-07-10 17:21:18 +07:00
Qubasa
0987c4b2cc clan-app: Working swagger 2025-07-09 18:34:58 +07:00
Qubasa
0b4eb9202e clan-app: Better http architecture 2025-07-09 16:40:49 +07:00
Qubasa
7520f202dd clan-app: Fix .local.env not being sourced 2025-07-02 16:00:34 +07:00
Brian McGee
93e7ff78f6 fix(ui): disable storybook devshell and package on Darwin 2025-05-30 11:06:14 +01:00
Brian McGee
41f7ae08a8 feat(ui): enable storybook snapshot tests
- adds a process-compose namespace for running `storybook` and `luakit` together to replicate the `webkit`-based rendering that happens inside of `webview`
- adds some helper scripts for running storybook tests and updating snapshots, with documentation in the README.
- adds a `clan-app-ui-storybook` package which builds and tests the storybook, checking for rendering changes

Currently, we’re only doing markup-based snapshot tests. We’re also using headless chromium for the tests by default as I couldn't get webkit to work in the nix build.

As we’re only markup-based for the time being, this should be ok. But eventually I'd like to get it working with webkit.
2025-05-30 11:06:14 +01:00
Brian McGee
8c5a30ff28 fix(ui): hot-reload of clan-cli 2025-05-22 11:47:35 +01:00
DavHau
2b4e624ee8 clan-app/devshell: add script to launch qemu VMs for testing 2025-05-19 18:37:09 +07:00
Jörg Thalheim
9e8fefc64b clan-app/devshell: remove duplicate python3
we already get python3 from the frontend.
2025-05-15 15:03:35 +02:00
Jörg Thalheim
de0f78b0d2 clan-ui: remove intermediate app directory 2025-05-15 14:56:04 +02:00
Jörg Thalheim
bebab7691f devshells.clan-app: require less environment variables
also sort shellHook by component
2025-05-15 14:43:51 +02:00
Jörg Thalheim
57dcd47992 rename ui to clan-app and move clan-app one layer up 2025-05-15 14:15:59 +02:00
Brian McGee
faf8689ab1 feat: group ui related packages under a ui directory 2025-05-15 12:00:24 +01:00
Qubasa
b90812ecce clan-cli: add test_create in clan_lib test folder 2025-05-05 22:16:02 +02:00
Sam Lehman
4fe822b340 devshells: name shells for clarity 2025-04-08 19:31:30 +00:00
Qubasa
fdb3f89480 clan-app: Fix Gsettings schema files not found 2025-02-04 17:10:35 +07:00
Qubasa
84b8838084 clan-cli: Add ruff to devShell again. Add missing type annotations 2025-01-29 19:16:34 +07:00
Qubasa
68f56ecafd clan-app: Change tkinter file dialogue to gtk4 file dialogue 2025-01-12 14:39:41 +07:00
Qubasa
387da30004 clan-app: Add .local.env source script for local debug builds 2025-01-11 10:55:50 +07:00
Qubasa
c6d5eb5037 clan-app: Fix default.nix 2025-01-11 10:52:22 +07:00
Qubasa
32bdf963a6 clan-app: Fix python3Full and python3 incompatibilities. 'pytest' not found and devshell bugs 2025-01-07 00:10:34 +01:00
Qubasa
c0ecb557bf clan: revert flake.lock upgrade 2025-01-06 20:14:35 +01:00
Qubasa
06879c1d34 clan-app: working file dialogue 2025-01-06 20:14:24 +01:00
Qubasa
44a2ce1583 Fix nix run .#clan-app 2025-01-06 20:14:20 +01:00
Qubasa
2014f3663f clan-app: added header files 2025-01-06 20:14:09 +01:00
Qubasa
34fa4c18b1 clan-app: Working webview from webview lib 2025-01-06 20:14:05 +01:00
Qubasa
323a3a0e92 clan-app: packaged c webui lib 2025-01-06 20:13:41 +01:00
Johannes Kirschbauer
09240fa3df Clan-app: use software rendering, simplify wrapper 2024-10-09 16:38:22 +02:00
Jörg Thalheim
a3699721c0 remove ipdb again
ipdb doesn't work with capsys and breakpoint
2024-08-21 15:00:47 +02:00
DavHau
6c1c615c60 devshell: remove dependency on clan-cli
This stops the devshell from being re-built constantly, when the source code changes.

Based on a new feature in treefmt-nix: https://github.com/numtide/treefmt-nix/pull/208
2024-08-03 22:37:03 +07:00
Qubasa
ef29976ab8 shell.nix: remove dependency in shell.nix on webui 2024-07-29 13:52:11 +02:00
Johannes Kirschbauer
4be5ed28db Clan-app: example disk view 2024-07-29 11:49:55 +02:00
Johannes Kirschbauer
edd290e314 Clan-app: devshell add schemas for gtk4; gsettings 2024-07-24 18:26:26 +02:00
Qubasa
cfde5fa2f8 clan-app: Add webview hot-reloading 2024-07-09 15:39:33 +02:00
DavHau
336e99b2a7 clan-cli tests: remove dynamic inclusion of helpers module
Dynamically extending the python path at runtime is bad for developer experience, as this is not understood by the text editor and therefore jump to definition etc. does not work.

-> Better to remove the dynamic inclusion and force developers to specify the import correctly.
2024-07-05 16:38:22 +07:00
DavHau
c9485fb3fd devShells: make all shells inherit from default shell
Currently, important tools from the default shell are lost as soon as select-shell is used to switch to another shell. select-shell itself, for example is missing, which makes it impossible to switch back to another shell.
2024-07-05 15:01:25 +07:00
Johannes Kirschbauer
b03fe685dc clan-app: rename clan-vm-manager 2024-06-05 11:24:59 +02:00