Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic title from pisa #731

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open

Dynamic title from pisa #731

wants to merge 23 commits into from

Conversation

apepper
Copy link
Contributor

@apepper apepper commented Jan 29, 2025

Pisa still needs to provide title. But the fallback is good enough for now.

@apepper apepper requested a review from dcsaszar January 29, 2025 14:29
@dcsaszar dcsaszar self-assigned this Jan 31, 2025
Copy link
Contributor

@dcsaszar dcsaszar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Only F(Y/M)I

Comment on lines +3 to +5
/**
* Fetches the schema for `subPath`.
* */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • FYI This comment and the duplicate in fetchAttributes explain internals which are not really interesting for the caller.

Comment on lines +26 to +29
title: async () =>
(await load(currentLanguage)) === 'de'
? 'Allgemeine Marketingzustimmung'
: 'General marketing consent',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • FMI Where can I find this in use in the content?

@@ -16,6 +16,8 @@ async function attributes(): Promise<DataAttributeDefinitions> {
export function opportunityParamsFallback() {
return {
attributes,
title: async () =>
(await load(currentLanguage)) === 'de' ? 'Chance' : 'Opportunity',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -169,6 +169,8 @@ async function attributes(): Promise<DataAttributeDefinitions> {
export function ticketParamsFallback() {
return {
attributes,
title: async () =>
(await load(currentLanguage)) === 'de' ? 'Ticket' : 'Ticket',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • FYI could be a constant

@@ -29,6 +29,10 @@ async function attributes(): Promise<DataAttributeDefinitions> {
export function serviceObjectDocumentParamsFallback() {
return {
attributes,
title: async () =>
(await load(currentLanguage)) === 'de'
? 'Serviceobjektdokument'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • FYI maybe make the composition clearer by Serviceobjekt-Dokument

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants