There is a problem that when I enabled the Real-time shift auto-select option, the "to" parameter on url was sought to the end time of a shift. That was not really helpful while I was querying PromQL that calculated a sum of data point in a time range like from the start time of the shift till now. To solve this problem, I have modified your code to add a new option like below.
So my query is able to calculate the sum of data points from the start time of a shift till present.
I hope you would approve this feature and guide me how to contribute my work to your plugin.
By the way, I would suggest another feature that is adding a shift countdown. It would appear below the shift selector on the same panel.
There is a problem that when I enabled the Real-time shift auto-select option, the "to" parameter on url was sought to the end time of a shift. That was not really helpful while I was querying PromQL that calculated a sum of data point in a time range like from the start time of the shift till now. To solve this problem, I have modified your code to add a new option like below.
So my query is able to calculate the sum of data points from the start time of a shift till present.
![image](https://github.com/isaozler/grafana-shift-selector/assets/28901366/c09be0fd-87d0-40c0-ba7b-eb7a60650d09)
I hope you would approve this feature and guide me how to contribute my work to your plugin. By the way, I would suggest another feature that is adding a shift countdown. It would appear below the shift selector on the same panel.