mirror of
https://github.com/niels-emmer/wall-cast.git
synced 2026-09-13 23:53:36 +02:00
[PR #4] [MERGED] Network widget + admin fixes #4
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
github-mirrors/wall-cast#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/niels-emmer/wall-cast/pull/4
Author: @niels-emmer
Created: 3/22/2026
Status: ✅ Merged
Merged: 3/22/2026
Merged by: @niels-emmer
Base:
main← Head:network📝 Commits (8)
9fc6299feat(network): add Network widget with WAN, connectivity, DNS, hosts, speedtestb107439feat(admin): add network widget to rotator defaults and add-slot UIbc82e2bfeat(network): move router password to .env, add admin panel section10a2adafix(network): pass shared.network through get_config() mergedbd1f57fix(network): remove divider + ETH badge to fit small slot5f3fbb6fix(caster): add cooldown to prevent recast loop on false-negative status234e755fix(admin): stop save from overwriting in-progress draft edits0ca11badocs: update memory for network widget, caster fix, admin save fix📊 Changes
16 files changed (+1022 additions, -16 deletions)
View changed files
📝
.env.example(+7 -0)📝
backend/app/main.py(+2 -1)➕
backend/app/routers/network.py(+440 -0)📝
backend/app/wall_config.py(+2 -0)📝
backend/requirements.txt(+1 -0)📝
caster/cast.py(+10 -1)📝
config/wall-cast.example.yaml(+12 -0)📝
docs/config-reference.md(+39 -0)📝
docs/memory/INDEX.md(+17 -2)📝
docs/memory/records/decision-log.md(+24 -0)📝
frontend/src/admin/AdminPanel.tsx(+152 -12)➕
frontend/src/hooks/use-network.ts(+12 -0)📝
frontend/src/types/api.ts(+38 -0)📝
frontend/src/types/config.ts(+7 -0)📝
frontend/src/widgets/base-registry.ts(+2 -0)➕
frontend/src/widgets/network/NetworkWidget.tsx(+257 -0)📄 Description
Summary
networktype widget showing WAN status (IP, uptime), external connectivity + latency, DNS server reachability (Cloudflare / Google), LAN host count (ethernet / wifi split), and live speedtest (Cloudflare, capped download/upload). Optional Zyxel VMG8825 router integration via DAL API (RSA+AES auth). Router password stored inROUTER_PASSWORDenv var, never in YAML.RotatorSectionnow has a Select + Add button so any widget type can be added to an existing rotator without hand-editing YAML. Also adds a ✕ remove button per slot..env.useEffectwithdraft === nulland replacinginvalidateQuerieswithsetQueryDataafter save.catt statusreturns a false negative immediately aftercast_sitecompletes, causing the caster to recast every 60 s and constantly reload the display (widgets flashing "unavailable"). Fixed with a per-screenlast_cast_atcooldown (default 5 min,CAST_COOLDOWNenv var).get_config()merge fix —shared.networkwas silently dropped from the merged config dict, so the network router always saw an empty config and never connected to the router. Added explicit forwarding.Test plan
docker compose up --build -don server — no build errorsROUTER_PASSWORDin.envandrouter_urlin YAML)OK (cast Xs ago)instead of recasting every 60 s🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.