Skip to content

Serve exploration config to the front-end#6352

Merged
aerosol merged 8 commits into
masterfrom
exploration-metadata
May 14, 2026
Merged

Serve exploration config to the front-end#6352
aerosol merged 8 commits into
masterfrom
exploration-metadata

Conversation

@aerosol
Copy link
Copy Markdown
Member

@aerosol aerosol commented May 14, 2026

No description provided.

@github-actions
Copy link
Copy Markdown

Preview environment👷🏼‍♀️🏗️
PR-6352

Comment thread assets/js/dashboard/site-context.tsx Outdated
Comment on lines +12 to +16
explorationJourneyEndEvent: dataset.explorationJourneyEndEvent ?? '',
explorationMaxJourneySteps: parseInt(
dataset.explorationMaxJourneySteps ?? '0',
10
),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

AFAIU, the fallbacks are here mostly to avoid issues during rolling release right? We might want to make those properties asserted as non-null with "!" later on.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Comment on lines +1040 to +1041
JOURNEY_END_EVENT,
MAX_JOURNEY_STEPS
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are they really necessary as effect dependencies? 🤔

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

4bd86fc, thanks

colIndex,
onSelect
}) {
const { explorationJourneyEndEvent: JOURNEY_END_EVENT } = useSiteContext()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

IMHO it's better to use journeyEndEvent and maxJourneySteps, event if those variables extracted from context are constants. Uppercase convention is AFAIK expected for locally declarted constants and that might throw someone reading the code off and wonder where it's coming from.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@aerosol aerosol added this pull request to the merge queue May 14, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 14, 2026
@aerosol aerosol added this pull request to the merge queue May 14, 2026
Merged via the queue into master with commit f428d38 May 14, 2026
36 of 39 checks passed
@aerosol aerosol deleted the exploration-metadata branch May 14, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants