Commit Graph

806 Commits

Author SHA1 Message Date
JingleManSweep e465cd34ea Merge pull request #309 from ipnet-mesh/renovate/tailwindcss-monorepo
chore(deps): update tailwindcss monorepo to v4.3.3
2026-07-16 23:05:19 +01:00
JingleManSweep ac73b35e92 Merge branch 'main' into renovate/tailwindcss-monorepo 2026-07-16 23:02:26 +01:00
JingleManSweep 6b823027ef Merge pull request #305 from ipnet-mesh/renovate/daisyui-5.x-lockfile
chore(deps): update dependency daisyui to v5.6.18
2026-07-16 23:00:21 +01:00
renovate[bot] 1f6c144322 chore(deps): update tailwindcss monorepo to v4.3.3 2026-07-16 21:59:40 +00:00
renovate[bot] e60dc7ba26 chore(deps): update dependency daisyui to v5.6.18 2026-07-12 17:47:38 +00:00
JingleManSweep 2455d5af0e Merge pull request #304 from ipnet-mesh/jinglemansweep-patch-1
Add GitHub funding link to FUNDING.yml
2026-07-09 22:18:00 +01:00
JingleManSweep 91a65807ad Add GitHub funding link to FUNDING.yml 2026-07-09 22:16:08 +01:00
JingleManSweep f48c37578d Merge pull request #302 from ipnet-mesh/renovate/daisyui-5.x-lockfile
chore(deps): update dependency daisyui to v5.6.16
2026-07-09 21:47:32 +01:00
renovate[bot] bc8a33eb34 chore(deps): update dependency daisyui to v5.6.16 2026-07-09 20:02:53 +00:00
JingleManSweep 0b4621e7cc Merge pull request #303 from ipnet-mesh/renovate/anomalyco-opencode-1.x
chore(deps): update anomalyco/opencode action to v1.17.18
2026-07-09 21:02:01 +01:00
renovate[bot] 0981b2ec73 chore(deps): update anomalyco/opencode action to v1.17.18 2026-07-09 19:40:13 +00:00
JingleManSweep 9420164ed2 Merge pull request #301 from ipnet-mesh/feat/observer-area-filters
feat(web): group observer filter badges by area tag
v0.15.10
2026-07-07 22:21:03 +01:00
Louis King b1ca4fa1f3 Merge branch 'main' of github.com:ipnet-mesh/meshcore-hub into feat/observer-area-filters 2026-07-07 22:16:39 +01:00
JingleManSweep 69c0922b15 Merge pull request #299 from ipnet-mesh/renovate/anomalyco-opencode-1.x
chore(deps): update anomalyco/opencode action to v1.17.15
2026-07-07 22:16:21 +01:00
renovate[bot] 857e13c3fe chore(deps): update anomalyco/opencode action to v1.17.15 2026-07-07 21:14:13 +00:00
JingleManSweep c2cc05da8d Merge pull request #300 from ipnet-mesh/renovate/daisyui-5.x-lockfile
chore(deps): update dependency daisyui to v5.6.14
2026-07-07 22:13:41 +01:00
Louis King d1a3605a54 feat(web): group observer filter badges by area tag
Switch the Adverts and Messages observer filter from one badge per observer
node to one badge per unique area tag value (e.g. IP2, IP3, IP4). Toggling
an area badge enables/disables all observers in that area together.

Observers without an area tag are hidden from the filter row. Uses a new
localStorage key (meshcore-observer-areas-disabled) to avoid stale public
keys being misread as area codes. The old key is cleaned up on SPA boot.

Frontend-only: no backend, API, schema, or migration changes.
2026-07-07 22:13:15 +01:00
renovate[bot] adcddc2ca4 chore(deps): update dependency daisyui to v5.6.14 2026-07-06 19:52:46 +00:00
JingleManSweep 62d5b637f0 Merge pull request #298 from ipnet-mesh/fix/illegal-user-name-header
fix(web): sanitize X-User-Name header to prevent 502 on registration
v0.15.9
2026-07-04 20:10:54 +01:00
Louis King cbd12b6c25 Merge branch 'main' of github.com:ipnet-mesh/meshcore-hub into fix/illegal-user-name-header 2026-07-04 20:08:12 +01:00
Louis King 7b44049e6e fix(web): sanitize X-User-Name header to prevent 502 on registration
When an IdP name claim contains trailing whitespace (e.g. 'Matt '), every
proxied API request failed with 502 'Illegal header value' because httpx
enforces RFC 7230 which forbids leading/trailing OWS in header values.

