Skip to content

Conversation

@ImCesar
Copy link
Contributor

@ImCesar ImCesar commented Sep 30, 2021

Connect add project button to mutation

Demo

Add.Project.Demo.mov

How to Test

  1. run yarn dev at root
  2. click add project button
  3. select directory of project you would like to add
  4. double click your project in list to get started

PR Tasks

  • Have tests been added/updated?
  • Has the original issue or this PR been tagged with a release in ZenHub?
  • Has a PR for user-facing changes been opened in cypress-documentation?
  • Have API changes been updated in the type definitions?
  • Have new configuration options been added to the cypress.schema.json?

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Sep 30, 2021

Thanks for taking the time to open a PR!

@ImCesar ImCesar changed the title wire up add project button feat: wire up add project button Sep 30, 2021
aria-controls="fileupload"
prefix-icon-class="text-center justify-center text-lg"
class="w-20% min-w-120px text-size-16px h-full focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-indigo-500"
@click="$emit('new-project')"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think I've removed two of these emits in PR's and wanted to make sure I wasn't getting rid of some vue idiom.

Copy link
Contributor

Choose a reason for hiding this comment

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

No you're good. 👍

Copy link
Contributor

@JessicaSachs JessicaSachs left a comment

Choose a reason for hiding this comment

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

Needs some more tests. I have some suggestions. Essentially, you should refactor the Header a bit to emit add-project and let the parent (whose UI would be updated anyway by graphql behind the scenes) call addProject. This makes the component testable.

Comment on lines 8 to 15
<input
ref="fileInputRef"
type="file"
class="hidden"
webkitdirectory
webkit-relative-path
@change="handleFileSelection"
>
Copy link
Contributor

Choose a reason for hiding this comment

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

This should probably be pulled out into a composable fn or other kind of component, but we'll wait until we use it again.

aria-controls="fileupload"
prefix-icon-class="text-center justify-center text-lg"
class="w-20% min-w-120px text-size-16px h-full focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-indigo-500"
@click="$emit('new-project')"
Copy link
Contributor

Choose a reason for hiding this comment

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

No you're good. 👍

ImCesar and others added 2 commits October 1, 2021 09:27
Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
Copy link
Member

@tgriesser tgriesser left a comment

Choose a reason for hiding this comment

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

Still looking into the mutation testing, will hopefully have an update soon

Make sure to merge unified-desktop-gui into this branch to be up-to-date with the latest changes (just updated the branch protection rules so it shows that button)

@lmiller1990 lmiller1990 marked this pull request as ready for review October 5, 2021 14:37
@tgriesser tgriesser requested a review from a team as a code owner October 6, 2021 13:34
@tgriesser tgriesser requested review from BlueWinds and jennifer-shehane and removed request for a team October 6, 2021 13:34
@ImCesar ImCesar merged commit 98f2604 into unified-desktop-gui Oct 6, 2021
@ImCesar ImCesar deleted the feat-wire-add-project-button branch October 6, 2021 14:42
tgriesser added a commit that referenced this pull request Oct 6, 2021
…nent-tests

* unified-desktop-gui:
  feat: wire up add project button (#18320)
tgriesser added a commit that referenced this pull request Oct 6, 2021
* unified-desktop-gui:
  chore: improving component test infra (#18378)
  chore(launchpad): launchpad UI tweaks (#18369)
  feat: wire up add project button (#18320)
  feat(unify): adding larger defaults for the Launchpad window (#18248)
  fix(app): allow launching app dev server w/o relying on `supportFile` to bundle deps (#18354)
  feat(unify): reporter dark theme (#18313)
  feat(launchpad): UNIFY-371 header menu (#18338)
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.

4 participants