Skip to content

UI: Refactor Create Wizard Cards in Platform UI and Add Step 4 in CreateWiki.vue#1105

Draft
rosalieper wants to merge 2 commits intomainfrom
T419207
Draft

UI: Refactor Create Wizard Cards in Platform UI and Add Step 4 in CreateWiki.vue#1105
rosalieper wants to merge 2 commits intomainfrom
T419207

Conversation

@rosalieper
Copy link
Contributor

Bug: T419207

@github-actions
Copy link

github-actions bot commented Mar 6, 2026

Deployment previews on netlify for branch refs/pull/1105/merge will be at the following locations (when build is done):

@rosalieper rosalieper marked this pull request as draft March 6, 2026 17:08
@previous-step="goToStep(2)"
@submit="createWiki"
/>
<step-four-card
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't want to include this Step Four in this PR. Implementing a new card isn't due until a later ticket: T419210 and it should be called KnowledgeEquityCreateWikiWizardStep

import StepThreeCard from './CreateWikiWizardStepThree.vue'
import SiteDetailsCreateWikiWizardStep from './SiteDetailsCreateWikiWizardStep.vue'
import AudienceAndPurposeWizardStep from './AudienceAndPurposeWizardStep.vue'
import TemporalityProfileEditWizardStep from './TemporalityProfileEditWizardStep.vue'
Copy link
Contributor

Choose a reason for hiding this comment

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

We only need ...CreateWikiWikiWizardStep components in this CreateWiki card

import SiteDetailsCreateWikiWizardStep from './SiteDetailsCreateWikiWizardStep.vue'
import AudienceAndPurposeWizardStep from './AudienceAndPurposeWizardStep.vue'
import TemporalityProfileEditWizardStep from './TemporalityProfileEditWizardStep.vue'
import TemporalityCreateWikiWizardStep from '@/components/Cards/TemporalityCreateWikiWizardStep.vue'
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this @ symbol for importing probably works fine although I haven't tested it. I think we could stick with consistently using the same import type for all cases either ./ or @

temporality: '',
otherTemporality: ''
},
stepFour: {
Copy link
Contributor

Choose a reason for hiding this comment

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

As above we don't need a step four yet :)

@click="submitWholeForm"
>
{{ submitButtonText }}
Create Wiki
Copy link
Contributor

Choose a reason for hiding this comment

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

This now needs to have a different value hardcoded because this component is now designed to be used in the ProfileEdit context. It should have "Set intended use" from https://github.com/wbstack/ui/pull/1105/changes#diff-65f4e79e86b49a3110f6196179d7d13de0b9d84e8cc5b8f42a42de0dbcb98273L24

:error="dialog.error"
:dismissable="true"
:showTerms="false"
submitButtonText="Set intended use"
Copy link
Contributor

Choose a reason for hiding this comment

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

This no longer needs to be passed in since we hardcoded it above


<script>
export default {
name: 'StepThreeCard',
Copy link
Contributor

Choose a reason for hiding this comment

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

Let us also change the name to match the filename here


<script>
export default {
name: 'StepFourCard',
Copy link
Contributor

Choose a reason for hiding this comment

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

Let us also change the name to match the filename here

Copy link
Contributor

Choose a reason for hiding this comment

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

Let us also change the exported name to match the filename here

Copy link
Contributor

Choose a reason for hiding this comment

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

Let us also change the exported name to match the filename here

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