Commit graph

319 commits

Author SHA1 Message Date
5e52c6f2be Use Timestamp primitive 2024-05-13 16:22:47 +02:00
7a6984aedc Simplify query! string literals 2024-05-13 16:14:27 +02:00
7d80ba4a6b Create and use Reachable primitive 2024-05-13 16:04:48 +02:00
5a4784be56 Create module for primitive types 2024-05-13 15:48:42 +02:00
bc8e2f46ab Rename util module to format 2024-05-13 15:39:17 +02:00
a525e58211 Restructure db schema
The "commit_links" table is now called "commit_edges".

There is now a "metrics" table that run measurements have a foreign key
to. This provides canonical metric metadata and will speed up the
initial graph page (before any real data arrives). For now, it will be
overwritten with each new run, but more nuanced config options may be
added later.
2024-05-13 15:27:17 +02:00
1bae83d116 Remove now unnecessary Base 2024-05-13 15:03:00 +02:00
eb1e82dae6 Port worker page to Page 2024-05-13 15:00:34 +02:00
a931f00df3 Port test page to Page 2024-05-13 14:59:17 +02:00
d7c6a5beee Port run page to Page 2024-05-13 14:57:47 +02:00
5c3ec1122e Port queue page to Page 2024-05-13 14:54:53 +02:00
8fe3fcad72 Always display nav bar 2024-05-13 14:51:08 +02:00
f532c55772 Port index page to Page 2024-05-13 00:37:28 +02:00
37b34aac37 Port graph page to Page 2024-05-13 00:35:10 +02:00
8047814894 Port commit page to Page 2024-05-13 00:32:47 +02:00
537419c251 Add Page struct, soon to replace Base 2024-05-13 00:29:43 +02:00
bb3d7b86f0 Replace link templates with functions
Now that HTML is just a Rust value, we can use normal Rust abstractions
for pretty much everything, which is nice. There's still a few parts I'd
like to clean up, but this is already a lot nicer.
2024-05-12 15:20:10 +02:00
cf96b72dfb Use extension trait for resolving paths 2024-05-12 15:20:10 +02:00
5409e176b1 Update dependencies
I forgot to run cargo update when updating the dependencies yesterday.
2024-05-12 15:20:10 +02:00
a2c2546c9d Remove axama completely 2024-05-12 15:20:10 +02:00
aed7498b29 Port worker page to maud 2024-05-12 15:20:10 +02:00
fb346a75d2 Port run page to maud 2024-05-12 15:20:10 +02:00
5d4232ac6b Port queue page to maud 2024-05-12 15:20:10 +02:00
b3f8c6390c Port index page to maud 2024-05-12 15:20:10 +02:00
ae81831bdd Port graph page to maud 2024-05-12 15:20:10 +02:00
67960e08fa Port commit page to maud 2024-05-12 15:20:10 +02:00
99576a9209 Sort paths alphabetically 2024-05-12 15:20:10 +02:00
cf590046e9 Use maud for test page
I want to replace askama with maud completely. It's so much nicer to be
able to use Rust code and abstractions (e.g. functions) to compose HTML
than using a bespoke templating system with weird inheritance and stuff.
Even though said template system is checked at compile time. Actually,
since it doesn't do hot reloading anyways, maud requiring a recompile
for changes to become visible doesn't make the situation worse.
2024-05-12 15:18:10 +02:00
36ce75b43d Reformat everything 2024-05-11 18:32:36 +02:00
93663fff8c Use prettier for most formatting 2024-05-11 18:32:09 +02:00
3c86c4b337 Update gix 2024-05-11 18:32:09 +02:00
e68a53c608 Update env_logger 2024-05-11 18:32:09 +02:00
6029f44c67 Update most dependencies 2024-05-11 18:30:23 +02:00
42d551eb6e Update axum 2024-05-11 18:30:23 +02:00
766a36426b Add empty lines after shebangs 2024-05-11 18:30:23 +02:00
a4d9855f50 Remove unused import 2024-05-11 18:30:23 +02:00
d116950a93 Avoid metrics being entirely empty 2023-10-24 14:46:12 +02:00
6754b48e7d Create normal and day-equidistant commit date arrays 2023-10-24 14:24:58 +02:00
b8c0a2c82a Rewrite topo sort as reverse post-order DFS 2023-10-24 12:44:00 +02:00
8e95fa492f Silence warnings for unused static files 2023-10-24 10:31:01 +02:00
e2693242e5 Fix error if no config file exists 2023-10-24 00:27:03 +02:00
3458f38c96 Improve graph query performance 2023-10-23 22:48:35 +02:00
603e716638 Fetch and process commits 2023-10-23 22:16:53 +02:00
e1261aea96 Fix type of parentsByHash field 2023-10-23 22:16:30 +02:00
848c4ad019 Document commit ordering 2023-10-23 22:16:30 +02:00
c9ff8ab228 Request metrics again via state 2023-10-23 22:16:30 +02:00
f77ed130e1 Implement placeholder server responses 2023-10-23 22:15:37 +02:00
3dc54738fa Update metrics selector via State 2023-10-22 01:50:19 +02:00
9bc96f79af Remove trailing slash in internal measurements 2023-10-22 01:50:19 +02:00
d82804e209 Create metric selector via JS 2023-10-22 01:50:19 +02:00