8000 [pull] main from jason5ng32:main by pull[bot] · Pull Request #22 · comanche2008/MyIP · GitHub
[go: up one dir, main page]

Skip to content

[pull] main from jason5ng32:main - #22

Merged
pull[bot] merged 37 commits into
comanche2008:mainfrom
jason5ng32:main
Jun 15, 2026
Merged

pull[bot] merged 37 commits into
comanche2008:mainfrom
jason5ng32:main

Conversation

@pull
@pull pull Bot commented Jun 15, 2026 •
Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

jason5ng32 and others added 30 commits June 6, 2026 12:02
Adds a "Service Status" section between Connectivity and WebRTC showing the
live availability of well-known products (Claude, OpenAI, Cursor, GitHub,
Discord, Cloudflare, Reddit, Notion) from their Statuspage / incident.io pages.

Backend
- common/service-status-providers.js: upstream list + id whitelist
- common/service-status-transform.js: pure summary/incidents normalizers
  (first-level components only; incident URLs built from page + id)
- common/service-status-store.js: 5-min in-memory poller with last-known-good
  so transient upstream blips don't degrade a healthy provider
- api/service-status.js: overview + per-provider components/incidents, served
  from the in-memory snapshot (no upstream call per request)
- guards.js: requireValidProviderId; routes edge-cached for 5 min

Frontend
- ServiceStatus.vue: static provider list (cards always render), expandable
  cards with Services / Recent Incidents tabs, skeleton placeholders, ri brand
  icons, status-icon tones; incidents show title + date / severity (! count) /
  lifecycle-colored status
- utils/service-status-tone.js: status-vocab -> tone/level helpers
- wired into sections.js, App.vue, refresh orchestrator; i18n in en/zh/fr/tr

Tests: transform/tone unit tests, guard + handler smokes; changelog entry.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Vendors structure their status pages too differently for one rule, so each
provider can pass a small `components` selector resolved in normalizeSummary:
- default: top-level rows (group headers + ungrouped components)
- flatten: every leaf, group headers dropped (Reddit)
- include: ordered name whitelist
- exclude: final id/name filter on top of any mode (GitHub drops its
  "Visit … for more information" placeholder)

Cloudflare uses the default top-level set (one "Sites and Services" rollup +
7 continents); its summary.json flattens away the website's mid-level product
categories, and that top-level set keeps the card light consistent with the
list. Long component names get a title tooltip. Selector logic unit-tested.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Replace the two parallel hand-maintained lists (router routes[] and
Advanced.vue cards[]) with one slug-ordered registry in
frontend/data/tools.js. The router routes and the Advanced card grid /
drawer now both derive from it, removing the order-drift failure mode the
Advanced.vue comment warned about.

Also swap the gated-card enablement (invisibility + enhanced DNS leak) from
a fixed 1.5s timeout to a computed on configs.originalSite, so those cards
appear the moment configs land rather than after an arbitrary delay.

Pure refactor / foundation for the upcoming standalone /tools/:slug pages —
no user-visible behavior change (hash routing + drawer unchanged).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Advanced tools can now be opened two ways: the existing in-page drawer, and
a real standalone page at /tools/:slug (shareable, crawlable, new-tab-able).
Same tool components render in both; only the wrapper differs.

- Router moves to HTML5 history mode: `/` → Home.vue, `/tools/:slug` →
  StandaloneTool.vue. The drawer is now driven by a `?tool=<slug>` query on the
  home route instead of a nested route, so ⌘/Ctrl-click, middle-click and the
  drawer-header ↗ open the standalone page.
- App.vue is now a thin shell (tooltip / toast / PWA / theme + <router-view>);
  the homepage body moved to the new Home.vue.
- Legacy hash links are preserved: main.js rewrites `/#/whois` → `/?tool=whois`
  (and `/#/` → `/`) before the router resolves, so old bookmarks still work.
- Standalone pages drop the homepage's fixed-Nav body padding via a
  `body.jn-standalone-page` class toggled on the `/tools/:slug` route.
- MtrTest / GlobalLatencyTest depend on store.allIPs (populated by the
  homepage). On a standalone page that's empty, so they now fall back to a
  validated free-form IP input when no known IPs exist.
