Rename signature filter state field to profileState
The DocumentVersionSignatureFilter exposed a field named `state` that actually filters on the signatory's profile state, which was ambiguous next to the signature `states` field. Rename it to `profileState` (GraphQL) / `profile_state` (MCP) across the schema, spec, resolvers, console app, and n8n node for clarity. Signed-off-by: Sacha Al Himdani <sacha@probo.com>
This commit is contained in:
@@ -40,10 +40,10 @@ export const documentLayoutQuery = graphql`
|
||||
...DocumentTitleFormFragment
|
||||
...DocumentActionsDropdown_versionFragment
|
||||
...DocumentDetailsCard_versionFragment
|
||||
signatures(first: 0 filter: { activeContract: true, state: ACTIVE }) {
|
||||
signatures(first: 0 filter: { activeContract: true, profileState: ACTIVE }) {
|
||||
totalCount
|
||||
}
|
||||
signedSignatures: signatures(first: 0 filter: { states: [SIGNED], activeContract: true, state: ACTIVE }) {
|
||||
signedSignatures: signatures(first: 0 filter: { states: [SIGNED], activeContract: true, profileState: ACTIVE }) {
|
||||
totalCount
|
||||
}
|
||||
approvalQuorums(first: 1, orderBy: { field: CREATED_AT, direction: DESC }) {
|
||||
@@ -85,10 +85,10 @@ export const documentLayoutQuery = graphql`
|
||||
...DocumentTitleFormFragment
|
||||
...DocumentActionsDropdown_versionFragment
|
||||
...DocumentDetailsCard_versionFragment
|
||||
signatures(first: 0 filter: { activeContract: true, state: ACTIVE }) {
|
||||
signatures(first: 0 filter: { activeContract: true, profileState: ACTIVE }) {
|
||||
totalCount
|
||||
}
|
||||
signedSignatures: signatures(first: 0 filter: { states: [SIGNED], activeContract: true, state: ACTIVE }) {
|
||||
signedSignatures: signatures(first: 0 filter: { states: [SIGNED], activeContract: true, profileState: ACTIVE }) {
|
||||
totalCount
|
||||
}
|
||||
approvalQuorums(first: 1, orderBy: { field: CREATED_AT, direction: DESC }) {
|
||||
|
||||
@@ -78,10 +78,10 @@ const fragment = graphql`
|
||||
}
|
||||
}
|
||||
}
|
||||
signatures(first: 0 filter: { activeContract: true, state: ACTIVE }) {
|
||||
signatures(first: 0 filter: { activeContract: true, profileState: ACTIVE }) {
|
||||
totalCount
|
||||
}
|
||||
signedSignatures: signatures(first: 0 filter: { states: [SIGNED], activeContract: true, state: ACTIVE }) {
|
||||
signedSignatures: signatures(first: 0 filter: { states: [SIGNED], activeContract: true, profileState: ACTIVE }) {
|
||||
totalCount
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ const versionFragment = graphql`
|
||||
@argumentDefinitions(
|
||||
count: { type: "Int", defaultValue: 1000 }
|
||||
cursor: { type: "CursorKey" }
|
||||
signatureFilter: { type: "DocumentVersionSignatureFilter", defaultValue: { activeContract: true, state: ACTIVE } }
|
||||
signatureFilter: { type: "DocumentVersionSignatureFilter", defaultValue: { activeContract: true, profileState: ACTIVE } }
|
||||
) {
|
||||
...DocumentSignaturePlaceholder_versionFragment
|
||||
signatures(first: $count, after: $cursor, filter: $signatureFilter)
|
||||
@@ -104,7 +104,7 @@ export function DocumentSignatureList(props: {
|
||||
|
||||
const filter = {
|
||||
activeContract: true,
|
||||
state: "ACTIVE" as const,
|
||||
profileState: "ACTIVE" as const,
|
||||
...(selectedStates.length > 0 ? { states: selectedStates } : {}),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user