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

First parts of scoreset wizardification. #197

Merged
merged 20 commits into from
May 21, 2024

Conversation

ashsny
Copy link
Contributor

@ashsny ashsny commented May 20, 2024

By @jstone-uw and @ashsny.

EstelleDa and others added 10 commits February 9, 2024 15:23
…archPage

Add a Clear All button in search page.
…d fix 3 resulting bugs: header buttons not working, badge numbers not centered, and search icon not displaying correctly.
Ultimately it will be good if we can again use a single screen for these two actions, but at least initially development will be easier if we leave the editor alone. Ideally all of the fields that can be edited after publication will be grouped on the later steps.
Copy link
Collaborator

@bencap bencap left a comment

Choose a reason for hiding this comment

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

This is much nicer than the previous experience, left a couple questions/comments I had while going through the code alongside creating a new score set with the wizard flow.

@@ -18,6 +18,19 @@
</div>
</div>
</template>
<template #item="{item, props, hasSubmenu}">
<router-link v-if="item.route" v-slot="{href, navigate}" :to="item.route" custom>
<a v-ripple v-bind="props.action" class="p-menuitem-link" :href="href" @click="navigate">
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not a huge deal, but it seems like these ripple animations need to be enabled globally to be active (https://primevue.org/ripple/).

When running this branch I see the below in the console

Toolbar.vue:31 [Vue warn]: Failed to resolve directive: ripple ...

We could also probably just remove the directive, not sure it is used anywhere else.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed

<span class="p-menuitem-text">{{ item.label }}</span>
</a>
</router-link>
<a v-else v-ripple class="p-menuitem-link" :href="item.url" :target="item.target" v-bind="props.action">
Copy link
Collaborator

Choose a reason for hiding this comment

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

v-ripple directive, as above.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed

</span>
<span v-if="validationErrors.primaryPublicationIdentifiers" class="mave-field-error">{{
validationErrors.primaryPublicationIdentifiers }}</span>
<Message v-if="experiment" severity="info">
Copy link
Collaborator

Choose a reason for hiding this comment

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

Question on the location of this, which is currently right under the primary publication identifier dropdown. Would it make more sense at the top or bottom of the page? (Perhaps not, but thought it was worth mentioning).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved to top.

<div class="mavedb-wizard-step-controls-row">
<div class="flex justify-content-between mavedb-wizard-step-controls pt-4">
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="showPreviousWizardStep" />
<Button label="Next" :disabled="this.maxWizardStepValidated < activeWizardStep" icon="pi pi-arrow-right" iconPos="right" @click="showNextWizardStepIfValid(showNextWizardStep)" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

This step is automatically valid, but we should probably enforce that the user has added at least one target.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done by your suggested change

src/components/screens/ScoreSetCreator.vue Outdated Show resolved Hide resolved
this.targetGene = emptyTargetGene()
},

addTarget: function () {
Copy link
Collaborator

Choose a reason for hiding this comment

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

We'll need to integrate #194 here. I can handle that in the other PR once this one is merged in.

@bencap bencap linked an issue May 20, 2024 that may be closed by this pull request
ashsny added 5 commits May 20, 2024 17:28
…name to data usage guidelines to match 'other' text.
…ry publication selector if there are not two or more publications. Fix bug where it the selector would show null if the last publication was deleted.
…e DataTable seems to fix (and hopefully has no undiscovered side effects).
@ashsny ashsny merged commit d14b272 into release-2024.1.1 May 21, 2024
@jstone-dev jstone-dev deleted the jstone-uw/create-scoreset-wizard branch May 30, 2024 20:29
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.

Organism is not copied when duplicating an existing target.
4 participants