{options.map((option, cardNumber) => {
const { svgUrl, title, body, unselectable, internalName } = option;
@@ -311,4 +363,4 @@ const mapDispatchToProps = (
export default connect(
null,
mapDispatchToProps
-)(SelectOption);
+)(injectIntl(SelectOption));
diff --git a/src/client/src/containers/SelectOption/styles.module.css b/src/client/src/containers/SelectOption/styles.module.css
index d38a506006..8db434d864 100644
--- a/src/client/src/containers/SelectOption/styles.module.css
+++ b/src/client/src/containers/SelectOption/styles.module.css
@@ -3,6 +3,29 @@
flex-wrap: wrap;
}
+.description {
+ border-radius: 3px;
+ padding: 3px 10px 3px 10px;
+ margin-right: 5px;
+ margin-bottom: 30px;
+ display: inline-flex;
+ justify-content: center;
+ align-items: center;
+ text-decoration: none;
+}
+
+.description:focus {
+ outline: 1px solid var(--vscode-contrastActiveBorder);
+}
+
+.borderGreen {
+ border: 1px solid var(--vscode-gitDecoration-untrackedResourceForeground);
+}
+
+.borderYellow {
+ border: 1px solid var(--vscode-editorMarkerNavigationWarning-background);
+}
+
.icon {
height: 36px;
}
diff --git a/src/client/src/containers/SelectPages/index.tsx b/src/client/src/containers/SelectPages/index.tsx
index c3dff0ab09..38f4a9e8b5 100644
--- a/src/client/src/containers/SelectPages/index.tsx
+++ b/src/client/src/containers/SelectPages/index.tsx
@@ -118,6 +118,7 @@ class SelectPages extends React.Component
{
selectedPages
)}
title={intl.formatMessage(messages.pagesTitleQuestion)}
+ description="Max 20 pages can be selected"
options={options}
currentCardData={selectedPages}
cardTypeCount={pageCount}
diff --git a/src/client/src/translations/en.json b/src/client/src/translations/en.json
index 6438a0c8bf..181863543e 100644
--- a/src/client/src/translations/en.json
+++ b/src/client/src/translations/en.json
@@ -101,6 +101,9 @@
"pageNameError.emptyName": "Name cannot be empty",
"pageNameError.invalidRegex": "Name may only contain letters, numbers, spaces, dashes or underscores",
"pageNameError.nameStartLetter": "Page name may only start with letters",
+ "pages.limitedPagesMessage": "You can select up to 20 pages",
+ "pages.maxPagesText": "Icon for Max Pages Description",
+ "pages.overlimitPagesMessage": "You cannot add more than 20 pages to the project",
"postGenerationModal.azureServices": "Azure Services",
"postGenerationModal.closeWizard": "Close Wizard",
"postGenerationModal.createAnotherProject": "Create New Project",
diff --git a/src/client/src/utils/constants.ts b/src/client/src/utils/constants.ts
index 245310c72f..bf9948dbe8 100644
--- a/src/client/src/utils/constants.ts
+++ b/src/client/src/utils/constants.ts
@@ -9,6 +9,8 @@ const NEW_PROJECT = "/";
const PROJECT_NAME_CHARACTER_LIMIT = 50;
+const MAX_PAGES_ALLOWED = 20;
+
const PRODUCTION = "production";
const DEVELOPMENT = "development";
@@ -141,6 +143,7 @@ export {
COSMOS_APIS,
DEVELOPMENT,
PROJECT_NAME_CHARACTER_LIMIT,
+ MAX_PAGES_ALLOWED,
FRAMEWORK_TYPE,
KEY_EVENTS
};