Skip to content

Commit c099cc1

Browse files
authored
Merge pull request #1550 from lostrogit/wp_supportperiods_improvement
Improve WP release periods
2 parents 11cedf3 + 08affb7 commit c099cc1

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

  • src/components/Workplace/ReleaseTable

src/components/Workplace/ReleaseTable/index.tsx

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ const releaseNoteLink = (
5757
export default function ReleaseTable({ releaseName, isRolling = false }: ReleaseTableProps): JSX.Element {
5858
const rows = getVersion(releaseName, isRolling);
5959
const impAndNewFeatEndDate = isRolling ? rows.improvementsandnewfeaturesEndDate : rows.generalEndDate;
60+
const endText = isRolling ? 'rolling will end' : 'will end';
61+
const version = `${releaseName}.x`;
6062

6163
return (
6264
<MDXProvider>
@@ -92,13 +94,18 @@ export default function ReleaseTable({ releaseName, isRolling = false }: Release
9294
</>
9395
) : (
9496
<>
95-
Improvements and new features will end
96-
{' '}
97-
{impAndNewFeatEndDate}
97+
{isRolling && (
98+
<>
99+
{`Improvements and new features in ${version} `}
100+
{`${endText} ${impAndNewFeatEndDate} (6 months).`}
101+
<br />
102+
</>
103+
)}
104+
{`Bug fixes for general core bugs in ${version} ${endText} `}
105+
{`${rows.generalEndDate} (12 months).`}
98106
<br />
99-
Bug fixes and security fixes will end
100-
{' '}
101-
{rows.securityEndDate}
107+
{`Bug fixes for security issues in ${version} ${endText} `}
108+
{`${rows.securityEndDate} (36 months).`}
102109
</>
103110
)}
104111
</p>

0 commit comments

Comments
 (0)