Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add live mode #24

Merged
merged 3 commits into from
Aug 19, 2024
Merged

feat: add live mode #24

merged 3 commits into from
Aug 19, 2024

Conversation

cesconix
Copy link
Collaborator

This PR adds Live Mode functionality to the Log Viewer, enabling near-realtime log updates.

  • Implemented client-side polling with delta updates at 1500ms intervals when enabled
  • Added UI toggle to switch between static view and live mode (<ToggleLiveButton />)
  • Extended Orama schema to support Pinorama-specific metadata (_pinorama.createdAt)
  • Created new React Query hooks for efficient data fetching in both modes (useLiveLogs, useStaticLogs)
  • When executed from terminal with piped output, Pinorama now starts with Live Mode enabled by default

This feature enhances log monitoring capabilities by providing a live tail of log entries, similar to tail -f in unix systems, while maintaining the option for static viewing.

Copy link

changeset-bot bot commented Aug 19, 2024

🦋 Changeset detected

Latest commit: 31ee1cc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
pinorama-client Minor
pinorama-server Minor
pinorama-studio Minor
pinorama-create-server-example Patch
pinorama-fastify-example Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cesconix cesconix merged commit 306a952 into main Aug 19, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant