Skip to content

Conversation

@bgruening
Copy link
Member

I would like to have a URL to a tool-tour. The idea is to have something like http://localhost:8080/?tool_id=addValue&version=latest&start-tour <-- please note the start-tour. I have not got this working, but http://localhost:8080/?tool_id=addValue&version=latest&start-tour=t is working.

Is this going into the correct direction?

ping @kostrykin

When using a URL like `?tool_id=addValue&start-tour`, the startTour prop was not being set correctly in ToolForm component.

Root cause:
 - Home.vue spreads the entire query object: { ...this.query }
  - This includes the kebab-case property: "start-tour": null
 - After processing, we set: result.startTour = true
  - But both properties exist: result["start-tour"] and result.startTour
 - When Vue binds props with v-bind="toolParams", the kebab-case property overrides the camelCase one, causing startTour to receive null
@itisAliRH
Copy link
Member

@bgruening It should work now.

@bgruening
Copy link
Member Author

Cool, I confirm that this is now working. Thanks.

- Rename variables for improved readability (localTourData -> tourGenerationResult, tourStartVersionKey -> lastProcessedVersion, etc.)
- Reorganize code structure by moving watchers after functions
- Add descriptive comments to watcher logic
- Simplify startTour query parameter handling in Home.vue
- Fix formatting and indentation in ToolForm.vue
- Reorder imports for consistency
watch(hasFailedHistoryItems, (hasFailed) => {
if (hasFailed) {
Toast.error(
"This tour uploads datasets that failed to be created. You can try generating the tour again.",
Copy link
Member Author

Choose a reason for hiding this comment

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

Something wrong in this sentence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants