Skip to content

Commit

Permalink
Merge branch 'feature/WAL-8046' into 'develop'
Browse files Browse the repository at this point in the history
WAL 8046 Add marketplace title page to configuration

See merge request waldur/waldur-homeport!5409
  • Loading branch information
livenson committed Jan 22, 2025
2 parents 77ca002 + 8e56acc commit f8bfb7d
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions cypress/fixtures/configuration-admin.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"SITE_PHONE": "",
"SITE_DESCRIPTION": "Your single pane of control for managing projects, teams and resources in a self-service manner.",
"MASTERMIND_URL": "",
"MARKETPLACE_LANDING_PAGE": "Marketplace",
"ANONYMOUS_USER_CAN_VIEW_OFFERINGS": true,
"ENABLE_RESOURCE_END_DATE": true,
"AUTHENTICATION_METHODS": ["LOCAL_SIGNIN", "SAML2", "SOCIAL_SIGNUP"],
Expand Down
1 change: 1 addition & 0 deletions cypress/fixtures/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"NATIVE_NAME_ENABLED": false,
"ENABLE_RESOURCE_END_DATE": true,
"AUTHENTICATION_METHODS": ["LOCAL_SIGNIN"],
"MARKETPLACE_LANDING_PAGE": "Marketplace",
"COMPANY_TYPES": [
"Ministry",
"Private company",
Expand Down
1 change: 1 addition & 0 deletions cypress/fixtures/support/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"SITE_NAME": "Waldur",
"SITE_EMAIL": "",
"SITE_ADDRESS": "",
"MARKETPLACE_LANDING_PAGE": "Marketplace",
"LANGUAGE_CHOICES": "en,it,de,es,et,fr,ar",
"SITE_PHONE": "",
"SITE_DESCRIPTION": "Your single pane of control for managing projects, teams and resources in a self-service manner.",
Expand Down
1 change: 1 addition & 0 deletions src/auth/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ interface CoreConfiguration {
SITE_PHONE: string;
SITE_EMAIL: string;
SITE_NAME: string;
MARKETPLACE_LANDING_PAGE: string;
TRANSLATION_DOMAIN: string;
ORGANIZATION_SUBNETS_VISIBLE: boolean;
CURRENCY_NAME: string;
Expand Down
1 change: 0 additions & 1 deletion src/configs/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { ApplicationConfigurationOptions } from '@waldur/core/types';

export const ENV: ApplicationConfigurationOptions = {
apiEndpoint: 'http://localhost:8080/',
marketplaceLandingPageTitle: '',
pageSize: 10,
buildId: 'develop',
accountingMode: 'accounting',
Expand Down
1 change: 0 additions & 1 deletion src/core/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export interface ApplicationConfigurationOptions {
languageChoices?: LanguageOption[];
defaultLanguage?: string;
FEATURES?: Record<string, boolean>;
marketplaceLandingPageTitle: string;
pageSize: number;
buildId: string;
accountingMode: 'billing' | 'accounting';
Expand Down
10 changes: 8 additions & 2 deletions src/marketplace/landing/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ import { OfferingsSearchBox } from './OfferingsSearchBox';
import './LandingPage.scss';

export const LandingPage: FC<{}> = () => {
useTitle(ENV.marketplaceLandingPageTitle || translate('Marketplace'));
useTitle(
ENV.plugins.WALDUR_CORE.MARKETPLACE_LANDING_PAGE ||
translate('Marketplace'),
);
useFullPage();

const showExperimentalUiComponents = isExperimentalUiComponentsVisible();
Expand All @@ -49,7 +52,10 @@ export const LandingPage: FC<{}> = () => {
)}
<LandingHeroSection
header={translate('Welcome to')}
title={ENV.marketplaceLandingPageTitle || translate('Marketplace')}
title={
ENV.plugins.WALDUR_CORE.MARKETPLACE_LANDING_PAGE ||
translate('Marketplace')
}
>
<div className="d-flex justify-content-center">
<OfferingsSearchBox />
Expand Down

0 comments on commit f8bfb7d

Please sign in to comment.