Defense in depth:
- strip_userinfo() trims the IdP name at ingress (oidc.py)
- _sanitize_header_value() removes CTL/DEL chars at both header-injection
  sites (API proxy + auth-callback bootstrap) in app.py
- update_profile() trims user-supplied names in PUT handler

X-User-Name is informational only (seeds non-unique UserProfile.name);
identity/auth are keyed on X-User-Id and X-User-Roles, so sanitization is
safe.
2026-07-04 20:06:04 +01:00
JingleManSweep dc72657b0a Merge pull request #297 from ipnet-mesh/feat/packet-breakdown-charts
feat: add packet breakdown charts to dashboard
v0.15.8
2026-07-04 15:14:19 +01:00
Louis King 03006091e5 feat: add packet breakdown charts to dashboard
Add two horizontal 100% stacked-bar charts to the Dashboard, gated
behind the existing packets feature flag:

- Packet Types: top 6 event_type values + 'other' rollup
- Path Bytes: 1b/2b/3b path-hash width distribution (NULL excluded)

Driven by a single new cached endpoint
GET /api/v1/dashboard/packet-breakdown?days=7 returning pre-bucketed
counts. Frontend normalizes to percentages via a new
createStackedBarChart helper in charts.js with a 7-hue oklch palette.
2026-07-04 15:11:17 +01:00
JingleManSweep b608d9873b Merge pull request #296 from ipnet-mesh/chore/update-observer-docs
Updated Observer Documentation/Examples
2026-07-04 14:19:45 +01:00
Louis King a2cbbd6468 Updated observer docs 2026-07-04 14:17:02 +01:00
JingleManSweep 024114fc5b Merge pull request #294 from ipnet-mesh/renovate/daisyui-5.x-lockfile
chore(deps): update dependency daisyui to v5.6.13
v0.15.7
2026-07-04 10:50:20 +01:00
renovate[bot] 7d8c0fce93 chore(deps): update dependency daisyui to v5.6.13 2026-07-04 09:41:07 +00:00
JingleManSweep c0ac1baf04 Merge pull request #295 from ipnet-mesh/fix/dashboard-charts-and-path-popover-scroll
fix(web): 2x2 dashboard charts on mobile landscape & path-node popover scroll
2026-07-04 10:40:32 +01:00
Louis King 5dbf0697ce fix(web): path-node popover follows page scroll
The popover used position: fixed with viewport-relative coordinates, so
it stayed pinned to the viewport while the page scrolled away beneath
it. Switch to absolute positioning anchored to the document (adding
scrollX/scrollY) and read the badge's live rect on each reposition so
it tracks the anchor after the async node fetch resolves.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-04 10:38:08 +01:00
Louis King f3a2fe7a05 fix(web): 2x2 dashboard chart grid on mobile landscape
Charts jumped from a single column straight to N-across at the md
breakpoint, cramming them on landscape phones. Introduce a 2-column
layout at the sm breakpoint (2x2 for 4 charts; 3 charts flow to
2-on-top + 1 bottom-left with a gap on the right) and defer the full
N-across row to lg.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-04 10:38:06 +01:00
JingleManSweep 5e9182f0b4 Merge pull request #293 from ipnet-mesh/feat/path-hash-bytes-filter
feat: persist path_hash_bytes column and add packet list filter
v0.15.6
2026-07-04 00:04:50 +01:00
Louis King c029eae524 feat: persist path_hash_bytes column and add packet list filter
Persist the path-hash byte width (1/2/3) as a nullable Integer column on
RawPacket, computed at ingest by the collector and backfilled for historical
rows via a self-contained Python migration. Replace the per-request Python
decode loop in the grouped-list route with a SQL MAX() aggregate + HAVING
filter, and add a discrete <select> filter (Any/1B/2B/3B) to the /packets
SPA page.

- Model: add path_hash_bytes column to RawPacket (nullable Integer)
- Migration: batch_alter_table add_column + keyset-paginated Python backfill
  reading decoded via Core select() on sa.JSON column (portable across
  SQLite and Postgres)
- Collector: compute path_hash_bytes at ingest via two-tier path-hash
  extraction (decoded.path -> payload.decoded.pathHashes)
