aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-15 12:34:32 +0200
committerDanilo M. <danix@danix.xyz>2026-10-15 12:34:32 +0200
commit61577be5ebd1818030a0d61dad0abb07b8656f5d (patch)
tree5d302c636e827b55fc6f33199ed3a8189e532969 /test
parent3943e08dabe684b409a3ac99c9371fbeb5df5cdb (diff)
downloadconky-theme-udt-61577be5ebd1818030a0d61dad0abb07b8656f5d.tar.gz
conky-theme-udt-61577be5ebd1818030a0d61dad0abb07b8656f5d.zip
feat: the updates card moves to the quickshell drawerHEADmaster
The card was a copy of nvtable's table, where installed-behind and repo-behind share a row and are told apart by colour, and it read "shipped" from the .info rather than the binary repo. The drawer's updates page replaces it: one row per package under the action it needs next, Slackware included. Removed: the card, its sampler and the nvchecker run it started every 30 minutes (the drawer runs nvchecker when its result is older than that), nvtable_parse with its test and fixture, and the package-up icon. The card's slot in the layout is left open; rearranging the board is a separate decision. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'test')
-rw-r--r--test/fixtures/updates_cache8
-rw-r--r--test/test_data.lua17
2 files changed, 0 insertions, 25 deletions
diff --git a/test/fixtures/updates_cache b/test/fixtures/updates_cache
deleted file mode 100644
index 130dda0..0000000
--- a/test/fixtures/updates_cache
+++ /dev/null
@@ -1,8 +0,0 @@
- [personal] foo-bin 1.14.9 -> 1.14.9 !! ~ 1.14.10
- [SBo] bar 2.1.278 -> 2.1.201 !! 2.1.284
- [personal] baz 3.16.30 -> 3.16.31 !!
- [--] qux 0.12.1 -> -- !! 0.12.1_beta.2
- [my-sbo] quux -- -> 0.28 -
- [my-sbo] corge 2.3.0 -> 2.3.0 ok
-
- 3 to upgrade · 1 repo to bump · 46 current · 18 not installed
diff --git a/test/test_data.lua b/test/test_data.lua
index 37a302e..df6775b 100644
--- a/test/test_data.lua
+++ b/test/test_data.lua
@@ -226,23 +226,6 @@ assert(data.immich_parse('generated 1\nscope week\n').week, 'scope week parses')
print('test_data: all assertions passed')
--- nvtable_parse: nvtable -C -E rows. The marker column is positional, so an
--- empty installed or repo column ('--') must not shift it.
-local up = data.nvtable_parse(read('test/fixtures/updates_cache'))
-assert(up and #up == 6, 'updates rows, got ' .. tostring(up and #up))
-local r = up[1]
-assert(r.repo == 'personal' and r.name == 'foo-bin' and r.installed == '1.14.9'
- and r.shipped == '1.14.9' and r.behind and r.bump and r.upstream == '1.14.10',
- 'updates row 1')
-assert(up[2].behind and not up[2].bump and up[2].upstream == '2.1.284', 'updates row 2')
-assert(up[3].upstream == nil and up[3].shipped == '3.16.31', 'updates row 3')
-assert(up[4].shipped == nil and up[4].repo == nil, 'updates row 4: -- is nil')
-assert(up[5].installed == nil and not up[5].behind, 'updates row 5: not installed')
-assert(not up[6].behind and not up[6].bump, 'updates row 6: current')
-assert(up.upgrade == 3 and up.bump == 1 and up.current == 46 and up.missing == 18,
- 'updates summary')
-assert(data.nvtable_parse('') == nil, 'updates: empty cache is nil')
-
-- Emoji fall back to card.FONT_EMOJI: the toy API has no per-glyph fallback,
-- so without the run split "x🦷" measured a tofu box in Noto Sans.
do