Commit e14e343d authored by Steve Abrams's avatar Steve Abrams

Display Helm packages in the package registry

Adds Helm package type to the UI package types

Changelog: added
parent 14b6e6c8
......@@ -90,6 +90,10 @@ export const PACKAGE_TYPES = [
title: s__('PackageRegistry|Debian'),
type: PackageType.DEBIAN,
},
{
title: s__('PackageRegistry|Helm'),
type: PackageType.HELM,
},
];
export const LIST_TITLE_TEXT = s__('PackageRegistry|Package Registry');
......
......@@ -10,6 +10,7 @@ export const PackageType = {
RUBYGEMS: 'rubygems',
GENERIC: 'generic',
DEBIAN: 'debian',
HELM: 'helm',
};
// we want this separated from the main dictionary to avoid it being pulled in the search of package
......
......@@ -27,6 +27,8 @@ export const getPackageTypeLabel = (packageType) => {
return s__('PackageRegistry|Generic');
case PackageType.DEBIAN:
return s__('PackageRegistry|Debian');
case PackageType.HELM:
return s__('PackageRegistry|Helm');
default:
return null;
}
......
......@@ -23365,6 +23365,9 @@ msgstr ""
msgid "PackageRegistry|Gradle Kotlin DSL install command"
msgstr ""
msgid "PackageRegistry|Helm"
msgstr ""
msgid "PackageRegistry|If you haven't already done so, you will need to add the below to your %{codeStart}.pypirc%{codeEnd} file."
msgstr ""
......
......@@ -41,6 +41,7 @@ describe('Packages shared utils', () => {
${'rubygems'} | ${'RubyGems'}
${'composer'} | ${'Composer'}
${'debian'} | ${'Debian'}
${'helm'} | ${'Helm'}
${'foo'} | ${null}
`(`package type`, ({ packageType, expectedResult }) => {
it(`${packageType} should show as ${expectedResult}`, () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment