feat: accept & decline workspace invite as a registered member (#2675)

* abstract base invite banner

* WIP banner actions

* WIP modify obj

* minor fix

* invite accept/decline cache mutations

* banner accept/decline basically works

* new block for accepting workspace invite

* WIP wrong account flow

* login/registration block changes

* add email invite related changes

* add new email FE

* add email w/ invite works

* final adjustments

* minor fixes

* addressing cr comments

* no-FF support

* extra workspace ff checks
This commit is contained in:
Kristaps Fabians Geikins
2024-08-19 13:01:25 +03:00
committed by GitHub
parent 585ba6a102
commit 2bb7802fb9
61 changed files with 1736 additions and 435 deletions
@@ -9,6 +9,10 @@ export = !FF_WORKSPACES_MODULE_ENABLED
Query: {
workspace: async () => {
throw new WorkspacesModuleDisabledError()
},
workspaceInvite: async () => {
// Easier to manage in FE if this doesn't throw, just returns null
return null
}
},
Mutation: {
@@ -63,6 +67,10 @@ export = !FF_WORKSPACES_MODULE_ENABLED
User: {
workspaces: async () => {
throw new WorkspacesModuleDisabledError()
},
workspaceInvites: async () => {
// Easier to manage in FE if this doesn't throw, just returns empty
return []
}
},
Project: {
@@ -17,6 +17,11 @@ export type PendingWorkspaceCollaboratorGraphQLReturn = {
invitedById: string
user: LimitedUserRecord | null
updatedAt: Date
email: string
/**
* The token that was specified when retrieving this collaborator, if any
*/
token?: string
}
export type WorkspaceCollaboratorGraphQLReturn = UserWithRole<LimitedUserRecord> & {