Skip to content

Conversation

@fpetkovski
Copy link
Contributor

For setups with many blocks going back several years, it can be hard to see what's loaded and what is coming in from receivers/prometheus.

This PR adds a range filter in the /blocks page which can be used to zoom into individual ranges.

🤖 Generated with Claude Code

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

  • Add checkbox to enable/disable time filtering
  • Add range controls with increase/decrease buttons (default 6 months)
  • Add TimeInput for selecting end time (defaults to current time)
  • Filter blocks based on time range when filtering is enabled
  • Update prettier script to format both .ts and .tsx files

Verification

I mostly tested locally by playing with the UI in the browser.

- Add checkbox to enable/disable time filtering
- Add range controls with increase/decrease buttons (default 6 months)
- Add TimeInput for selecting end time (defaults to current time)
- Filter blocks based on time range when filtering is enabled
- Improve controls consistency with Graph panel styling
- Fix performance by using local state instead of URL params
- Update prettier script to format both .ts and .tsx files

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>
Copy link
Contributor

@pedro-stanaka pedro-stanaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be nice a screenshot of what this looks like in the UI.

@fpetkovski
Copy link
Contributor Author

Will do, I need to fix some glitches when toggling the checkbox repeatedly.

@GiedriusS
Copy link
Member

Yep, some small video/screenshot(-s) would be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants