Skip to content

Commit

Permalink
chore: replace link to registration with link to catalog-portal
Browse files Browse the repository at this point in the history
  • Loading branch information
hegeaal committed Sep 18, 2024
1 parent 166c411 commit 3f932c3
Show file tree
Hide file tree
Showing 10 changed files with 85 additions and 83 deletions.
3 changes: 2 additions & 1 deletion config.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ window.env = {
REPORT_API_HOST: '$REPORT_API_HOST',
RESOURCE_API_HOST: '$RESOURCE_API_HOST',
SEARCH_SERVICE_HOST: '$SEARCH_SERVICE_HOST',
USE_DEMO_LOGO: '$USE_DEMO_LOGO'
USE_DEMO_LOGO: '$USE_DEMO_LOGO',
CATALOG_PORTAL_BASE_URI: '$CATALOG_PORTAL_BASE_URI'
};
5 changes: 5 additions & 0 deletions deploy/demo/env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,8 @@ spec:
secretKeyRef:
name: commonurl-demo
key: FDK_RESOURCE_SERVICE_BASE_URI
- name: CATALOG_PORTAL_BASE_URI
valueFrom:
secretKeyRef:
name: commonurl-demo
key: CATALOG_PORTAL_BASE_URI
5 changes: 5 additions & 0 deletions deploy/prod/env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,8 @@ spec:
secretKeyRef:
name: commonurl-prod
key: FDK_RESOURCE_SERVICE_BASE_URI
- name: CATALOG_PORTAL_BASE_URI
valueFrom:
secretKeyRef:
name: commonurl-prod
key: CATALOG_PORTAL_BASE_URI
5 changes: 5 additions & 0 deletions deploy/staging/env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,8 @@ spec:
secretKeyRef:
name: commonurl-staging
key: FDK_RESOURCE_SERVICE_BASE_URI
- name: CATALOG_PORTAL_BASE_URI
valueFrom:
secretKeyRef:
name: commonurl-staging
key: CATALOG_PORTAL_BASE_URI
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ services:
- REPORT_API_HOST=https://reports-bff.staging.fellesdatakatalog.digdir.no
- RESOURCE_API_HOST=https://resource.api.staging.fellesdatakatalog.digdir.no
- SEARCH_SERVICE_HOST=https://search.api.staging.fellesdatakatalog.digdir.no
- CATALOG_PORTAL_BASE_URI=https://catalog.portal.staging.fellesdatakatalog.digdir.no

134 changes: 58 additions & 76 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/entrypoints/publishing/components/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import SC from './styled';
import { PATHNAME_PUBLISHING } from '../../../../constants/constants';
import localization from '../../../../lib/localization';

const { FDK_REGISTRATION_BASE_URI, ADMIN_GUI_BASE_URI } = env;
const { ADMIN_GUI_BASE_URI, CATALOG_PORTAL_BASE_URI } = env;

const Header: FC = () => {
const [isDropdownMenuOpen, setIsDropdownMenuOpen] = useState(false);
Expand All @@ -27,7 +27,7 @@ const Header: FC = () => {
</a>
<SC.NavigationLinks>
<li>
<SC.Link href={FDK_REGISTRATION_BASE_URI}>
<SC.Link href={CATALOG_PORTAL_BASE_URI}>
<Translation id='menu.registerData' />
</SC.Link>
</li>
Expand Down Expand Up @@ -59,7 +59,7 @@ const Header: FC = () => {
<Menu>
<SC.Menu>
<li>
<SC.Link href={FDK_REGISTRATION_BASE_URI}>
<SC.Link href={CATALOG_PORTAL_BASE_URI}>
<Translation id='menu.registerData' />
</SC.Link>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import ServiceMessages from '../../../../../../components/service-messages';

import SC from './styled';

const { FDK_REGISTRATION_BASE_URI, ADMIN_GUI_BASE_URI } = env;
const { ADMIN_GUI_BASE_URI, CATALOG_PORTAL_BASE_URI } = env;

interface Props extends RouteComponentProps {}

Expand Down Expand Up @@ -64,7 +64,7 @@ const PublishingPage: FC<Props> = ({ match: { url } }) => {
<p>
<Translation id='publishingPage.methodSections.register.description' />
</p>
<a href={FDK_REGISTRATION_BASE_URI}>
<a href={CATALOG_PORTAL_BASE_URI}>
<Translation id='publishingPage.methodSections.register.cta' />
</a>
<p>
Expand Down
4 changes: 3 additions & 1 deletion src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export default validateEnv(
RESOURCE_API_HOST:
'https://resource.api.staging.fellesdatakatalog.digdir.no',
INFORMATIONMODEL_HARVESTER_HOST:
'https://informationmodels.staging.fellesdatakatalog.digdir.no'
'https://informationmodels.staging.fellesdatakatalog.digdir.no',
CATALOG_PORTAL_BASE_URI:
'https://catalog-portal.staging.fellesdatakatalog.digdir.no'
}
);
1 change: 1 addition & 0 deletions src/types/env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ export interface EnvironmentVariables {
AI_PROJECT_SERVICE_BASE_URI: string;
RESOURCE_API_HOST: string;
INFORMATIONMODEL_HARVESTER_HOST: string;
CATALOG_PORTAL_BASE_URI: string;
}

0 comments on commit 3f932c3

Please sign in to comment.