Skip to content

Use window for executed tx gauge#243

Open
konradkonrad wants to merge 2 commits into
mainfrom
feat/moving_avg
Open

Use window for executed tx gauge#243
konradkonrad wants to merge 2 commits into
mainfrom
feat/moving_avg

Conversation

@konradkonrad

Copy link
Copy Markdown

This adds a time window to the "Shielded Transactions" gauge display. A new backend method was added for the queries. See attached .GIF for the frontend changes:

gauge-windows

@netlify

netlify Bot commented Jun 29, 2026

Copy link
Copy Markdown

Deploy Preview for golden-cupcake-e13d6e ready!

Name Link
🔨 Latest commit 0841227
🔍 Latest deploy log https://app.netlify.com/projects/golden-cupcake-e13d6e/deploys/6a424d1aaab76a0007e5965e
😎 Deploy Preview https://deploy-preview-243--golden-cupcake-e13d6e.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

SELECT COUNT(id), tx_status FROM decrypted_tx
GROUP BY tx_status;

-- name: QueryExecutedTransactionStatsRecent :many

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The chart currently windows by calendar time but we want to show the inclusion rate over the latest X finalized transactions. The goal being to surface that the recent runs succeeded, regardless of when they ran.

Since we don't have a test continuously sending transactions, a time-based window can end up with zero rows in the selected range and render an empty/NaN gauge, even when the latest runs were all successful, which is the case we most want to show.

Could we switch to a count-based window instead? Showing the latest X transactions, where X would be 100, 1000, ALL for example. See my comment here: https://github.com/shutter-network/shutter-technical-pm/issues/132#issuecomment-4768221376

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.

2 participants