thoughtworks / metrik

An easy-to-use, cross-platform measurement tool that pulls data out of CD pipelines and analysis the four key metrics for you.
MIT License
354 stars 87 forks source link

Feature: Auto sync button #138

Closed xloypaypa closed 1 year ago

xloypaypa commented 1 year ago

Hi,

I added a auto sync button which will automatically trigger the sync function of sync button with time period selected by user. Which is similar to Grafana's page. image

Also, I tried to use Dropdown.Button which is provided by AntD. But get some problems. Generally, currently we are using 4.10.2 but AntD v4 already 4.24.0. And unfortunately the Dropdown.Button is not working well on 4.10.2. The issue is: in 4.10.2, I looks the Dropdown.Button not support "loading", so the loading icon and loading style need to customize a lot. At the same time, if I upgrade the AntD, then the page style will be messed up. In this case, I will not try to upgrade it for this feature and will use an independent dropdown component for this feature.

kevinlzw commented 1 year ago

@all-contributors please add @xloypaypa for code

allcontributors[bot] commented 1 year ago

@kevinlzw

I've put up a pull request to add @xloypaypa! :tada: