stable

Clone or download

Read-only

Display pull-request's date + stats + references

part of story #31069 Render everything that is read only Note to reviewer: I deliberately copied/pasted the implementation of strict-inject into the app code. I plan to extract this implementation in an external library later, so we can use it everywhere we provide/inject some values. How to test: - Pick up a pull-request and go to the overview tab --> When the PR is loading, only labels and skeletons are shown --> The creation date is displayed using the tlp-relative-date element --> It takes your preferences into account --> The added/removed lines are displayed --> The references are displayed Change-Id: I9a3fc15cce509dd237dc2102d17889fd7006a835

Modified Files

Name
M plugins/pullrequest/scripts/pullrequest-overview/package.json +3 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/pnpm-lock.yaml +10 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/po/fr_FR.po +6 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/api/types.ts +10 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/components/OverviewPane.test.ts +2 −1 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/components/OverviewPane.vue +8 −2 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/components/OverviewTabs.vue +3 −7 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-overview/src/components/ReadOnlyInfo/PropertySkeleton.vue +24 −0 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-overview/src/components/ReadOnlyInfo/PullRequestCreationDate.test.ts +58 −0 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-overview/src/components/ReadOnlyInfo/PullRequestCreationDate.vue +47 −0 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-overview/src/components/ReadOnlyInfo/PullRequestReferences.test.ts +62 −0 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-overview/src/components/ReadOnlyInfo/PullRequestReferences.vue +52 −0 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-overview/src/components/ReadOnlyInfo/PullRequestRelativeDate.test.ts +55 −0 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-overview/src/components/ReadOnlyInfo/PullRequestRelativeDate.vue +67 −0 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-overview/src/components/ReadOnlyInfo/PullRequestStats.test.ts +56 −0 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-overview/src/components/ReadOnlyInfo/PullRequestStats.vue +57 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/constants.ts +6 −0 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-overview/src/helpers/strict-inject.ts +30 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/pullrequest-overview.ts +13 −3 Go to diff View file
M plugins/pullrequest/templates/angular-pullrequest.mustache +1 −0 Go to diff View file