- API: add func.max() aggregate to group query, HAVING filter on
  ?path_hash_bytes=1|2|3 param; delete Phase 3 decode loop and dead helper
- Frontend: add path-width select filter wired through query/apiParams/
  pagination/headerParams; add i18n keys (en/nl)
- Tests: 1186 passed, 22 skipped; collector + API + model coverage
2026-07-04 00:02:18 +01:00
JingleManSweep 1615c71e18 Merge pull request #292 from ipnet-mesh/feat/json-tree-path-flow
feat(web): expandable JSON tree, packet path flow, chart polish
v0.15.5
2026-07-03 22:38:39 +01:00
Louis King f845830848 feat(web): expandable JSON tree, packet path flow, chart polish
- Add reusable lit-html JSON tree component (json-tree.js) with
  expand/collapse-all toolbar and type-coloured primitives; replace
  flat <pre> decoded blocks on packet detail and packet group detail
- Render packet path as a complete flow with static sender (green dot)
  and observer (satellite dish) terminators around hop badges
- Fill homepage chart areas and move legend to top-right to match
  dashboard charts
- Add iconChevronRight helper and expand_all/collapse_all strings (en, nl)
2026-07-03 22:35:43 +01:00
JingleManSweep 0073723269 Merge pull request #291 from ipnet-mesh/feat/regional-numbers-filter-toggle
feat(web): locale-aware number formatting + filter panel redesign
v0.15.4
2026-07-03 16:10:18 +01:00
Louis King 41f7fefcda feat(web): convert auto-refresh button to toggle slider for consistency
Replace the pause/play icon button with a DaisyUI toggle toggle-sm
toggle-primary slider, matching the filter toggle's visual style.
The label shows iconRefresh + interval (e.g. '30s'); checked = actively
refreshing, unchecked = paused.
2026-07-03 16:07:27 +01:00
Louis King 2c25a9cd17 feat(web): add locale-aware number formatting and redesign filter panel
Replace raw integer counts with Intl.NumberFormat()-grouped numbers
across all SPA pages — stat cards, dashboard stats, list-page total
badges, inline reception/observer counts, chart axis ticks and
tooltips, map counts, and packet-group-detail fields. Formatting uses
the visitor's browser locale (no explicit locale argument), decoupled
from the admin's datetime_locale.

Redesign the filter panel on all five filter-bearing pages (nodes,
packets, advertisements, messages, map): replace the heavy DaisyUI
collapse card with a compact right-aligned toggle slider plus bare
filter fields rendered below the control row. Filter open-state
survives auto-refresh and navigation via DOM-read of #filter-toggle.

Also fixes a pre-existing bug where pubkey_prefix was missing from
nodes.js hasActiveFilters, causing the filter to not default open
when only the public-key-prefix field was filled.
2026-07-03 16:02:45 +01:00
JingleManSweep ee4e8fa768 Merge pull request #290 from ipnet-mesh/feat/dashboard-recent-adverts
feat(dashboard): enrich recent adverts card and add packets widget
v0.15.3
2026-07-03 14:34:24 +01:00
Louis King 215690f4bf feat(dashboard): enrich recent adverts card and add packets widget
Recent adverts card now shows route-type badges, an observer column
with three-way fallback (observers -> observed_by -> dash), and renders
all 10 rows instead of 5. The Type column hides on mobile to prevent
overflow, and the misleading cursor-help on observer badges is removed.

Also adds a Packets chart card to the dashboard and a packets stat to
the homepage, backed by the new dashboard packet-activity endpoint.

Promotes routeTypeBadge to a shared export in components.js (previously
local to advertisements.js), and enriches RecentAdvertisement with
route_type, observers, and observed_by fields.

Backend resolves observers via fetch_observers_for_events and
observer_node_id -> public_key in batched queries.
2026-07-03 14:31:44 +01:00
JingleManSweep 3c61a139a0 Merge pull request #289 from ipnet-mesh/fix/mobile-nav-clickthrough
fix(web): stop closed mobile nav from intercepting page clicks
v0.15.2
2026-07-03 00:16:33 +01:00
Louis King cb677b3545 fix(web): stop closed mobile nav from intercepting page clicks
The two-column mobile nav set display:block on #mobile-nav (an ID
selector) to override .menu's display:flex so column-count worked.
That ID specificity also beat DaisyUI's closed-state display:none
rule, so the menu stayed display:block while 'closed' (only opacity
dropped to 0). The invisible, two-column-wide overlay captured clicks
over underlying page content and fired SPA navigation.

