Commit Graph

420 Commits

Author SHA1 Message Date
Aarnav Tale
103a826178 chore: remove unused code in the user overview 2025-04-03 12:57:06 -04:00
Aarnav Tale
090dec1ca6
chore: update docs 2025-04-02 17:03:58 -04:00
Aarnav Tale
8596a56375
chore: v0.5.7 2025-04-02 14:47:50 -04:00
Aarnav Tale
000ec620b4
fix: serve css and js assets correctly 2025-04-02 14:27:23 -04:00
Aarnav Tale
83a69792ea
chore: v0.5.6 2025-04-02 13:47:45 -04:00
Aarnav Tale
fee5f423a6
chore: update nix hash 2025-04-02 13:40:50 -04:00
Aarnav Tale
d698cf5478
fix: open file in a+ to avoid read issues 2025-04-02 13:40:01 -04:00
Aarnav Tale
80c987f383
feat: implement onboarding for non-registered users 2025-04-02 13:26:58 -04:00
Aarnav Tale
17d477bf0f
fix: join copied commands without a space 2025-04-02 13:25:33 -04:00
Aarnav Tale
5e5c7c4c7a
fix: remove unreleased feature and ignore invalid keys in config 2025-04-02 10:16:34 -04:00
Aarnav Tale
2e383ddabe
feat: reimplement user actions 2025-04-01 12:27:44 -04:00
Aarnav Tale
2299907932
chore: document user login state 2025-03-29 14:28:11 -04:00
Aarnav Tale
3771890f98
fix: disable live data fetching when a dialog is open 2025-03-29 14:27:56 -04:00
Aarnav Tale
bf02015dc7
feat: begin working on user auth 2025-03-29 14:12:15 -04:00
Aarnav Tale
8429b19c4a
docs: use git tags for bare metal 2025-03-29 14:10:46 -04:00
Aarnav Tale
9a5952adcb
fix: split email for username if preferred_username is unavailable 2025-03-29 12:16:38 -04:00
Aarnav Tale
222ac7a279
chore: make prefixes.v4/6 optional 2025-03-27 12:20:47 -04:00
Aarnav Tale
6f40f9cfac
feat: rework github actions 2025-03-24 16:49:54 -04:00
Aarnav Tale
457cbc45e6
fix: do not bundle ssr deps in dev 2025-03-24 16:26:47 -04:00
Aarnav Tale
aac8a9ef12 fix: update nix hash 2025-03-24 16:15:38 -04:00
Aarnav Tale
b8d22beb17 feat: bundle node_modules into the server 2025-03-24 16:15:38 -04:00
Aarnav Tale
cac64a6fbe chore: remove old server code 2025-03-24 16:15:38 -04:00
Aarnav Tale
5918d0e501 fix: allow hostname passthrough for hono node 2025-03-24 16:15:38 -04:00
Aarnav Tale
03acebb23e fix: env variables did not resolve in prod 2025-03-24 16:15:38 -04:00
Aarnav Tale
73ea35980d feat: switch agent fetching to the server side
this brings the benefit of fitting in the revalidator lifecycle we have
created via the useLiveData hook.
2025-03-24 16:15:38 -04:00
Aarnav Tale
9a1051b9af feat: reimplement websocket to use hono 2025-03-24 16:15:38 -04:00
Aarnav Tale
c066b3064d fix: make useLiveData a context that is pausable 2025-03-24 16:15:38 -04:00
Aarnav Tale
98d02bb595 chore: migrate patching to HeadscaleConfig 2025-03-24 16:15:38 -04:00
Aarnav Tale
2964ff295e fix: set config after loading 2025-03-24 16:15:38 -04:00
Aarnav Tale
b0a3f9d5fd chore: update deps 2025-03-24 16:15:38 -04:00
Aarnav Tale
34cfee7cff feat: reach an initial working stage 2025-03-24 16:15:38 -04:00
Aarnav Tale
8db323b63f style: use biome in zed settings 2025-03-24 16:15:38 -04:00
Aarnav Tale
08c25caca3 chore: add deps and include 2025-03-24 16:15:38 -04:00
Aarnav Tale
cbbd64e91a feat: initial server side systems 2025-03-24 16:15:38 -04:00
Aarnav Tale
48fc0f7ef3
fix: remove unnecessary title in templates 2025-03-18 12:25:19 -04:00
Aarnav Tale
23fd2bbda2
chore: update nix sha 2025-03-18 01:59:16 -04:00
Aarnav Tale
05837963c4
chore: FUNDING 2025-03-18 01:56:17 -04:00
Aarnav Tale
2a16115e69
feat: add issue templates 2025-03-18 01:54:36 -04:00
Aarnav Tale
5675ecdeac
chore: add 'community' things 2025-03-18 01:32:05 -04:00
Aarnav Tale
29424366a8
chore: v0.5.5 2025-03-18 00:46:54 -04:00
Aarnav Tale
c47346df52
fix: do not require authkey 2025-03-18 00:46:35 -04:00
Aarnav Tale
92dedf51aa
fix: ignore ws_agents if there are no agents connected 2025-03-18 00:43:52 -04:00
Aarnav Tale
8f7a85f47d
chore: v0.5.4 2025-03-18 00:34:49 -04:00
Aarnav Tale
ed1cf188dc
style: format github actions 2025-03-18 00:33:14 -04:00
Igor Ramazanov
03a7e51384
feat: add a nix flake (#132)
* feat: wip `nix`

Add initial code to be used when working with `nix` and `NixOS`.

* a Nix flake
* building a package
* a NixOS module

* feat: build `hp_agent` with `nix`

* feat: add `hp_agent` as a flake output

* feat: nix: start `headplane` after `headscale`

* feat: do not rely on `git` for versioning

It causes lots of pain when building with `nix` for a local `flake.nix`.

Not sure if it's a good general solution:
* now it requires a manual step of updating `./version` on each release.
* we're losing commit hash abbreviation, like `0.5.3-5-gbe5a291`

I guess, this can be fixed by installing git-pre-commit-hook, but even
then it'd be wrong, because the output of `git describe --tags --always`
won't be the same before and after commit.

* feat: include `hp_agent` to the NixOS module

* fix: version error message

* fix: use relative path imports in `nix`

* fix: NixOS module: generate `/etc/headplane/config.yaml` from `services.headplane.settings`

* fix: NixOS module: allow passing `bool` in `services.headplane.settings.*`

* fix: NixOS module: fix `/etc/headplane/config.yaml` generation

* docs: add Nix/NixOS docs

* feat: nix: read version from `package.json`

* fix: nix: fix `agent` env vars configuration

* feat: nix: add `services.headplane.agent.debug` option

* fix: delete unnecessary `version` file

* fix: nix: remove unnecessary `sed` substitutions

A left over from previous versions.
See: https://github.com/tale/headplane/issues/95#issue-2807487849

* feat: nix: do not hardcode `headplane-agent` configuration environment variables

To make the module more flexible and to reduce the dependency on the
config API.

* docs: improve `Nix` documentation

* Reflect recent changes.
* Link `Nix` in README

* feat: nix: setup Nix CI

* feat: nix: CI without depending on flakehub.com

* chore: begin bundling all deps into the server

* fix: loosen headscale config validation

* fix: navigate back to machines page on node deletion

* fix: slice off trailing slash if present on headscale url

* feat: switch to a central singleton handler

This also adds support for Headscale TLS installations

* fix: shamefully-hoist dependencies

* fix: handle localized number fields

* fix: revert dependency bundling for now

* chore: cleanup and remove from readme for now

---------

Co-authored-by: Aarnav Tale <aarnavtale@icloud.com>
2025-03-18 00:31:37 -04:00
Aarnav Tale
483f86c457
fix: revert dependency bundling for now 2025-03-18 00:24:25 -04:00
Aarnav Tale
a8a4d2a6f8
fix: handle localized number fields 2025-03-17 22:45:31 -04:00
Aarnav Tale
eef5bd0648
fix: shamefully-hoist dependencies 2025-03-17 22:25:41 -04:00
Aarnav Tale
6108de52e7
feat: switch to a central singleton handler
This also adds support for Headscale TLS installations
2025-03-17 22:21:16 -04:00
Aarnav Tale
43e06987ad
fix: slice off trailing slash if present on headscale url 2025-03-17 16:47:27 -04:00