Commit Graph

40 Commits

Author SHA1 Message Date
Lachlan Miller
742f261a1b fix(launchpad): correctly migrate projects settings config in plugins (#20509)
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2022-03-11 13:04:06 -06:00
Tim Griesser
284ae6df6f refactor: remove __fakeInstalledPackagesForTesting (#20529)
* refactor: remove __fakeInstalledPackagesForTesting, use sinon.stub

* make tests pass (avoid double mocking)

Co-authored-by: ElevateBart <ledouxb@gmail.com>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2022-03-08 15:18:38 -05:00
Tim Griesser
92eac2f67e feat: Error standardization (#20323)
* refactor: reworking client-side error shape

* feat: add the CodeFrame to baseerror

* consolidate baseError handling, type fixes

* Fix UNIFY-1164 w/ test cleanup to avoid intercepting

* fix types, cleanup based on review / Brian

* fix: imports / types / tests

* cleanup tests, fix TSError location, add reinitializeCypress mutation

* fix: show correct stack trace file name (#20410)

* Improve comments for regexes / TSError capture

* feat: Add codeframe to error, address PR comments

* update snapshot

* change codeframe impl, per Brian's request

* Attempt to fix test flake

Co-authored-by: ElevateBart <ledouxb@gmail.com>
Co-authored-by: Alejandro Estrada <estrada9166@hotmail.com>
2022-03-02 18:03:52 -05:00
Zachary Williams
7f8a810e3d fix(launchpad): scaffold correct config file (#20372) 2022-02-25 17:29:17 -06:00
Mark Noonan
2997e0e129 feat(unify): Login error states (#20204) 2022-02-21 12:42:02 -05:00
Barthélémy Ledoux
759449c440 feat: detect component testing env (#20002)
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-02-11 15:38:09 -06:00
Alejandro Estrada
f1390f5200 feat: reconfigure project (#20077)
* feat: reconfigure project

* Clear state

* Add tests

* Update with feedback
2022-02-08 18:23:49 -05:00
Zachary Williams
02a669daae feat: relaunch browser when switching testing types from app (#19961)
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2022-02-01 15:45:42 -06:00
Barthélémy Ledoux
11179609a0 feat: detect package manager in wizard (#19960) 2022-01-31 10:38:06 -06:00
Zachary Williams
c49f045f82 feat: launchpad browser select (#19830)
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2022-01-25 16:02:29 -06:00
Mark Noonan
ff6b2cc346 feat(unify): allow prompts to auto-open after set time (#19571) 2022-01-10 15:26:55 -06:00
Barthélémy Ledoux
76466691dd feat: implement the ui for migration to 10.0 (#19371) 2022-01-03 14:42:08 -06:00
Tim Griesser
4626f7481c feat: ProjectLifecycleManager & general launchpad cleanup (#19347)
See #19347 for full summary

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: estrada9166 <estrada9166@hotmail.com>
Co-authored-by: Alejandro Estrada <estrada9166@gmail.com>
Co-authored-by: Jess <jess@jessicasachs.io>
2021-12-21 21:28:44 -05:00
Tim Griesser
806a31a989 refactor: Improved support for e2e testing (#19306) 2021-12-09 21:23:58 -05:00
Lachlan Miller
cc3be10f73 feat(graphql): ability to update/query for appData (#19082)
* move to ts

* refactor

* test

* type

* fix tests

* types

* simplify update preferences via graphql

* types

* simplify

* show config in editor

* fix test

* add description for mutation and update default prefernces

* update schema

* update docs

* update description of localSettings field

Co-authored-by: Mark Noonan <mark@cypress.io>
Co-authored-by: Mark Noonan <oddlyaromatic@gmail.com>
2021-11-29 23:04:57 +10: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
92aa22a9ac chore: post-merge cleanup 2021-11-20 21:39:16 -05:00
Alejandro Estrada
5fe1f5bd3b feat: Create default config file (#18943) 2021-11-18 09:36:56 -05:00
Lachlan Miller
e983f90735 feat(app): support editor preference (#18932)
* editors

* update openerId to binary

* types

* work- around

* refactor

* wip

* rejig actions

* update gql fragments on front-end

* update test

* remove old code

* lint

* remove old test

* wip

* use i18n

* use live mutation

* save editor in same format as other preferences

* update editor opening api

* wip: types

* types

* lint

* types

* simplify types

* implement prox ysettings

* types

* old code

* old import

* update test code

* remove old code

* allow using custom editor

* add tests
2021-11-18 13:40:14 +10:00
Alejandro Estrada
bb8251b752 feat: Use plugins on config files (#18798)
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2021-11-16 14:45:26 -05:00
Tim Griesser
d65a6df9bf refactor: move currentProject to root data (#18834) 2021-11-11 21:19:31 -05:00
Tim Griesser
88280153e9 chore: additional app shape cleanup (#18826) 2021-11-11 20:44:13 -05:00
Tim Griesser
f57a6ee410 chore: remove dead code (#18833) 2021-11-08 22:55:45 -05:00
Tim Griesser
e4f9993d29 chore: Rename activeProject -> currentProject (#18709)
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
Co-authored-by: estrada9166 <estrada9166@hotmail.com>
Co-authored-by: Alejandro Estrada <estrada9166@gmail.com>
2021-11-08 16:00:28 -05:00
Chris Breiding
a9902b2fe6 feat: Support --browser cli option in Launchpad (#18473) 2021-11-08 11:06:23 -05:00
Jessica Sachs
b457751a9b feat: create specs ui (#18483)
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2021-11-05 13:32:43 -04:00
Alejandro Estrada
081dd19cc6 feat: Use .config files (#18578)
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2021-11-02 10:24:39 -04:00
Barthélémy Ledoux
6b14c621ee refactor(app): move runs page in the app (#18606)
* move runs to the app

* remove unused import

* fix routing to runs page

* fix some spacing

* make sure all the solid icons are available

* use the new icons in the runs

* Add and test some useful states

* make and use skeleton for runs

* fix spacing and containers

* fix filerow after refactoring

* fixes on config files

* best skeletton ever

* fix review design with ryan

* add a composables

* add the e2e tests of runs WIP

* remove progress circle

* merge runs page and runspage

* remove anti blinker

* yagni the props

* use main instead of div for runs page

* simplify icons architecture

* use a lookup map to get icons

* remove tabs from file

* fix: add a few more states

* Add runerror

* fixes for rendering mock cloud data in e2e (#18654)

Co-authored-by: ElevateBart <ledouxb@gmail.com>

* Fix could not find browser

* add data-cy flags and fix tests

* e2e tests added and passing

* fix tests

* remove RunError since we don't have the model yet

* all test shells are ready

* add necessary runs icons

* Make RunConnect component

* better render

* fix typecheck

* fix icon for runs page

* center the connect page vertically

* create the Empty page

* fix alignments

* fix the purple

* adjust copy button size

* final touches

* detail fixing

* better transition patterns

* fix scroll

* fix gql generation

* fix some unneeded changes

* fix some typescript

* fix last ts

* better tooling for copy button in shiki

* refactor: fix path to terminal prompt

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

* refactor: invert conditions in RunsConnect

* fix: make connect before checking if there is data

* fix-shrinking page

* fix: code tripping over export default

* fix one laste test

* fix: resolve the title of the project

* refactor: remove the "top" query

* fix: add the top 10 back... @tgriesser

* all component tests work and pass

* typo in comment

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>

* fix correclty

* change maybe projects back

* use transition from design system

* fix compoennt test

Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2021-11-01 10:43:52 +10:00
Cesar
ee4df22cb5 feat: save preferences to cache (#18535)
* save preferences to cache

* connect browserWindow to context

* fix types

* type nitpick

* hide dock icon when window is hidden

* clean up merge conflict

* pr feedback

* refactor preference cache code, fix and add cache tests
2021-10-20 08:41:34 +10:00
Alejandro Estrada
395504c7af feat: handle GraphQL errors (#18494)
* Handle GraphQL errors

* Update mutations to use liveMutations

* Update mutations

* Handle retry error

* Refactor latestGQLOperation

* Update import

* Add exchange comment
2021-10-18 12:23:32 -05:00
Zachary Williams
aa339ef34e feat: expose generated spec content and file parts (#18481) 2021-10-15 12:25:37 -04:00
Barthélémy Ledoux
c653826980 feat: make the select language component (#18443)
Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
2021-10-12 15:38:04 -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
Lachlan Miller
11d07d720b fix(app): only load specs for current testingType (#18431)
* update server

* add launchMode param

* update logic

* update types

* update gql

* basic WIP for e2e

* revert un-necessary changes

* do not rely on wizard for launchProject action

* move launchMode to app

* make specs field return based on activeTestingType

* update type

* types
2021-10-12 14:40:12 +10:00
Tim Griesser
7f6a64d789 chore: DX improvements in unify workflow (#18444) 2021-10-11 18:29:01 -04:00
Lachlan Miller
b07ccf8972 feat(app): persist current spec in data context, update runner workflow for demo (#18406)
* wip: save current spec on server in data context

* execute spec when clickd

* basic CT workflow

* share types

* style

* style

* fix types

* use id to identify current spec

* fix types
2021-10-11 12:34:58 +10:00
Cesar
c4e78af26e feat: expose project config to project nodes (#18424)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-10-09 15:22:21 -04:00
Zachary Williams
745b3ac451 feat: index.html configurability and storybook support (#18242) 2021-10-08 13:16:30 -05:00
Lachlan Miller
2f5e53d442 feat(graphql): expose specs via graphql (#18288) 2021-09-29 14:24:58 -04:00
Tim Griesser
1d5b185c5b refactor: remove nexus-decorators, add data context (#18211)
- Add `@packages/data-context`
- Add `yarn gulp makePackage` for scaffolding a new server package
- Removes `nexus-decorators` in favor of regular Nexus, creating better separation between data & schema
- Possible to launch project in different browser types

Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Cesar <cesaravitia@outlook.com>
2021-09-27 11:49:39 -04:00