Граф коммитов

5740 Коммитов

Автор SHA1 Сообщение Дата
Gergő Jedlicska 3352fc4327
Merge branch 'main' of github.com:specklesystems/speckle-server into gergo/gatekeeperFunctions 2024-11-05 06:44:03 +01:00
Dimitrie Stefanescu 632653ce26
Merge pull request #3435 from specklesystems/dim/hotfix-navis-props
fix: fixes navis props missing from filtering
2024-11-04 17:27:39 +00:00
Dimitrie Stefanescu 555070fa2c fix: fixes navis props missing from filtering 2024-11-04 16:52:34 +00:00
Claire Kuang bffc5883e3
Update README.md
oops, sorry forgot to delete info sections
2024-11-01 18:53:40 +00:00
Claire Kuang 537e62c3b0
Update README.md to use new repo links (#3430)
https://linear.app/speckle/issue/CNX-699/update-github-links-to-point-to-v3
2024-11-01 19:38:09 +01:00
Alexandru Popovici 11a3a68d86
Added missing exported types (#3418) 2024-11-01 15:06:06 +02:00
andrewwallacespeckle 0191c8a8f5
refactor(fe2): Send user to dashboard after tour - skip checklist (#3404)
* Send user to dashboard after tour

* Minor

* Onboarding improvements

* Style fixes

* Add tooltip to finish button

* hasAddedOverlay > disableNext

* Remove step ref

* Fix tooltip persisting
2024-11-01 11:20:50 +00:00
Mike 693f751e38
Feat: Remove version limit counters (#3424) 2024-11-01 12:19:19 +01:00
Chuck Driesler e6e65a2f7d
feat(sso): list sso associations by user email (#3420)
* feat(workspaces): add workspace sso feature flag

* feat(workspaceSso): wip validate sso

* feat(workspaces): validate and add sso provider to the workspace with user sso sessions

* feat(workspaces): validate and add sso provider to the workspace with user sso sessions

* WIP

* fix(sso): restructure to handle all branches at end of flow

* fix(sso): add and validate emails used for sso

* fix(sso): park progress

* chore(workspaces): review sso login/valdate

* fix(sso): adjust validate url

* chore(sso): auth header puzzle

* fix(sso): happy-path config

* chore(gql): gqlgen

* fix(sso): almost almost

* fix(sso): auth endpoint

* a lil more terse

* fix(sso): light at the end of the tunnel

* fix(sso): improve catch block error messages

* fix(sso): session lifespan => validUntil

* fix(sso): I think we've got it

* feat(sso): limited workspace values for public sso login

* fix(sso): use factory functions

* fix(sso): til decrypt is single-use

* fix(sso): correct usage of access codes

* fix(sso): use finalize middleware in all routes

* chore(sso): cheeky tweak

* fix(sso): move some types around

* fix(sso): stencil final shape I'm sleepy

* fix(sso): more factories more factories

* fix(sso): on to final boss of factories

* fix(sso): needs a haircut but she works

* fix(sso): init rest w function, not side-effects

* fix(sso): /authn => /sso

* chore(sso): errors

* chore(sso): test test test

* chore(sso): test all the corners

* feat(sso): list workspace sso memberships

* chore(sso): tests, expose in rest

* fix(sso): expose search via gql

---------

Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
Co-authored-by: Mike Tasset <mike.tasset@gmail.com>
2024-11-01 11:27:12 +01:00
Gergő Jedlicska 9e7c90d6ce
feat(projects): add project regions, default to null (#3429) 2024-11-01 10:54:51 +01:00
Alexandru Popovici 26a103b5c5
Made sure an actual Box3 instances is passed ot the viewwer from hte legacy viewer implementation] (#3428) 2024-11-01 05:29:46 +01:00
Kristaps Fabians Geikins 5df716bf1c
feat: add & list server regions (#3423)
* WIP create modal

* babababa

* create dialog looks ok

* FE largely there

* workss

* cleanup

* fixed up test plumbing to avoid deadlocks and simplify GQL calls

* test fix

* added all tests

* CI fix
2024-10-31 16:08:50 +01:00
Dimitrie Stefanescu c793bb11d9
Merge pull request #3426 from specklesystems/dim/explorer-value-hotfix
fix(frontend): explorer will now correctly display false prop values as false, rather than null
2024-10-31 14:07:28 +00:00
Dimitrie Stefanescu ac7b4a387e fix(frontend): uses util func, rather thand local hodgepodge 2024-10-31 13:52:39 +00:00
Dimitrie Stefanescu 5d3ad2daca fix(frontend): explorer will now correctly display false prop values as false, rather than null 2024-10-31 13:42:30 +00:00
Chuck Driesler 52bb1116ed
SSO (#3376)
* feat(workspaces): add workspace sso feature flag

* feat(workspaceSso): wip validate sso

* feat(workspaces): validate and add sso provider to the workspace with user sso sessions

* feat(workspaces): validate and add sso provider to the workspace with user sso sessions

* WIP

* fix(sso): restructure to handle all branches at end of flow

* fix(sso): add and validate emails used for sso

* fix(sso): park progress

* chore(workspaces): review sso login/valdate

* fix(sso): adjust validate url

* chore(sso): auth header puzzle

* fix(sso): happy-path config

* chore(gql): gqlgen

* fix(sso): almost almost

* fix(sso): auth endpoint

* a lil more terse

* fix(sso): light at the end of the tunnel

* fix(sso): improve catch block error messages

* fix(sso): session lifespan => validUntil

* fix(sso): I think we've got it

* feat(sso): limited workspace values for public sso login

* fix(sso): use factory functions

* fix(sso): til decrypt is single-use

* fix(sso): correct usage of access codes

* fix(sso): use finalize middleware in all routes

* chore(sso): cheeky tweak

* fix(sso): move some types around

* fix(sso): stencil final shape I'm sleepy

* fix(sso): more factories more factories

* fix(sso): on to final boss of factories

* fix(sso): needs a haircut but she works

* fix(sso): init rest w function, not side-effects

* fix(sso): /authn => /sso

* chore(sso): errors

* chore(sso): test test test

* chore(sso): test all the corners

---------

Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
Co-authored-by: Mike Tasset <mike.tasset@gmail.com>
2024-10-31 13:20:53 +01:00
Alessandro Magionami 3c31fb7e3e
Merge pull request #3402 from specklesystems/alessandro/fileimport-service-ioc-3-parser
Fileimport Ioc 3 parser
2024-10-31 10:18:39 +01:00
Alexandru Popovici 5be9a27945
Fixed an issue with computing a relative offset box where the origin of the input box was not taken into account and the resulting offset box would be whack (#3419) 2024-10-31 09:36:11 +01:00
Gergő Jedlicska ee514dc7b9
test: fix flaky tests (#3422) 2024-10-31 09:04:49 +01:00
Gergő Jedlicska da7f0dda0e
gergo/web 2047 user joins the workspace event (#3412)
* feat(gatekeeper): add gatekeeper module feature flag

* feat(gatekeeper): add workspace pricing table domain

* feat(gatekeeper): add checkout session creation

* feat(gatekeeper): verify stripe signature

* wip(gatekeeper): checkout callbacks

* feat(gatekeeper): add unlimited and academia plan types

* refactor(envHelper): getStringFromEnv helper

* chore(gatekeeper): add future todos

* feat(gatekeeper): add productId to the subscription domain

* feat(gatekeeper): add in memory repositories

* feat(gatekeeper): add more errors

* feat(gatekeeper): complete checkout session service

* feat(gatekeeper): add stripe client implementation

* feat(gatekeeper): add checkout session completion webhook callback path

* feat(gendo): fix not needing env vars if gendo module is not enabled

* feat(gatekeeper): require a license for billing

* chore(gatekeeper): cleanup before testing

* feat(gatekeeper): subscriptionData parsing model

* ci: add billing integration and gatekeeper modules to test config

* test(gatekeeper): add checkout service tests

* feat(gatekeeper): make completeCheckout callback idempotent properly

* feat(gatekeeper): move to knex based repositories

* test(gatekeeper): billing repository tests

* feat(gatekeeper): add yearly billing cycle toggle

* feat(ci): add stripe integration context to test job

* feat(billingPage): conditionally render the checkout CTAs

* fix(gatekeeper): remove flaky test condition

* feat(helm): add billing integration feature flag

* WIP billing gql api

* feat(gatekeeper): cancel checkout session api

* feat(gatekeeper): handle existing checkout sessions, when trying to create a new one

* feat(gatekeeper): add workspace plans gql api

* feat(gatekeeper): handle cancelation and subscription updates

* fix(gatekeeper): scope initialization

* fix(gatekeeper): eliminate stripe client import sideeffect

* fix(gatekeeper): eliminate stripe client import sideeffect 2

* feat(gatekeeper): upsize subscription on workspace role change

* feat(shared): add command pattern implementation

* refactor(eventBus): remove return capabilities from the event bus

* refactor(workspaces): use new commandFactory in workspace resolver

* feat(core): facelift taskLock

* feat(gatekeeper): shedule subscription downscale

* feat(gatekeeper): manage subscription downscale

* feat(gatekeeper): get workspace subscriptions, that are about to expire

* feat(gatekeeper): manage subscription downscale

* fix(gatekeeper): do not update subscription to canceled subs

* ci: bump postgres and max connections

* feat(workspaces): fix command factory event bugs
2024-10-30 15:51:40 +01:00
Iain Sproat 077587a7c1
fix(ci): use large resource class in publish viewer sandbox job (#3416) 2024-10-30 14:16:23 +00:00
Alexandru Popovici 31a21f3a9a
GeometryPass now updates the section planes automatically for any overriden materials (#3409) 2024-10-30 14:31:30 +02:00
Benjamin Ottensten 00e9a43bc0
Uppercase keyboard shortcuts (#3403) 2024-10-30 12:58:02 +01:00
Iain Sproat 8ea43d7b98
feat(server/multi region config): mount file and read config from file (#3407)
* feat(multi region config): mount file and read config from file
* feat(helm): allow multi region config to be mounted from a secret
* Allow the file name to be amended
2024-10-30 10:59:03 +00:00
Kristaps Fabians Geikins 55d0d10103
Merge pull request #3406 from specklesystems/fabians/multi-region-base
feat(server): multi region module base w/ a test (mocked) mutation
2024-10-30 10:25:04 +00:00
andrewwallacespeckle 1cdd08062a
fix(fe2): Add workspace name to workspace page title (#3410)
* Add workspace name to workspace page title

* useHeadSafe
2024-10-30 09:43:53 +00:00
Mike 5e3c3e2689
Fix: Disabled collaborators link when user has no role on project (#3415) 2024-10-30 09:37:54 +01:00
Kristaps Fabians Geikins 31f56001f8
Merge pull request #3400 from specklesystems/fabians/quick-js-to-ts-5
chore(server): quick js to ts #5 - remaining stragglers
2024-10-30 08:19:31 +00:00
Gergő Jedlicska 8e239ec744
feat(gatekeeper): feature access functions 2024-10-30 09:00:00 +01:00
Gergő Jedlicska ab331e27b2
ci: bump postgres and max connections 2024-10-30 05:33:12 +01:00
Gergő Jedlicska edc70b76bc
fix(gatekeeper): do not update subscription to canceled subs 2024-10-29 20:44:13 +01:00
Gergő Jedlicska 79a0759c58
Merge branch 'main' of github.com:specklesystems/speckle-server into gergo/web-2047-user-joins-the-workspace-event 2024-10-29 20:21:15 +01:00
Gergő Jedlicska 81c20dbdf3
feat(gatekeeper): manage subscription downscale 2024-10-29 20:17:19 +01:00
Alexandru Popovici a5cc51040c
Added batch material override support for instanced speckle meshes, aka all instances (#3411) 2024-10-29 19:14:23 +02:00
Gergő Jedlicska 796b1c23ed
feat(gatekeeper): get workspace subscriptions, that are about to expire 2024-10-29 17:44:43 +01:00
Gergő Jedlicska c0808e5577
feat(gatekeeper): manage subscription downscale 2024-10-29 16:52:00 +01:00
Alessandro Magionami 403486f01b
Merge pull request #3401 from specklesystems/alessandro/fileimport-service-ioc-2-parse-and-create-commit
Fileimport IoC 2 parseAndCreateCommit
2024-10-29 14:28:10 +01:00
Alessandro Magionami f8937058f4
Merge pull request #3390 from specklesystems/alessandro/web-957-cleanup
Webhooks IoC 1 cleanup function refactor
2024-10-29 14:27:55 +01:00
Kristaps Fabians Geikins 0335104813
config adjustment 2024-10-29 14:13:03 +02:00
Kristaps Fabians Geikins 610808fc15
feat(server): multi region module base w/ a test (mocked) mutation 2024-10-29 14:07:35 +02:00
Alexandru Popovici 613614d5d0
View Modes (#3259)
* Edge drawing render pass using both depth and normal data

* Edges are now mixed with the rest of the passes in the final pass

* Set MSAA for SS edges framebuffers to maximum number of samples

* New depth gradient extraction approach. Several improvements over the old one

* Some changes to the normal gradient extraction. Using Robert's Cross works roughly the same as the older approach with 1 less texture fetch. Also implemented Canny

* Combined static AO with edges

* Implemented SMAA and static TAA. Both toggeable in realtime for better comparisons

* Added the normal pass and fixed some issues

* The pipeline is now capable of jitter individual passes if requested

* Added TAA pass. Technically it can be used to antialias anything. Right now we've disabled MSAA and using TAA for stationary as an example

* Added a TAA pipeline on the final image. Added DPR into pipeline resize calls. Struggled a *lot* with different blending results between drawing to the backbuffer and to a framebuffer then copying to the backbuffer. There are still some differences visible

* Edges pipeline

* Edges + TAA + AO + COLOR pipeline

* ShadedView mode

* Visibility is now properly reset when coming from a visibility conditioned pass to an unconditioned one

* Added another version for 'shaded' view, inspired by blender's viewport shading

* Added pen view together with a sample paper like texture for vissual background

* A form of techincal view

* Arctic view. Separate viewport pass from matcap pass

* Cleaned up the ao shader a bit. Formalized progressive ao pass options

* WIP on BasitMode

* Added pipeline switching to the sandbox. Edge pass now has an optional texture background

* Implemented BasicMode using material overrides

* Merged with latest main

* Fix merge issues

* More merge misses

* Stating stream

* Fixed an issue that took hours to debug and it turned out to be a literal typo

* Formalized the progressive pipeline concept which removed a lot of duplicated code

* Added pipeline reseting. Added pipeline passthrough to allow features like measurements to run correctly. Added jitter to depth buffer for progressive AO for much better results!

* Implemented the required stencil passes used for stencil selection as new pass formats. Added them as well as the overlay pass to all pipelines. Will need to automate their addition though

* Fixed stencil selection in pen view. Decided to only show outlines because it makes more sense

* Implemented proper pass clearing values and flags. Also made sure the minimum amount of clears are made inside the frame. Fixed an issue with progressive pass frame counts and indices.

* Formalized options for all passes that had any. Tidied up some shaders and simplified where possible

* Centralized render target creation and removed a lot of render target creation in the passes that had no need for it. Fixed an issue where the matcap material would not not update it's matcap texture properly when rendering in override mode

* Matcap and Viewport passes where merged into a single Viewport pass that can take a matcap texture in it's options. Also, changed the way the viewport shader displays colors, based on three's textureless matcap shader block.

* Updated PassReader extension to work with the latest pipeline. NNowthe pass reader accepts the pass name when reading, so it can used to read any passes

* WIP on MRT

* Implemented DepthNormal MRT pass and used in a pipeline. Working fine on WebGL2.0

* Full Support for WebGL1.0

* Fix for viewport material not updating it's texture properly

* Added an extension that enables hotkeys for view modes

* Fixed jittering for orthographic projections

* Fixed the section tool integration issues with the new pipelines

* Added MRT versions of the pipelines that need it]

* Added a wrapper ViewModes extensions that defines the existing view modes and handles the required check for MRT capabilities and selects the nonMRT/MRT pipelines accordingly

* Error fixes

* Another error

* Added shadowcatcher to arctic and shaded view since it was missing by mistake. Increased the KERNEL_SIZE for arctic mode so that the AO is more smooth

* Disabled pen view background texture

* When reseting the pipeline the jitter index is also reset in order to avoid visible jittering when switching fast between dynamic and progressive mode repeteadly (like when moving the clipping box)

* Quick solution for integrating view modes with per-object operatins like selection and filtering

* View modes now have the ability of overriding the batch's default material instead of all it;s materials. This means that per object material changes like selection and filtering will work together with view modes. Handles WEB-2080, WEB-2083, WEB-2084, WEB-2081 and WEB-2082

* Fiter applies now trigger a hard reset, which is required and fixes a preexisting bug in production. Fixed an issue where the shadowcatcher would incorrectly blend in shaded view mode

* Viewport pass can now render transparency. Arctic mode now renders transparent objects as well (was originally required)

* Forcing the multipel render targets we use for MRT to use a 32 bit depth buffer for proper precision on MacOs Chromium

* Fixed an issue where incorrect visible ranges were being perpetuated when selecting hidden objects (outlines only mode)

* PROPS are not rendered twice anymore and they've been moved to the overlay pass in all pipelines

* Reorganized passes and pipelines. Deleted old passes

* Renamed all new passes. Only the interface and base pass types have a G prepended to make it 100% clear it's different than three's Pass type

* Fixed some compiling errors

* Dont change viewmodes when inputs are being used

* Pipeline gets resized whenever it's set in the renderer. Some other smaller changes

---------

Co-authored-by: Mike Tasset <mike.tasset@gmail.com>
2024-10-29 13:30:26 +02:00
Gergő Jedlicska d6dad6609a
feat(gatekeeper): shedule subscription downscale 2024-10-28 18:58:13 +01:00
Gergő Jedlicska 3184855aa7
gergo/checkoutGqlResolver (#3405)
* feat(gatekeeper): add all plan statuses

* chore(gatekeeper): gqlgen
2024-10-28 18:10:31 +01:00
Alessandro Magionami 7c9780d52b
chore(webhooks): fixed function name 2024-10-28 15:19:42 +01:00
Alessandro Magionami c9ef276343
Merge pull request #3399 from specklesystems/fabians/quick-js-to-ts-4
chore(server): quick js to ts #4 - remaining commits resolvers (thats it!)
2024-10-28 15:18:16 +01:00
Alessandro Magionami 11c13796c2
Merge pull request #3393 from specklesystems/fabians/gendo-ioc-5
chore(server): gendo IoC #5 - getVersionRenderRequestFactory
2024-10-28 15:17:56 +01:00
Alessandro Magionami f48b81e633
Merge pull request #3392 from specklesystems/fabians/gendo-ioc-4
chore(server): gendo IoC #4 - getLatestVersionRenderRequestsFactory
2024-10-28 15:17:26 +01:00
Alessandro Magionami 6f7501b018
Merge pull request #3391 from specklesystems/fabians/gendo-ioc-3
chore(server): gendo IoC #3 - updateRenderRequestFactory
2024-10-28 15:16:59 +01:00
Alessandro Magionami 811c8207b0
Merge pull request #3389 from specklesystems/fabians/gendo-ioc-2
chore(server): gendo IoC #2 - createRenderRequestFactory
2024-10-28 15:16:37 +01:00
Kristaps Fabians Geikins 11fec3222a
cjs doesnt like knex default export 2024-10-28 11:35:20 +02:00