feat: origin-based namespaces + 10s bucket grid view#5
Merged
Conversation
Co-authored-by: muke1908 <20297989+muke1908@users.noreply.github.com> Agent-Logs-Url: https://github.com/muke1908/noconsole/sessions/c4f70adb-d1af-4575-a7a4-0bb5161088fb
Copilot created this pull request from a session on behalf of
muke1908
March 26, 2026 08:36
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Namespaces were UUID-only and the log viewer had no way to see all log levels side-by-side. This PR ties namespace identity to the connecting origin's hostname and adds a time-bucketed multi-column view.
Origin-based namespaces
Server (
server/index.js)Originheader hostname (e.g.https://www.domain1.com→ namespacewww.domain1.com). Falls back to UUID whenOriginis absent or unparseable (Node.js clients).activeLoggers: Set→activeLoggerCounts: Map<namespace, number>to support concurrent loggers from the same origin sharing one namespace.UUID_PATH_RE→NAMESPACE_PATH_RE— accepts both UUID slugs and domain-name slugs, with strict start/end alphanumeric validation to reject degenerate hostnames.Frontend (
App.tsx)getNamespaceFromPath()updated to use the same permissive pattern, enabling viewer routes like/www.domain1.com.4-column bucket view
New
BucketViewer.tsxTime Bucket | ERROR | DEBUG | INFO | WARN. Empty cells shown/a. Search filter fromFilterBarapplies. Auto-scrolls to the latest bucket.Header.tsx/App.tsx⊞ Bucket / ☰ Listtoggle in the header that switches between the newBucketViewerand the existingLogViewer.