Scope display:block (and the column layout) to the dropdown's open
state (.dropdown-open / :focus-within) so DaisyUI's display:none can
hide the menu and its links when closed.
2026-07-03 00:14:28 +01:00
JingleManSweep 74acc3bec8 Merge pull request #288 from ipnet-mesh/feat/more-ui-tweaks
feat(web): panel accent redesign, mobile nav two-column, light-mode polish
v0.15.1
2026-07-02 23:26:26 +01:00
Louis King 479c263f17 feat(web): redesign panel accent system, mobile nav two-column, and light-mode polish
- Replace panel-glow radial gradient with panel-accent flat tint + 5px
  colored left border for section identity
- Add theme-aware --panel-tint-strength/--panel-tint-bg variables: dark
  mode keeps 8% colored tint, light mode uses neutral grey fill (0%)
- Remove inline section color from stat-value numbers so they inherit
  base-content (white/black) while icons and borders keep section colors
- Fix hero layout: center welcome text vertically, drop spacer div,
  add flex-col to content wrapper
- Split mobile nav dropdown into two balanced columns (column-count: 2)
  with responsive width to reduce vertical height on phones
- Soften flash banner in light mode with direct amber oklch values to
  avoid hue drift from low-chroma color-mix
- Boost stat-title/stat-desc opacity from 60% to 80% in light mode for
  better contrast on grey panels
- Dashboard chart cards now use section colors instead of neutral,
  subtitles bumped from opacity-70 to opacity-80
2026-07-02 23:23:50 +01:00
JingleManSweep 9c8684183c Merge pull request #287 from ipnet-mesh/ui-cosmetic-polish
UI cosmetic polish and IBM Plex typography
2026-07-02 22:13:51 +01:00
JingleManSweep 921e8f0099 Merge branch 'main' into ui-cosmetic-polish 2026-07-02 22:11:49 +01:00
JingleManSweep eb5f7e77f5 Merge pull request #285 from ipnet-mesh/renovate/anomalyco-opencode-1.x
chore(deps): update anomalyco/opencode action to v1.17.13
2026-07-02 22:06:26 +01:00
renovate[bot] 6ae656576b chore(deps): update anomalyco/opencode action to v1.17.13 2026-07-02 21:04:02 +00:00
JingleManSweep 86e41d3a08 Merge pull request #286 from ipnet-mesh/renovate/daisyui-5.x-lockfile
chore(deps): update dependency daisyui to v5.6.10
2026-07-02 22:03:29 +01:00
Louis King 510612d69b feat(web): adopt self-hosted IBM Plex Sans and IBM Plex Mono typography
Replace the OS system font stack with IBM Plex: the variable-weight
sans (100-700, one file per subset) for UI and headings, and Plex Mono
400 for the public keys, packet hashes, and hex that font-mono renders
across the app. Latin + latin-ext subsets only (shipped locales are
en/nl); no italics; mono is never rendered bold here.

Fonts are self-hosted from @fontsource packages via the existing
build.js vendor pipeline (no CDN), copied to static/vendor/fonts/ with
a hard build failure on wrong filenames. Wiring:

- input.css: @theme --font-sans/--font-mono + @font-face rules with
  unicode-ranges taken verbatim from the package CSS; Tailwind v4
  derives the document default from --font-sans, re-fonting daisyUI
  components with no other changes.
- spa.html: preload the latin sans variable woff2 (crossorigin, URL
  identical to the @font-face src) to minimize FOUT.
- charts.js: Chart.defaults.font.family to match (Chart.js otherwise
  uses Helvetica/Arial).
- error.html: name-prepend only; the page stays dependency-free.
- middleware.py: long-term immutable cache for /static/vendor/fonts/
  (stable names referenced from CSS, so ?v= versioning can't apply),
  with a matching test.
- app.css: slight hero-title letter-spacing tightening for Plex at
  display sizes.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 21:58:58 +01:00
Louis King 91a3fcf237 feat(web): make custom clickable elements keyboard accessible
The channel cards, member node badges, and member URL text are
clickable divs/spans, so keyboard users could not reach or activate
them. Add role/tabindex, Enter/Space key handling, and a
focus-visible outline (invisible to mouse users). daisyUI btn/link/
input components already ship focus-visible outlines, so only these
custom elements needed it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 21:32:25 +01:00