Implement gitlab javascript widget: single version widget
https://docs.cleverthis.com/e/en/architecture/gitlab_widgets
This widget will give some overview information about a specific version for a specific project. It will come in two forms depending on if the version is released yet or in progress.
This is the "single version overview" similar to the overview above but instead of displaying info about all recent versions (released and pending) it displays info for one specific fixed version. It sill come in two varieties depending on if the version being displaying is "in progress" vs "released".. ill describe some of the considerations for both versions below:
In progress:
- Color of version will be the same as the rest of the text (colored red vs blue only makes sense for released versions)
- Percentage on the right and progress bar basically the same as with the general overview above. That is, there should be an option to display the expected release date in brackets next to the percentage when it is set in gitlab:
30% [Apr 3rd, 2024]
- The stats listed below are option and can be excluded with parameters. They include just the stats related to that specific version such as commits that are part of that version, tickets and MR with the same format of open / total as with the overview
- No need to list stars here as with the general overview since that isnt specific to the version
- Clicking the version should by default take you to the item in gitlab, a parameter should be able to override this to point to a custom link
- Border and other stylings optional as before
- A special case unique to us. We sometimes need to mirror our open-source projects across two gitlab servers, one for internal development the other for public access. Therefore we need to be able to specify two or more gitlab servers as the source for the same project, and this widget will need to get the data from both independently and then combine it. For commits this isnt needed but for tickets, and MR this would be needed.
Completed:
- Color of the version should be green if there are no verified bug tickets since release, red otherwise
- Stats would include a "bugs" count, which makes no sense on a "in progress" ticket. This would indicate number of bug found in the version since release
- The stats dont need to show in format of
open / total
since the version is released it wont have any open items. So listing only the total makes sense, all of which should be closed at all times anyway. - Clicking the version should by default take you to the item in gitlab, a parameter should be able to override this to point to a custom link
- Border and other stylings optional as before
- A special case unique to us. We sometimes need to mirror our open-source projects across two gitlab servers, one for internal development the other for public access. Therefore we need to be able to specify two or more gitlab servers as the source for the same project, and this widget will need to get the data from both independently and then combine it. For commits this isnt needed but for tickets, and MR this would be needed.