1384 Commits

Author SHA1 Message Date
Sven Efftinge
3a3d99edd3
[admin] show workspace instances (#17322) 2023-04-24 21:23:45 +08:00
Milan Pavlik
23d6710275
[dashboard] Remove local-preview-alert (#17343) 2023-04-24 21:10:45 +08:00
Filip Troníček
83e56d54d5
Add the Browser Terminal as an IDE (#17196)
* Add xterm as an IDE

* Move the IDE to our GCP registry 🎉

* Also resolve the source code commit for IDEs in `ide-service`

* Add feature flag

* Xterm => terminal

* Revert "Also resolve the source code commit for IDEs in `ide-service`"

This reverts commit 06aee00959c24469e6fae904394badd4660dd97b.

* always add `<iframe>` to the top of `<body>`

* Add the next non-jb IDE :)

* Add latest image

* Filter out IDEs on the backend (#17324)

* Address review comments

Never mutate `s.ideConfig` itself and make an in-memory copy of it to not use it every time.

* Pre-compute outside

* Stringify config instead of options
2023-04-24 19:42:45 +08:00
George Tsiolis
90b7d65858
Remove the obsolete CheckBox component (#17186) (#17188)
Co-authored-by: Devansu Yadav <devansuyadav@gmail.com>
2023-04-23 18:50:44 +08:00
Brad Harris
0f88afefb8
adding backend support for payment intents (#17309)
* adding support for payment intents

* support payment intents in server

* handling new arg

* adjust hold to be 1.00

* removing old comment
2023-04-22 03:05:42 +08:00
Alex Tugarev
ee82d153e3
Enable Dedicated Onboarding Flow – WEB-193 (#17303)
* uncommitted yarn.lock

* [protocol] adding ONBOARDING_IN_PROGRESS

* [gitpod-db] add `someOrgWithSSO` to team db

* [server] add ONBOARDING_IN_PROGRESS hook

* [dashboard] catch ONBOARDING_IN_PROGRESS error

* [configcat] adding `custom.gitpod_host` attribute to select preview envs
2023-04-21 21:08:42 +08:00
Gero Posmyk-Leinemann
70bfc4d99f
Purge gitpod-protocol from all Chargebee related artifacts (#17291)
* [server, dashboard] Purge NOT_ENOUGH_CREDIT (chargebee)

* [server] Remove CreditAlert notifications

* [protocol] Remove dead code related to Chargebee

* [protocol] Remove superfluous error codes
2023-04-19 23:58:51 +08:00
Filip Troníček
f85d4e4458
experimental IDEs feature flag (#17240)
* `experimental` IDEs feature flag

* [debug, do not merge]: test with experimental VS Code
2023-04-19 20:52:51 +08:00
Gero Posmyk-Leinemann
0058d68f5e
[dashboard] Remove superfluous usage_view feature flag (#17285) 2023-04-19 17:15:51 +08:00
Gero Posmyk-Leinemann
ae37d8c1ab
Remove api.isStudent and all connected code/DB (#17275)
* [server, dashboard] Remove isStudent

* [server] Remove hasEducationalInstitutionSuffix and swot-js

* [db] Clean EduEmailDomainDB model

* [db] Drop d_b_edu_email_domain

* [yarn] Remove swot-js from yarn.lock

* [db] Remove d_b_edu_email_domain from tables.ts

* Fix
2023-04-19 15:58:51 +08:00
Gero Posmyk-Leinemann
05e18a58ea
Remove BillingMode.Chargebee (#17269)
* [dashboard] Remove usage of BillingMode.canSetWorkspaceClass/.showTeamSubscriptionUI

* [server] Cleanup remaining BillingMode.Chargebee usages

* [server] Remove BillingMode.Chargebee
2023-04-18 20:13:50 +08:00
Gero Posmyk-Leinemann
7635623980
Purge all Chargebee-related API methods (#17262)
* [server] Remove unused Chargebee-related payment APIs

* [server] Handle all permission cases for operations on attributionIds

* [server] Leftover import

* fix build
2023-04-18 19:54:50 +08:00
Gero Posmyk-Leinemann
0c463e2488
[dashboard] Fix broken /usage redirect (#17266) 2023-04-18 19:26:50 +08:00
Alex Tugarev
1def3c9136
remove remainings of obsolete ToS/terms code (#17261) 2023-04-18 18:36:50 +08:00
Gero Posmyk-Leinemann
cdbbe5260e
[dashboard] Remove chargebee references III (#17242)
* [dashboard] Remove Chargebee TeamBilling

* [dashboard] Remove isUsageBasedBillingEnabled feature flag

* [dashboard] Remove chargebee-client

* [dashboard] Remove chargebee from UserDetail

* [dashboard] Cleanup PaymentContext

* [dashboard] Slash last Chargebee mentions
2023-04-18 14:50:50 +08:00
Manuel Alejandro de Brito Fontes
891cd5417d
Update k8s dependencies to v0.26.2 (#17211)
* Update k8s dependencies to v0.26.2

* Update controller-runtime to v0.14.6

* Update cloud storage
 https://github.com/googleapis/google-cloud-go/issues/6857

* Update copy options

* Update wolfi image

* Remove controller-runtime replace directives

* Fix integration tests
2023-04-18 03:59:49 +08:00
Gero Posmyk-Leinemann
15e91b4b9c
[dashboard] Remove chargebee references II (#17241)
* [dashboard] Remove Chargebee TeamBilling

* [dashboard] Remove isUsageBasedBillingEnabled feature flag
2023-04-17 23:00:49 +08:00
Gero Posmyk-Leinemann
6d1ecf8fa6
[dashboard] Remove chargebee references I (#17239)
* [dashboard] Remove /plans

* [dashboard] Remove /old-team-plans
2023-04-17 21:52:49 +08:00
Sven Efftinge
c44aa18c28
[workspace list] filter by org (#17228) 2023-04-17 17:48:49 +08:00
Jan Keromnes
384129e64f
Rephrase credits to hours in LinkedIn onboarding (#17220) 2023-04-14 18:02:54 +02:00
Gero Posmyk-Leinemann
4ec5a5a0c9
[dashboard] Remove "/switch-to-payg" (#17216) 2023-04-14 16:40:54 +02:00
Sven Efftinge
b12678bde1
remove generic notifications (#17217) 2023-04-14 13:57:53 +02:00
Brad Harris
8fe91c722d
Persist new workspace contextURL on org change (#17209) 2023-04-14 09:14:53 +02:00
Sven Efftinge
1e533eb5d0
[dashboard] create ws keep button enabled (#17208)
don't disable the button during context resolution
2023-04-13 19:52:53 +02:00
Sven Efftinge
af63f88aeb
[dashboard] use workspace class component (#17206) 2023-04-13 17:36:53 +02:00
Sven Efftinge
dcebffdf7e
[dashboard] handle needs_verification on create (#17203) 2023-04-13 14:40:53 +02:00
George Tsiolis
82bbd7c297
Update new workspace button style (#17165) 2023-04-13 10:27:52 +02:00
Sven Efftinge
1337e59fa9
[dashboard] handle context resolution errors9 (#17159) 2023-04-13 10:02:52 +02:00
Brad Harris
b98b5e78a9
wrap ff around connect with linkedin (#17195)
* wrap ff around connect with linkedin

* Fallback to setting profile email w/ primary email
2023-04-13 08:32:53 +02:00
Brad Harris
384454ea9f
add link class (#17189) 2023-04-12 17:26:52 +02:00
Jan Keromnes
f7101c5aed
Implement user account verification with LinkedIn during onboarding (#17074)
* Implement user account verification with LinkedIn during onboarding

* updating connect with linked-in banner

* removing unused imports

* Store token, fix binding

* Refactor LinkedInToken to LinkedInProfile

* Actually write the LinkedIn secret to the server config

* Fetch LinkedIn user profile and email address

* Add creationTime column to d_b_linked_in_profile

* Add more debug logging

* Fix LinkedIn API calls, mount LinkedInProfileDB

* Also bind LinkedInProfileDB

* Add LinkedIn scope r_liteprofile

* Enhance LinkedIn profile retrieval, store the profile, ensure uniqueness

* Align with UX spec and complete onboarding flow

* Prevent the LinkedIn button from auto-submitting the onboarding form

* Address nits (LinkedInService to /src and minor spacing)

---------

Co-authored-by: Brad Harris <bmharris@gmail.com>
2023-04-12 16:39:52 +02:00
Brad Harris
2468e387e7
Top Level ErrorBoundary second attempt (#17155)
* Revert "Revert "handle api errors in error boundary (#17086)" (#17111)"

This reverts commit 97ab74011810e94e2bfcbec2e2d45c7da8b4a5f8.

* don't retry current user query

* adjusting comment
2023-04-12 15:26:52 +02:00
Brad Harris
d804db7d99
Fixing remaining dashboard lint errors (#17170)
* swapping anchors with LinkButton for a11y

* unused import

* disable error to leave poll logic alone
2023-04-12 15:16:52 +02:00
Brad Harris
119770e7e1
Migrate checkbox component (#17171)
* Migrate all checkbox inputs to the `CheckBoxInput` component (#16813)

* [dashboard] migrate to CheckBoxInput (#16768)

* [dashboard] remove CheckBox comp usage

* [dashboard] remove `CheckBox` on team settings

* [dashboard] remove border on checkbox click state

* [dashboard] refactor code for `CheckboxInput`

* removing values on checkboxes that don't need it

* adjusting api a bit

* simplify a bit by always setting value

---------

Co-authored-by: Devansu Yadav <devansuyadav@gmail.com>
2023-04-12 12:44:50 +02:00
Brad Harris
66f22e455d
fixing lint errors (#17156) 2023-04-11 18:38:51 +02:00
Sven Efftinge
d91fbff30d
[Create WS] Various fixes (#17135)
* [server] normalize contextURL

* [create workspace] only create one workspace

- respect referrer context
- useWorkspaceContext returns null instead of being disabled
when contextUrl is undefined

* [dashboard] immediately show running workspaces
2023-04-11 10:07:50 +02:00
George Tsiolis
401cd01307
Update delete account button spacing (#17125) 2023-04-07 16:48:47 +02:00
Brad Harris
ee4a5a0932
Adding Toasts (#17030)
* wip for toasts

* set max width

* getting toasts working

* update workspace timeout ui and add toast

* put in a portal

* adding some aria props

* renaming to toast()

* improve mobile styles

* shift dotfiles repo update into mutation

* remove test button

* Update components/dashboard/src/user-settings/Preferences.tsx

Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>

* Update components/dashboard/src/user-settings/Preferences.tsx

Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>

* Adjusting styling per PR feedback

* don't hide toasts on hover

---------

Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>
2023-04-06 13:55:46 +02:00
Gero Posmyk-Leinemann
1dae6aa447
[dashboard] Redirect /switch-to-payg to docs (#17112) 2023-03-31 14:14:40 +02:00
Alex Tugarev
97ab740118
Revert "handle api errors in error boundary (#17086)" (#17111)
This reverts commit 8ddad67d71a2fed8f86d2d5449efb73ec2196d5c.
2023-03-31 12:36:40 +02:00
Brad Harris
8ddad67d71
handle api errors in error boundary (#17086)
* handle api errors in error boundary

* handling resetting the error boundary

* splitting out error boundary types
2023-03-31 10:28:40 +02:00
Brad Harris
58d8381428
User Pref Editor change cleanup (#17025)
* update user in context

* removing comment
2023-03-30 19:40:40 +02:00
Alex Tugarev
7ecc196baa
Sign in with SSO (#17055)
* [experiment] Add "Sign in with SSO" to Login

Reusing existing parts:
 * `/complete-auth` page of Dashbaord to forward results of authN flows running in a modal
 * Adding preliminary UI to the Login view: Org-slug and simple button.

* [gitpod-db] get team/org by slug

* [gitpod-db] fix OIDCClientConfig.OrganizationID field's type

* [oidc] consider returnTo URL

* [oidc] consider orgSlug param from start request

* [oidc] fix oauth2 clientId propagation

* [oidc] fix a flaky test

* [onboarding] skip for organizational accounts

* Move SSO Login UI into it's own component

* adjust validation a bit, add useCallbacks

* adding GetOIDCClientConfigByOrgSlug

* add table name

* removing commented out code

---------

Co-authored-by: Brad Harris <bmharris@gmail.com>
2023-03-29 15:49:39 +02:00
Alex Tugarev
1763ec40de
[git-integrations] correct menu entries (#17061)
replacing "Git Auth" with "Git Integrations"
2023-03-28 14:59:27 +02:00
Lou Bichard
bc0230d273
Update copy for workspace sharing setting (#17057)
* fix: update copy for workspace sharing setting

* fix: updated copy for workspace sharing
2023-03-28 11:01:25 +02:00
Huiwen
0bc795bd28
Allow to disable workspace sharing in team settings (#17042)
* server impl

* dashboard

* dashboard improve

* 1

* add permission check

* update error message

* improve mutation

* 💄

* * remote `deleted` field in respond
* dashboard use new data from server

* update db select

* address UI feedback

* disable query when no org loaded yet

* rename team to org

* allow to stop sharring always

* fix

* Fix

* Fix

* Fix

* Fix

---------

Co-authored-by: Anton Kosyakov <anton@gitpod.io>
Co-authored-by: Brad Harris <bmharris@gmail.com>
Co-authored-by: Milan Pavlik <pavlik.mil@gmail.com>
2023-03-27 23:10:25 +02:00
Brad Harris
0d328011da
remove default of email field during onboarding (#17024) 2023-03-27 21:03:25 +02:00
Brad Harris
105793a57d
default orgGitAuthProviders to true for dedicated (#17007)
* default orgGitAuthProviders to true for dedicated

* restrict dupliate auth provider by host for org

* remove restriction on host for orgs

* add disabled select styles

* update copy and clean host value better

* keep constraint there for now

* adding userGitAuthProviders flag
2023-03-27 18:10:25 +02:00
Milan Pavlik
b7ff32a61a
[server] Fix execution of unit tests (#17046)
* [server] yarn test should just work

* fix

* Fix

* fix

* fix

* precommit

* [server] Fix express-util.spec.ts

* remove changes to package

* fix PAT tests

* fix

* fix

* fix

---------

Co-authored-by: Gero Posmyk-Leinemann <gero@gitpod.io>
2023-03-27 15:55:25 +02:00
Brad Harris
14f78f2818
Make sidebars responsive (#17010)
* make sidebar responsive

* adding separator after submenu on small screens

* make heading smaller on small screens
2023-03-25 00:32:23 +01:00