- Shortcuts updated to openTool(slug) / data-adv-slug / isToolOpen; tests and
  frontend/AGENTS.md updated to match.

Note: the server-side SPA fallback (so pnpm start / prod serve /tools/*) and
per-route meta land in the next change; dev / preview already have fallback.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Make the /tools/:slug pages production-servable and SEO-addressable.

- frontend-server.js: add an SPA history fallback after the static layer — GET
  navigations (Accept: text/html, no file extension) get index.html so a hard
  load / new tab of a client route resolves. Real assets and /api are untouched;
  missing hashed chunks still 404 rather than returning an HTML body.
- New use-document-meta composable: client-side per-route <title> / description
  / canonical / Open Graph. StandaloneTool sets localized per-tool values + a
  self-referential canonical; Home resets to the index.html homepage defaults
  (so SPA-navigating back from a tool page restores the head). No SSR — applied
  at runtime, picked up by the browser tab and JS-rendering crawlers.

Wraps up the standalone-pages work (drawer + standalone now fully co-exist,
dev / preview / prod all serve the routes).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The drawer moved from path-based routing to the `?tool=` query, so nothing
reads store.currentPath or calls setCurrentPath anymore. Remove the dead state
and action.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…acy hash shim

- StandaloneTool: the back-to-home control was <RouterLink><Button>, which
  renders an invalid <a><button>. Use Button `as-child` around RouterLink so it
  emits a single <a> styled as a button.
- Remove the legacy /#/<slug> → /?tool= redirect shim from main.js: hash routes
  were never crawlable and the SEO hub now links to the real /tools/<slug>
  pages, so there's nothing left to preserve.
- Tweak the BackToHome label to "Back to Home" across all four locales.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
"standalone" was overloaded — the /tools/:slug tool pages vs the PWA
display mode. Note in the router layout entry that "standalone" means the
page, and that the PWA check is utils/pwa.js's isRunningAsPwa(); add pwa to
the utils listing.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…rawer

The screenshot-root used h-full (= 100% of DrawerContent), ignoring the
DrawerHandle above it, so it overflowed the bottom by the handle's height
and vaul's overflow-hidden clipped the legend's bottom padding once the
graph scrolled. Switch to flex-1 + min-h-0 so it fills exactly the space
left after the handle.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
reka-ui's DialogContent warns when no Description / aria-describedby is
present. DialogContent already falls back to its title; mirror that in
SheetContent and DrawerContent with a VisuallyHidden Description that
defaults to the title, plus an optional `description` prop / slot.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Feat: standalone /tools/:slug pages + UI fixes
The four security-checklist locale files (security-checklist/*.json, ~131 KB
gzipped total) were merged into the global i18n bundle and shipped on the
first-paint critical path, even though only the SecurityChecklist advanced tool
reads them. Drop the eager merge; the tool now dynamic-imports just its active
locale's dataset on mount (and reloads on language switch), reusing the
component's existing loading state during the swap.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
All four UI language packs (en/zh/fr/tr.json, ~58 KB gzipped) were bundled
eagerly and modulepreloaded, so every visitor downloaded three locales they'd
never use. Switch i18n to empty initial messages plus a per-locale dynamic
import; main.js loads the active locale (+ the en fallback) before mount, in
parallel with the auth/config waits the mount already gates on — so it adds no
serial latency. Language switching is unchanged (persist choice → re-boot),
which is why a single active locale per load is sufficient.

Because i18n's updateMeta() now runs after the async locale load, Home.vue must
set its <title>/<description> from t() directly instead of leaning on
use-document-meta's DEFAULT_META snapshot (captured at module load, before the
messages land) — otherwise the homepage head fell back to index.html's English
title even on a non-English locale.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@pull pull Bot locked and limited conversation to collaborators Jun 15, 2026
@pull pull Bot added the ⤵️ pull label Jun 15, 2026
@pull
pull Bot merged commit 252122a into comanche2008:main Jun 15, 2026

This branch had an error being deployed

1 failed deployment
production — 252122a6 Deployed Jun 15, 2026 by pull[bot] via Push README to Docker Hub #5
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0