Commit Graph

4698 Commits

Author SHA1 Message Date
Kristaps Fabians Geikins 596ccf8ee3 feat(fe2): greatly improved DX for apollo cache modification (#2831)
* proof of concept - types work

* WIP

* wipp

* new modifyObjectFieldf

* updatePathIfExists

* wipp

* working?

* projects dashboard test

* more improvements

* more improvements

* fixx

* bugfix

* minor fixes and cleanup

* moar cleanup

* autoEvictFiltered
2024-09-03 10:59:16 +03:00
Kristaps Fabians Geikins 2e272b321e feat(fe2): fix mp.reset() usage to avoid too many distinct ids + utm tracking not working on homepage (#2851)
* reset() fix

* fix(fe2): utm tracking on homepage route
2024-09-03 10:49:27 +03:00
Alessandro Magionami 48caacec02 chore(workspaces): fix build (#2853)
* chore(workspaces): fix build

* chore(workspaces): fix delete workspace domains injection

* test(workspaces): fix tests

---------

Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
2024-09-02 18:31:41 +02:00
andrewwallacespeckle ba1331ee40 fix(fe2): Remove check for admin in workspace page create workspace button (#2852)
* Remove check for admin in workspace page

* Remove from promo banner

---------

Co-authored-by: Mike Tasset <mike.tasset@gmail.com>
2024-09-02 16:19:17 +01:00
andrewwallacespeckle 8787a5c8bc feat(fe2): Frontend should show a pre-filtered list of users for workspace members (#2845)
* Show prefiltered list for members in workspace with project ownership rights

* Fix: Added dropdown for project role

* Fix typo

---------

Co-authored-by: Mike Tasset <mike.tasset@gmail.com>
2024-09-02 16:59:30 +02:00
Alessandro Magionami 76ba0792df feat(workspaces): disable domain protection and discoverability on la… (#2850)
* feat(workspaces): disable domain protection and discoverability on last workspace domain delete

* chore(workspaces): minor cleanup
2024-09-02 16:53:30 +02:00
Gergő Jedlicska fd814286ac gergo/web 1779 prevent enabling domain protection if workspace has no (#2848)
* feat(workspaces): do not allow discoverablity if no verified domains

* feat(workspaces): do not allow domainBasedMembershipProtection if no verified domains

* test(workspaces): fix tests

* test(workspaces): fix invites test
2024-09-02 16:40:43 +02:00
Chuck Driesler 39c34b1b78 fix(workspaces): safer billing query for guests (#2844)
* fix(workspaces): safer billing query for guests

* chore(workspaces): comment

* chore(workspaces): lint

* chore(workspaces): ope
2024-09-02 15:23:27 +01:00
Mike 6e2c5bb4fe Fix: drop domain permissions to member (#2849) 2024-09-02 15:49:15 +02:00
Gergő Jedlicska 0b0853bb3c feat(workspaces): do not allow discoverablity if no verified domains (#2847)
* feat(workspaces): do not allow discoverablity if no verified domains

* test(workspaces): fix tests
2024-09-02 15:47:57 +02:00
Mike f50de80338 Fix: Check for domain policy on workspace invites (#2846) 2024-09-02 14:12:09 +01:00
andrewwallacespeckle 00223f8ef5 Add Remove User to guests table (#2843) 2024-09-02 13:06:42 +01:00
Mike f820084f03 Fix: Dont allow non domain policy matching members to be invited to workspace (#2838) 2024-09-02 14:05:16 +02:00
andrewwallacespeckle e52962c60b feat(fe2): Workspace members table. Update Role (#2823)
* WIP Leave Workspace

* Merge in Mikes changes

* Add leave workspace

* update name

* Remove check for workspaceAdmin

* Remove un-needed fragment as prop type

* Use defineModel

* Added description for roles

* Set role as undefined until user selects

* Tidy ups

* Remove unused resets

---------

Co-authored-by: Mike Tasset <mike.tasset@gmail.com>
2024-09-02 11:58:34 +01:00
Gergő Jedlicska a12fda7f96 fix(workspaceInvites): fix error message (#2840) 2024-09-02 12:36:34 +02:00
Kristaps Fabians Geikins b83b9b43f0 fix(fe2): workspace header hydration mismatch (#2842) 2024-09-02 13:30:49 +03:00
Alessandro Magionami 4ac6d6dbd3 Merge pull request #2841 from specklesystems/alessandro/web-1762-improve-workspace-discovery-message
chore(workspaces): update discoverability message
2024-09-02 12:19:18 +02:00
Mike 1ad990d438 Fix: Workspace and project header styling (#2839) 2024-09-02 12:14:26 +02:00
Alessandro Magionami 3fa126a92b chore(workspaces): update discoverability message 2024-09-02 12:08:19 +02:00
Kristaps Fabians Geikins 7c6ea464e8 fix: support accepting invites even if a workspace member already (#2826)
* blocking workspace project invites from incorrect resolver

* invite create validation fixes + tests

* fix for email added on decline

* doing init validation on finalization as well

* more tests

* fix(server): allow accepting an email invite even if already a member

* fix(fe2): support accepting invites even if a workspace member already
2024-09-02 09:45:24 +02:00
Kristaps Fabians Geikins 23d5a7b559 fix(server): auto-verify on invited server registration (#2824) 2024-09-02 09:40:53 +02:00
andrewwallacespeckle 7bc9af209e Remove mouseleave (#2837) 2024-09-01 19:06:05 +02:00
Alessandro Magionami 817da431e0 Merge pull request #2825 from specklesystems/alessandro/web-1765-pricing-changes
chore(workspaces): update workspaces pricing strategy
2024-08-30 17:35:11 +02:00
andrewwallacespeckle a328cde097 fix(fe2): Don't trigger shortcuts while typing comments (#2830)
* Don't trigger shortcuts while typing comments

* Check for new and existing threads before shortcut
2024-08-30 14:34:01 +01:00
Mike 2c14fbc8e7 Fix permissions for project members (#2792) 2024-08-30 14:26:02 +01:00
andrewwallacespeckle 7a257e2b27 Update HorizontalDirection (#2832) 2024-08-30 14:02:18 +01:00
Kristaps Fabians Geikins 5a05cf2aed fix(fe2): sidebar flashing in post page load (#2829) 2024-08-30 15:04:49 +03:00
Mike 8412b413fd Add user to group, add invited and dialog event (#2828) 2024-08-30 13:48:17 +02:00
Kristaps Fabians Geikins bd188fc189 fix(fe2): post workspace create cache update (#2827) 2024-08-30 14:46:03 +03:00
Kristaps Fabians Geikins 46afd793c7 Revert "fix(fe2): post workspace creation cache update"
This reverts commit 726e09e157.
2024-08-30 14:22:23 +03:00
Kristaps Fabians Geikins 726e09e157 fix(fe2): post workspace creation cache update 2024-08-30 14:21:13 +03:00
Alessandro Magionami 6b8e25ec19 chore(workspaces): update workspaces pricing strategy 2024-08-30 12:46:04 +02:00
Mike e62a68cee7 Feat: Add role label, version count, and update styling of project header (#2820) 2024-08-30 12:44:51 +02:00
Kristaps Fabians Geikins 80aa0aa20b fix(server): fixed validation in regards to workspaces, when they're secondary resource targets (#2814)
* blocking workspace project invites from incorrect resolver

* invite create validation fixes + tests

* fix for email added on decline

* doing init validation on finalization as well

* more tests
2024-08-30 11:44:26 +02:00
Iain Sproat d2f198a28b fix(helm chart): the objects service account should match server service account (#2822)
- the environment variables are shared between the two, so service accounts must match
2024-08-30 10:48:51 +02:00
Chuck Driesler 8ec0d364cb Chuck/web 1614 unify workspaceproject role creation (#2795)
* fix(workspaces): transact all simultaneous workspace-project role changes

* fix(workspaces): more correct usage of transactions

* fix(workspaces): add tests for transaction-based role changes

* fix(workspaces): do not leak knex into domain

* fix(workspaces): transaction-ify factory functions

* fix(workspaces): factory-ify some old functions

* fix(workspaces): missed a resolver

* chore(workspaces): get tests in order

* park it

* chore(workspaces): failing tests

* WHAT DO YOU WANT

* fix(workspaces): i lived bitch

* fix(workspaces): remove test that is no longer true

* fix(workspaces): better repo/service boundaries

* right

* fix(workspaces): service in injected

* fix(workspaces): repair references

* refactor(workspaces): role management rework

* chore(workspaces): adjust tests to match new behaviour

* lint lint lint

* fix(workspaces): fix tests

---------

Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
2024-08-30 09:56:56 +02:00
Gergő Jedlicska 0d6bb3a967 fix(workspaces): dont leak guests (#2819) 2024-08-29 21:56:05 +02:00
Chuck Driesler bbd5146e5a fix(workspaces): add pagination to workspace team members (#2644)
* fix(workspaces): a suggestion of paginated teams

* fix(workspaces): workspace team pagination (?)

* fix(workspaces): pagination based on acl createdAt

* fix(workspaces): fix some roles-related tests

* fix(workspaces): improve query and tests

* fix(workspaces): collaborators query without incorrect groupBy

* fix(workspaces): add default values to migration

* Fixed queries and fragments

* Merged main

* Remove comment

* chore(workspaces): update WorkspaceCollaboratorCollection mocks

* chore(workspaces): fix role test

* chore(workspaces); ope

* fix(workspaces): move workspace acl timestamps to separate table

* Merge?

* fix(workspaces) drop that table

* fix(workspaces): cursor

* fix(workspaceInvites): undo merge borkage

* fix(workspaces): rework workspace member pagination

* fix(workspaces): fix test

* fix(workspaces): test test

* fix(workspaces): literally garbage

---------

Co-authored-by: Mike Tasset <mike.tasset@gmail.com>
Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
2024-08-29 21:17:37 +02:00
Mike 03f8fd1176 Fix: Role input conditional (#2818)
* Fix: Role input conditional

* Fix input
2024-08-29 21:16:15 +02:00
Mike 91960b34f3 Feat: Add billing tab to workspace settings (#2817) 2024-08-29 18:41:57 +02:00
andrewwallacespeckle 60bc01cf58 Add border color (#2815) 2024-08-29 16:48:43 +01:00
andrewwallacespeckle 8143ccfb0b Update WorkspaceProtectedError (#2810) 2024-08-29 17:06:05 +02:00
Mike 3f5c111828 Feat: Show noncompliant warning in members tables (#2812)
* Updates from Michal video 1

* Fix openWorkspaceCreateDialog

* Update color of + button

* Updated dialog

* Feat: Show warning for non-compliant users in table

* Fix: Small issue

---------

Co-authored-by: andrewwallacespeckle <andrew@speckle.systems>
2024-08-29 17:05:21 +02:00
andrewwallacespeckle 8ed516915c Updates to settings from Michal (#2813) 2024-08-29 14:47:19 +01:00
andrewwallacespeckle 00274c3803 Add to viewer (#2808) 2024-08-29 14:37:51 +01:00
andrewwallacespeckle f106423357 Update HR and borders in Settings Dialog (#2809) 2024-08-29 14:37:17 +01:00
Alessandro Magionami 83e190a0c6 Merge pull request #2811 from specklesystems/alessandro/web-1661-workspace-cost-discount
feat(workspaces): add discount and total fields
2024-08-29 15:34:14 +02:00
Alessandro Magionami ff29654b66 feat(workspaces): add discount and total fields 2024-08-29 15:20:51 +02:00
andrewwallacespeckle 62e0c9eeaf fix(fe2): Update sidebar styles based on Michal's feedback (#2807)
* Updates from Michal video 1

* Fix openWorkspaceCreateDialog

* Update color of + button

* Change isUserAdmin to isNotGuest

* Updated dialog

* Updated condtion

---------

Co-authored-by: Mike Tasset <mike.tasset@gmail.com>
2024-08-29 13:29:20 +01:00
Alessandro Magionami a0224e2f40 Alessandro/web 1660 workspace cost items subtotal and currency (#2793)
* chore(workspaces): workspace cost schema

* chore(workspaces): test helper for workspace cost

* feat(workspaces): workspace billing cost

* fix(workspaces): fix onProjectCreated failing for the project creator if the creator is a member

* refactor(workspaces): change workspace cost calculation to a simpler query

* test(workspaceCost): fix costing logic and tests

* fix(workspaceTests): project emmiter needs owner now

---------

Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
2024-08-29 13:45:04 +02:00