roadie-backstage-plugins icon indicating copy to clipboard operation
roadie-backstage-plugins copied to clipboard

Reverse ordering of ArgoCDHistory using a new prop

Open rmanny opened this issue 3 years ago • 1 comments

In my organization, we have the GitHub Actions CI/CD Card on the same tab as the ArgoCD History Card.

The GH Actions are ordered in descending order, with newest run on top, while the ArgoCD History is ordered in the opposite direction, with the oldest event on top.

Feature Suggestion

I propose that a new Boolean prop should be added to this component which can choose between ascending and descending order. I also propose that the default be the opposite of what it is now, since it seems a lot more natural that way (to me, at least). I wouldn't think users should have to scroll down to view the latest syncs, which is what they would be most interested in.

Possible Implementation

With the prop, the history can just be mapped in reverse order. I can easily make a MR if this feature is a good idea, seems like a perfect first issue.

Context

Just trying to make things a bit nicer. This plugin is awesome, and is super useful at our org. Would be awesome to help improve it.

Thanks for checking my idea out!

rmanny avatar Jun 03 '21 20:06 rmanny

Thanks for the issue @rmanny PRs are more than welcome if you have the time. As to the suggestion, absolutely, go for it (it seems like a bug really but there's no harm leaving an option to sort differently if need be).

iain-b avatar Jun 03 '21 21:06 iain-b

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Oct 31 '23 10:10 github-actions[bot]