Johannes Kirschbauer
06257d044a
test_create: fix duplicated variables
2025-07-22 18:12:51 +02:00
Johannes Kirschbauer
34ca7a4a7b
create/clan: add abstraction for initial meta
...
Directly passing through persisted data is bad
2025-07-22 18:12:17 +02:00
Brian McGee
dd3051d62b
chore(ui): simplify clan uri params
...
Now that everything lives under `/clans/:clanURI` we don't need to handle the case where the param might be null.
2025-07-22 17:08:12 +01:00
Brian McGee
5f290fed7f
chore(ui): remove solid-devtools
...
It's a chrome extension which is pointless inside of webview which is webkit.
2025-07-22 17:07:44 +01:00
Johannes Kirschbauer
a34ec8ed22
templates: add post_process hook for tests or other extensions
2025-07-22 18:07:26 +02:00
Johannes Kirschbauer
4597b207e7
pytest: fixtures offline_flake_hook init
2025-07-22 18:06:47 +02:00
Johannes Kirschbauer
9257cb02ee
validator: hostname init
2025-07-22 18:06:27 +02:00
a-kenji
cd8a1d9a32
pkgs/cli: Autocomplete various vars subcommands
...
Add autocomplete for `vars` for the following subcommands:
```
clan vars get [machine] [var_id]
clan vars set [machine] [var_id]
```
2025-07-22 18:03:55 +02:00
Brian McGee
ee9ae21bd2
feat(ui): add tanstack devtools for debugging queries
2025-07-22 16:33:53 +01:00
Jörg Thalheim
bd1451ce18
fix: handle arbitrary store paths references in flake cache
...
Previously, paths like /nix/store/hash-file.nix:123 were incorrectly
treated as pure store paths and wrapped in {"outPath": ...}, breaking
the cache. This fix:
- Adds helper functions to properly detect and handle store references
- Distinguishes between pure store paths and paths with metadata (line numbers)
- Supports multiple store references in a single string
- Handles custom NIX_STORE_DIR correctly
- Ensures existence checks work for all store references
Also fixes test_cache_gc to delete NIX_REMOTE for proper local store testing.
2025-07-22 17:13:04 +02:00
hsjobeki
69ab00b34b
Merge pull request 'store: move merge_objects into persistence helpers' ( #4440 ) from api-fixes into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4440
2025-07-22 13:12:04 +00:00
Johannes Kirschbauer
0043870882
merge_objects: add unit tests
2025-07-22 15:01:00 +02:00
Johannes Kirschbauer
0ea42ae541
store: move merge_objects into persistence helpers
2025-07-22 15:01:00 +02:00
Kenji Berthold
cf65ae81cf
Merge pull request 'pkgs/cli: Add disko template completion to clan templates apply disk' ( #4438 ) from kenji/ke-complete-disko into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4438
2025-07-22 11:26:58 +00:00
a-kenji
28e39ada84
pkgs/cli: Add disko template completion to clan templates apply disk
2025-07-22 13:04:45 +02:00
a-kenji
fb52b955cc
pkgs/cli: Add completions to clan flakes create --template [TEMPLATE]
...
Add completions to `clan flakes create --template [TEMPLATE]`
2025-07-22 13:01:45 +02:00
Luis Hebendanz
aee71b3fd6
Merge pull request 'pkgs/cli: Validate flake for network subcommands' ( #4433 ) from kenji/ke-networks-validate-flake into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4433
2025-07-22 05:27:45 +00:00
Luis Hebendanz
76535852e4
Merge pull request 'pkgs/cli: Add machine to output while uploading sources' ( #4429 ) from kenji/ke-update-add-machine into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4429
2025-07-22 05:27:06 +00:00
Kenji Berthold
a694e8d122
Merge pull request 'pkgs/cli: Fix typo in networking help' ( #4431 ) from kenji/ke-network-fix-typo into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4431
2025-07-21 20:38:54 +00:00
a-kenji
3a2be243c0
pkgs/cli: Add machine to output while uploading sources
...
Add the `machine` to it's output while uploading sources.
2025-07-21 22:15:43 +02:00
a-kenji
9fdf41813a
pkgs/cli: Validate flake for network subcommands
...
When running for example `clan networks list` we now get a reasonable
error message, instead of:
```
Traceback (most recent call last):
File "/nix/store/8ygq8bfxqydk2917mmg32wy9wb0qzzzd-clan-cli/bin/.clan-wrapped", line 9, in <module>
sys.exit(main())
~~~~^^
File "/nix/store/8ygq8bfxqydk2917mmg32wy9wb0qzzzd-clan-cli/lib/python3.13/site-packages/clan_cli/cli.py", line 516, in main
args.func(args)
~~~~~~~~~^^^^^^
File "/nix/store/8ygq8bfxqydk2917mmg32wy9wb0qzzzd-clan-cli/lib/python3.13/site-packages/clan_cli/network/list.py", line 12, in list_command
networks = networks_from_flake(flake)
File "/nix/store/8ygq8bfxqydk2917mmg32wy9wb0qzzzd-clan-cli/lib/python3.13/site-packages/clan_lib/network/network.py", line 106, in networks_from_flake
networks_ = flake.select("clan.exports.instances.*.networking")
^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'select'
```
2025-07-21 22:13:48 +02:00
a-kenji
04f3a9480f
pkgs/cli: Fix typo in networking list help
2025-07-21 22:07:29 +02:00
a-kenji
f7762b3119
pkgs/cli: Fix typo in networking help
2025-07-21 22:06:03 +02:00
Brian McGee
53752d4a69
fix(ui): alignment issues with forms
2025-07-21 13:09:53 +01:00
Brian McGee
d6efeb3295
fix(ui): remove extra margin in modal title
2025-07-21 11:18:22 +01:00
Qubasa
4055508588
clan-lib: Add object_name to ClassSource and don't override __repr__ from NetworkTechnologyBase instead overwrite it in ClassSource
2025-07-21 14:25:01 +07:00
Qubasa
ff65dfc883
clanServices: change tor service to have "client" and "server" roles instead of just "default"
...
also improve error message when user forgot to update machine in clan
networking command
2025-07-21 14:25:01 +07:00
Qubasa
1f5ef04a61
clan-lib: Fix network.py missing vars generation and use import_with_source for better trace ability
2025-07-21 12:40:49 +07:00
Qubasa
89f0e90910
clan-lib: Init import_utils to add debug information to dynamically imported modules
2025-07-21 12:40:49 +07:00
Qubasa
137aa71529
clan-lib: Fix is_running of tor.py
2025-07-21 12:40:49 +07:00
hsjobeki
4b36b3e07c
Merge pull request 'ui/scene: mock create machine modal for testing' ( #4404 ) from scene-progress into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4404
2025-07-19 16:23:56 +00:00
Johannes Kirschbauer
5a63eeed4e
ui/scene: mock create machine modal for testing
2025-07-19 18:19:37 +02:00
Johannes Kirschbauer
ac96d67f09
components/modal: fix missing onClose call
2025-07-19 18:19:19 +02:00
Johannes Kirschbauer
d01342aa79
components/modal: add missing properties {mount, class}
2025-07-19 18:18:56 +02:00
Johannes Kirschbauer
2d404254da
ui/scene: fix initBase visibility
2025-07-19 18:18:05 +02:00
Johannes Kirschbauer
71b69c1010
ui/scene: add promise based create machine callback"
2025-07-19 18:17:38 +02:00
Johannes Kirschbauer
f155c68efe
ui/scene: fix animateToPosition
2025-07-19 18:16:53 +02:00
hsjobeki
e57741b60c
Merge pull request 'ui/scene: clean up initBase' ( #4403 ) from scene-progress into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4403
2025-07-19 12:51:04 +00:00
Johannes Kirschbauer
c9cacfcf62
ui/scene: fix typing checks
2025-07-19 14:47:23 +02:00
Johannes Kirschbauer
2d937b80b1
ui/scene: clean up initBase
2025-07-19 14:40:32 +02:00
hsjobeki
65a23983c2
Merge pull request 'ui/scene: add loading splash screen' ( #4400 ) from scene-progress into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4400
2025-07-18 17:42:15 +00:00
Johannes Kirschbauer
c181400267
ui/scene: add loading splash screen
2025-07-18 19:37:06 +02:00
hsjobeki
e8ff0d1ad4
Merge pull request 'ui/render: optimize rendering, requestRenderIfNotRequested' ( #4398 ) from scene-progress into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4398
2025-07-18 17:36:44 +00:00
Johannes Kirschbauer
f9f8a947e2
ui/splash: add scene splash screen
2025-07-18 19:36:02 +02:00
Johannes Kirschbauer
c5b0154af7
ui/logos: add darknet-builder logo
2025-07-18 19:35:11 +02:00
Brian McGee
38b043f625
feat(ui): add creating cube animation
2025-07-18 17:31:30 +01:00
Johannes Kirschbauer
174e66ef95
ui/render: optimize rendering, requestRenderIfNotRequested
2025-07-18 18:15:30 +02:00
hsjobeki
315049de20
Merge pull request 'ui/controls: replace manual listeners with mapControl' ( #4397 ) from scene-progress into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4397
2025-07-18 15:49:36 +00:00
Johannes Kirschbauer
2e577dbd1e
ui/controls: replace manual listeners with mapControl
2025-07-18 17:45:53 +02:00
hsjobeki
4281770ec7
Merge pull request 'ui/scene: hook up api' ( #4388 ) from scene-progress into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4388
2025-07-18 15:15:41 +00:00