Skip to content

feat: add ServiceLogcat console component#320

Merged
I-am-nothing merged 1 commit into
mainfrom
feat/logcat-component
Jun 30, 2026
Merged

feat: add ServiceLogcat console component#320
I-am-nothing merged 1 commit into
mainfrom
feat/logcat-component

Conversation

@I-am-nothing

Copy link
Copy Markdown
Contributor

Promotes the dev module-service Logcat into the kit as a shared, data-agnostic console — so both the dev-module page and the per-app debug page can use the same component (web-applications adoption follows in a separate PR).

Adds

  • ServiceLogcat (UI/Dev/ServiceLogcat) — presentational log console: severity-floor + text filter, live-tail toggle, copy, compact single-line timestamps, and click-to-expand rows showing pretty-printed request/response bodies + a duration badge. Newest-at-top with top-anchored follow that anchors the reading position on prepend (no auto-pause); single-open accordion keyed by content.
  • useLogcat hook (filter/floor/tail state) and the LogEntry / LogLevel types.
  • Storybook story with sample entries (incl. one with method/path/status/req/res) + meta.

Conventions

  • Data-agnostic: props are { logs: LogEntry[] } — no data fetching (the dispatch-backed useModuleLogs stays in the consuming app).
  • @/-alias internal imports, exported from the public barrel, meta present (components validate ✓).
  • Version bumped 0.5.15 → 0.5.16 + release label per the kit release flow.

Verify

  • pnpm typecheck ✓ · pnpm components validate ✓ (65/65) · review-like-me APPROVE.

🤖 Generated with Claude Code

@I-am-nothing I-am-nothing added the release Trigger a version bump on merge label Jun 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Storybook Preview: https://mirrorstack-ai.github.io/web-ui-kit/pr/320/

github-actions Bot added a commit that referenced this pull request Jun 30, 2026
Promote the dev Logcat from web-applications into the kit as an idiomatic
ui/dev component. Purely presentational: caller supplies logs: LogEntry[]
(chronological, oldest first); the co-located useLogcat hook owns text/severity
filters, the live-tail toggle, and the single-open accordion, and reverses
entries to newest-first. Pins to the top while tailing, anchors the reading
position on prepend, and expands an access-log line's request/response body
(pretty-printed JSON) on click.

Sibling-primitive imports use the kit-internal @/ alias (Badge, IconButton,
SegmentedButton, FloatingLabelInput, SectionLabel, Surface, cn); LogEntry/
LogLevel + ServiceLogcatProps are exported from the public barrel. Ships a
Storybook story (UI/Dev/ServiceLogcat) with a sample line carrying
method/path/status/req_body/res_body so the expand is demoable. Bumps to
0.5.16 (pre-1.0 patch-only) with a CHANGELOG entry.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@I-am-nothing I-am-nothing force-pushed the feat/logcat-component branch from daa98e4 to f59fb6f Compare June 30, 2026 23:16
github-actions Bot added a commit that referenced this pull request Jun 30, 2026
@I-am-nothing I-am-nothing merged commit dbfaa26 into main Jun 30, 2026
2 checks passed
github-actions Bot added a commit that referenced this pull request Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release Trigger a version bump on merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant