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/studio/logs: Timestamp from dropdown input #4904
Conversation
This pull request is being automatically deployed with Vercel (learn more). about – ./about🔍 Inspect: https://vercel.com/supabase/about/9SrnroyGL8VuD5DbU3UDdyskzWPS [Deployment for 022d54a canceled] zones-docs – ./web🔍 Inspect: https://vercel.com/supabase/zones-docs/GEzXhtjzZih2F4uVgXKFmGQ88uYD [Deployment for 022d54a canceled] zone-www-dot-com – ./www🔍 Inspect: https://vercel.com/supabase/zone-www-dot-com/94YUnaudSuKvmotaFGdhPjw5Zqjo [Deployment for 022d54a canceled] |
Blocked by #4732 due to dropdown helper and radix setup not present in master yet. Indirectly blocked by https://github.com/supabase/infrastructure/issues/3560 |
Latest demo, ready for review Screen.Recording.2022-01-19.at.12.21.49.AM.movI had to hack around with the border radius using tailwind's JIT important The timestamp input gets hidden when in query mode. |
allowed timestamp range checking and warning info text based on free restrictions vs pro will be added in later PR, once Pro checking on api side is complete |
This PR introduces a
timestamp from
input (in a dropdown, see above)which allows studio users to set or clear the filter.Clicking on the
Now
button will open up the dropdown, showing the currrent timestamp.Upon changing the timestamp value to a valid ISO timestamp and clicking submit, it will trigger the filter and set internal filter state to that value.
Once internal state is set, the LogPanel timestamp button will display as a button group, with
Custom
on the left and a clear filter button on the right. It will also be highlighted (either solid bg or dash-outlined) to signify that the filter is active.ts
query paramts
value