Commit Graph

67 Commits

Author SHA1 Message Date
Jess 4299af8a0c chore: support vite 2.5 (#20084)
* chore: support vite 2.5

* chore: update eslint ignore statements

* chore: ignore jquery type issue

* chore: yarn integrity checks

* chore: use latest commit of branch for kitchensink

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-02-08 12:07:16 -05:00
Zach Bloomquist dfd70445b1 test(app): fix EBUSY/EPERM errors when running e2e tests on Windows (#19848)
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
Co-authored-by: ElevateBart <ledouxb@gmail.com>
2022-01-26 19:39:13 +00:00
Emily Rohrbough b5d3dae337 test(launchpad): add e2e tests for Project Setup - Round 3 (#19704)
Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>
Co-authored-by: Tyler Biethman <tbiethman@gmail.com>
2022-01-26 11:27:41 -06:00
Zachary Williams 466659e84c test: fix launchpad flake caused by unoptimized deps (#19903) 2022-01-25 19:17:06 -06:00
Emily Rohrbough 9e4c04d720 test(launchpad): add e2e tests for Project Setup - Round 2 (#19580)
Co-authored-by: Tyler Biethman <tbiethman@gmail.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-01-18 15:27:33 -06:00
Blue F 6d10a7faff feat: cy.selectFile() (#19332)
* feat: cy.attachFile with passed-in contents (#18825)
* feat: attachFile string shorthands (#19045)
* feat: Add drag-n-drop support (#19213)
* Remove cypress-file-upload
2021-12-22 09:03:27 -08:00
Mark Noonan 2c7a1a21b0 feat(unify): spec-runner pane resizing (#19303)
* try out vue-draggable-resizeable

* wip

* wip

* css tweaks

* preserve state of the report and spec list widths

* wip based on vueUse useDraggable

* wip 2 panels

* avoid pointer events getting swallowed by the iframe

* correctly hide drag handles when screenshotting

* independent resizable panel component

* switch off of vueuse draggable

* stabilize UI when dragged past max

* simplify resizeable panels logic

* wip begin using new component in spec-runner

* start wiring up local prefs + aut scale

* manage open/closed state of specs list

* save state in preferences

* tweaks

* improve layout of reporter header when narrow

* fix broken test

* fix aut width and aut header width

* tweaks defaults, expand test coverage

* improve test organization

* more test, make sure non-aut panels go away during screenshots

* cleanup

* simplify type

* fix typo

* update types, fix styling bug

* fix type

* move spacing

* chore: types for unify-628 (#19374)

* remove extra div

* move defaults into contants

* fix confusing constant usage

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2021-12-16 10:24:11 +10:00
Tim Griesser 806a31a989 refactor: Improved support for e2e testing (#19306) 2021-12-09 21:23:58 -05:00
ElevateBart 0ef8114252 build: hoist is hard 2021-12-08 10:48:02 -06:00
ElevateBart 56df63b1da build: remove toycode mdi from launchpad 2021-12-07 12:45:28 -06:00
Chris Breiding 0665e13251 feat: Improve launchpad browser warning (#18939)
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2021-11-22 13:59:15 -05:00
Tim Griesser 8eaebc3d16 fix: build-prod-ui deps before build-prod packages 2021-11-16 10:23:02 -05:00
Chris Breiding a9902b2fe6 feat: Support --browser cli option in Launchpad (#18473) 2021-11-08 11:06:23 -05:00
Lachlan Miller e2735dee17 chore: add percy to app and launchpad package (#18781)
* try adding percy

* add percy env vars to circle yml

* add percy to launchpad and frontend-shared

* update circle.yml

* import percy cypress

* simplify percy
2021-11-04 23:03:06 +10:00
Blue F 196e8f62cc feat: Deprecate run-ct / open-ct, and update all examples to use --ct instead (#18422)
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2021-10-26 10:36:44 -04:00
Barthélémy Ledoux 2e9ed8d07f feat: scaffold multiple file in setup (#18482)
* feat: create filerow component

* move badge to frontend-shared

* update badge

* refacto: remove import defineEmits

* update vite

* fix: windi config snafu

* fix badges colors

* move listrow to frontend-shared

* refactor: move icons in the shared area

* refactor: extract config-file and template

* refactor: use the ListRow for runcard

* fix some css mixups

* refactor: use ryans icons in runs

* test all the options of the run

* use ryans icons for cloud test status

* add sampleConfigFiles to Wizard data context

* use the configfiles in the wizard

* restore the balance to the force

* only get the config files when mounting

* add comment

* final cleanup

* refactor: update message and ignore test WIP

* there is still a warning about an id missing

* add test for ConfigFiles and adjust focus

* fix: encode description

* Update copy of page

* rename key of step

* fix barrel issue

* only one cypress:open necessary

* make sure the errored status start open

* simpler filerow

* fix warning alignment

* fix ts

* fix the merge issues

* allow undefined in shiki language

* final fixes

* fix single quotes

* correct curly

* fix tests

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-10-20 17:58:09 +10:00
Barthélémy Ledoux 9a2e55071d feat(unify): removing prism and adding infrastructure for shiki (#18514)
* feat: use shikijs for highlighting code

* add line numbers

* fix Jess's remarks

* remove last instances of prism

* fix: remove unused prism packages

* fix broken build

* remove prism

* remnove prism one last time

* remove the last piece of prism in tests

* remove prism and refactor

* restore proper fe-shared test

* use windi to color shiki

* rename theme and create test

* cosmetic fixes

* avoid the jank

* fix image imports in typescript

* restore mistake

* make the shiki theme generator

* gitignore the shiki-heme generated

* add the shiki theme generation to yarn build

* make shiki theme look good

* last colors to update

* styling fixes

* styling fixes

* styling fixes

* styling fixes

* theme

* fix relative positioning

* Update .gitignore

* Update packages/frontend-shared/src/components/ShikiHighlight.vue

* remove conflicting copy button

* dont top level await

* add a readme for theme generation

* ignore generated theme

* fix integration test in launchpad

* fix other integration test

* bring back the cypress theme

* fixing public path issue

* make e2e work

* fix yarn dev (remove the double slash)

* review theme with ryan

* make copy on click optional

* adjust viewports

* move generation of theme before vite build

Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-10-20 08:00:32 +10:00
Tim Griesser bdfc4a7b80 feat: setting up e2e open mode testing framework (#18472) 2021-10-14 11:10:26 -04:00
Mark Noonan e5c3c8ecd7 feat: (launchpad) UNIFY-429 login happy path (#18439)
* setup initial login modal

* add some i18n to login modal

* show name in header after login

* wip login modal state

* get basic login flow working

* schema update

* add icon and handle hocus for login button

* add close icon to modal, improve styles

* add loading icon to auth button

* use env var to target profile link

* add browserOpened state to gql for auth

* fix type errors & add one style

* add intial tests for login flow

* round out happy path tests

* extrac avatar component from header bar

* lint fix

* remove console log

* formatting

* add gravatar

* test for "waiting" status

* cleanup

* remove unintended change

* improve keyboard behavior on auth modal

* update header test to match new focus behavior

* assign ctx before returning it

* formatting

* pairing with cesar

* add a query just for refetching browser status

* tweaks based on review

* Update packages/data-context/src/actions/AuthActions.ts

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>

* fix issue from merging

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-10-13 01:39:27 +10:00
Tim Griesser 7f6a64d789 chore: DX improvements in unify workflow (#18444) 2021-10-11 18:29:01 -04:00
Tim Griesser d841e1331f refactor: Data context cleanup & IPC bindings for data push (#18357) 2021-10-11 12:13:41 -04:00
Jessica Sachs f7a7683af9 chore(unify): optimize deps automatically, clean up unused files (#18429) 2021-10-09 19:57:18 -04:00
Lachlan Miller 98a9c06c40 feat(unification): adding specs list for the app (#18391)
* wip

* wip

* Adding required icons and strings for spec list

* adding icons with some duplication

* wip

* fixing the colors and classes

* removing the Icon from usage in the button and input

* green => jade

* wip

* Fixes

* wip

* merge

* fixing no projects state

* Adding better spec pattern parsing

* Adding routing for the runner

* adding more tests

* update tests

* chore: lint

* update types

* types

* chore: align vue-i18n version

* update findSpecs

* remove old spec

* omit new properties returned from findSpecs

* fix test

* use different type

Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2021-10-07 22:35:30 +10:00
Tim Griesser 11ba5c53b1 chore: improving component test infra (#18378) 2021-10-06 14:21:13 -04:00
Jessica Sachs d39b1694aa feat: improved DX and support for running component and e2e tests w/ gulp (#18135)
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2021-09-30 12:11:47 -04:00
Jessica Sachs 338da82961 feat(frontend-shared): unifying frontend components, build tools, styles, test config, and more. (#18265)
* feat(frontend-shared): Adding shared components, styles, test tooling, build tooling, and plugins

* chore(launchpad): fix build for feat/fronted-shared-infra (#18267)

* wip: fix build

* fix tests

* modify tsconfig

* fix typing error

* simplify imports

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-09-28 17:48:18 +10:00
userquin 8614e97802 fix(unified-desktop-gui branch): initial installation on windows (#18247) 2021-09-25 14:18:17 -04:00
Mark Noonan fdfc993bdb feat(launchpad): add design tokens from Figma (#18223)
Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
2021-09-24 12:06:07 -04:00
Jessica Sachs 9fde5db7a0 fix(unify): appveyor windows issue + better icon types (#18226)
* fixing icon types and rimraf on windows

* typo. evil typo
2021-09-24 14:01:03 +10:00
Lachlan Miller 48a22f5c18 fix(launchpad): fix bugs introduced by urql/graphcache (#18193) 2021-09-22 11:51:02 -04:00
Mark Noonan 3b8828907d feat(launchpad): Directory Upload in Global Mode (#18165)
* small html tweaks

* add basic implementation of vue3-file-selector

* add test for file upload

* update readme to reflect latest

* Update packages/launchpad/src/global/GlobalEmpty.vue

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>

* HTML tweaks

* add cypress-file-upload types

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-09-22 11:19:37 +10:00
Tim Griesser 94541d4f18 feat: merging / delegating remote queries to cloud schema (#17875)
Changes:
- Pulls down & stitches in the "Cypress Cloud" schema from remote. Currently defaulted to "staging" so we can make quick fixes / iteration there
- Add dedicated type checking CircleCI job `check-ts`
- Adds [graphcache](https://formidable.com/open-source/urql/docs/graphcache/) to normalize the cache & provide better auto-reactivity when data changes
- Removes `LocalProject` / `DashboardProject` in favor of `Project` / `CloudProject`
- General cleanup of Vue components' GraphQL fragments
- Parallelizes launchpad tests & recording to new Cypress project: https://dashboard.cypress.io/projects/sehy69/runs
  - Did this b/c tests were frequently timing out, need to figure out the source of this
- Basic mocks for remote schema
2021-09-20 17:12:59 -04:00
Tim Griesser a851d797a8 feat: improved DX for unified-desktop-gui (#18099)
- Moves graphql-codegen config to the root, which will serve all packages needing it
- Adds gulpfile for coordinating scripts related to dev environment in launchpad app
- yarn dev from the root runs yarn gulp dev, which:
  Runs autobarrel for rolling up the @packages/graphql files
  Cleans the dist & cache for .vite
  Starts the a codegen watcher for Nexus
  Starts the graphql-codegen --watch & highlights output
  Starts vite servers for launchpad & app
  Starts electron watch.js
2021-09-15 11:54:14 -04:00
Lachlan Miller 563a8a2fc8 bump to Vue 3.2.6 (#18098) 2021-09-15 00:33:45 -04:00
Tim Griesser c3c40205e9 fix: move dependencies to devDependencies to fix create-build-artifacts package size guard (#18081) 2021-09-14 12:14:37 +10:00
Lachlan Miller 0cf9468c84 fix transient dep problem 2021-09-10 17:22:59 +10:00
Tim Griesser 536e465c6d pin vite, add --no-bail to lerna build 2021-09-09 09:56:48 -04:00
Lachlan Miller aa93e22f8f fix(launchpad): update wizard navigation (#17954)
* fix various bugs and update navigaiton

* add cache exchange

* fix test

* add tests

* fix tsts

* update query

* do not use graphcache yet

* style

* add header

* Types

* do not use fragment

* types
2021-09-06 21:04:53 +10:00
Tim Griesser 585677662a chore: remove skipLibCheck, re-add vue-tsc, fix types (#17924)
* chore: remove skipLibCheck, re-add vue-tsc, fix types

* fix types & esm export

* mark the ts file as the target for the browser

* fix: serve launchpad dist files in CI

* fix: ensure @headlessui/vue is bundled
2021-08-30 13:37:28 -04:00
Tim Griesser a49dbb44f6 run vite during watch 2021-08-26 21:44:54 -04:00
Jessica Sachs 2edc1bc8f3 fix: source maps while developing electron 2021-08-26 17:12:36 -04:00
Lachlan Miller b794b1fc17 feat(launchpad): expose config via graphql (#17796)
* wip: config for launchpad

* update schema

* wip: config

* wip

* update schema

* update config

* fix types

* old code

* remove console.log

* lint

* fix tests

* fix workflow

* update types

* update clean script

* update launcher to avoid ts compilation errors

* comment out flaky test

* fix compilation

* vue types

* remove vue-tsc for now

* fix schema

* remove old files

* comment out flaky test
2021-08-19 13:45:35 -04:00
Barthélémy Ledoux c44d0817aa feat: allow usage of custom icons (#17713) 2021-08-12 11:00:28 -05:00
Jessica Sachs d15c34fbcf feat(launchpad): UI for Global Mode and Welcome Guide (#17667) 2021-08-11 09:32:19 -04:00
ElevateBart 7a59de1202 chore: update vue 2021-08-10 17:41:32 -05:00
Jessica Sachs 9e40a0faff feat: adding the external editor and select components 2021-08-06 03:12:15 -04:00
Jessica Sachs 60d830ebf1 wip 2021-08-06 03:12:15 -04:00
Jessica Sachs 22c384bea6 chore(launchpad): Adding strings constant support via i18n 2021-08-04 02:39:08 -04:00
Lachlan Miller 65f8b66716 chore: rebase 2021-08-03 11:00:42 +10:00
Jessica Sachs 75dc73db57 Complete adding coverage 2021-08-02 01:50:39 -04:00