Skip to content

Commit

Permalink
AB#1096 Retrieve the entity avatar everywhere we need it
Browse files Browse the repository at this point in the history
  • Loading branch information
gjvoosten committed Jul 8, 2024
1 parent 66bf0f1 commit 179abbf
Show file tree
Hide file tree
Showing 34 changed files with 489 additions and 6 deletions.
12 changes: 11 additions & 1 deletion client/src/components/Model.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ export const GRAPHQL_NOTE_FIELDS = /* GraphQL */ `
shortName
longName
identificationCode
entityAvatar {
attachmentUuid
applyCrop
cropLeft
cropTop
cropWidth
cropHeight
}
}
... on Person {
name
Expand Down Expand Up @@ -86,7 +94,9 @@ export const GRAPHQL_NOTES_FIELDS = /* GraphQL */ `
export const GRAPHQL_ENTITY_FIELDS = {
Report: "uuid intent engagementDate",
Person: "uuid name avatarUuid",
Organization: "uuid shortName",
Organization:
"uuid shortName" +
" entityAvatar { attachmentUuid applyCrop cropLeft cropTop cropWidth cropHeight }",
Position: "uuid name",
Location: "uuid name",
Task: "uuid shortName longName",
Expand Down
16 changes: 16 additions & 0 deletions client/src/components/MySubscriptionUpdates.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ const GQL_GET_MY_SUBSCRIPTION_UPDATES = gql`
shortName
longName
identificationCode
entityAvatar {
attachmentUuid
applyCrop
cropLeft
cropTop
cropWidth
cropHeight
}
}
... on Person {
name
Expand Down Expand Up @@ -76,6 +84,14 @@ const GQL_GET_MY_SUBSCRIPTION_UPDATES = gql`
shortName
longName
identificationCode
entityAvatar {
attachmentUuid
applyCrop
cropLeft
cropTop
cropWidth
cropHeight
}
}
... on Person {
name
Expand Down
8 changes: 8 additions & 0 deletions client/src/components/MySubscriptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ const GQL_GET_MY_SUBSCRIPTIONS = gql`
shortName
longName
identificationCode
entityAvatar {
attachmentUuid
applyCrop
cropLeft
cropTop
cropWidth
cropHeight
}
}
... on Person {
name
Expand Down
8 changes: 8 additions & 0 deletions client/src/components/OrganizationTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ const GQL_GET_ORGANIZATION_LIST = gql`
shortName
longName
identificationCode
entityAvatar {
attachmentUuid
applyCrop
cropLeft
cropTop
cropWidth
cropHeight
}
location {
uuid
name
Expand Down
16 changes: 16 additions & 0 deletions client/src/components/PendingAssessmentsByPosition.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ const GQL_GET_POSITION_LIST = gql`
shortName
longName
identificationCode
entityAvatar {
attachmentUuid
applyCrop
cropLeft
cropTop
cropWidth
cropHeight
}
}
location {
uuid
Expand All @@ -61,6 +69,14 @@ const GQL_GET_POSITION_LIST = gql`
shortName
longName
identificationCode
entityAvatar {
attachmentUuid
applyCrop
cropLeft
cropTop
cropWidth
cropHeight
}
}
location {
uuid
Expand Down
8 changes: 8 additions & 0 deletions client/src/components/PersonTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ const GQL_GET_PERSON_LIST = gql`
shortName
longName
identificationCode
entityAvatar {
attachmentUuid
applyCrop
cropLeft
cropTop
cropWidth
cropHeight
}
}
}
}
Expand Down
8 changes: 8 additions & 0 deletions client/src/components/PositionTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ const GQL_GET_POSITION_LIST = gql`
shortName
longName
identificationCode
entityAvatar {
attachmentUuid
applyCrop
cropLeft
cropTop
cropWidth
cropHeight
}
}
location {
uuid
Expand Down
16 changes: 16 additions & 0 deletions client/src/components/ReportCalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,28 @@ const GQL_GET_REPORT_LIST = gql`
shortName
longName
identificationCode
entityAvatar {
attachmentUuid
applyCrop
cropLeft
cropTop
cropWidth
cropHeight
}
}
interlocutorOrg {
uuid
shortName
longName
identificationCode
entityAvatar {
attachmentUuid
applyCrop
cropLeft
cropTop
cropWidth
cropHeight
}
}
engagementDate
duration
Expand Down
16 changes: 16 additions & 0 deletions client/src/components/ReportSummary.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,28 @@ const GQL_GET_REPORT_LIST = gql`
shortName
longName
identificationCode
entityAvatar {
attachmentUuid
applyCrop
cropLeft
cropTop
cropWidth
cropHeight
}
}
interlocutorOrg {
uuid
shortName
longName
identificationCode
entityAvatar {
attachmentUuid
applyCrop
cropLeft
cropTop
cropWidth
cropHeight
}
}
location {
uuid
Expand Down
16 changes: 16 additions & 0 deletions client/src/components/ReportTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,28 @@ const GQL_GET_REPORT_LIST = gql`
shortName
longName
identificationCode
entityAvatar {
attachmentUuid
applyCrop
cropLeft
cropTop
cropWidth
cropHeight
}
}
interlocutorOrg {
uuid
shortName
longName
identificationCode
entityAvatar {
attachmentUuid
applyCrop
cropLeft
cropTop
cropWidth
cropHeight
}
}
location {
uuid
Expand Down
16 changes: 16 additions & 0 deletions client/src/components/advancedSearch/OrganizationFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ const GQL_GET_ORGANIZATION = gql`
shortName
longName
identificationCode
entityAvatar {
attachmentUuid
applyCrop
cropLeft
cropTop
cropWidth
cropHeight
}
}
}
`
Expand All @@ -28,6 +36,14 @@ const GQL_GET_ORGANIZATIONS = gql`
shortName
longName
identificationCode
entityAvatar {
attachmentUuid
applyCrop
cropLeft
cropTop
cropWidth
cropHeight
}
}
}
`
Expand Down
16 changes: 16 additions & 0 deletions client/src/components/previews/AuthorizationGroupPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ const GQL_GET_AUTHORIZATION_GROUP = gql`
shortName
longName
identificationCode
entityAvatar {
attachmentUuid
applyCrop
cropLeft
cropTop
cropWidth
cropHeight
}
}
person {
uuid
Expand All @@ -55,6 +63,14 @@ const GQL_GET_AUTHORIZATION_GROUP = gql`
shortName
longName
identificationCode
entityAvatar {
attachmentUuid
applyCrop
cropLeft
cropTop
cropWidth
cropHeight
}
${GQL_EMAIL_ADDRESSES}
}
... on Person {
Expand Down
16 changes: 16 additions & 0 deletions client/src/components/previews/PersonPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ const GQL_GET_PERSON = gql`
shortName
longName
identificationCode
entityAvatar {
attachmentUuid
applyCrop
cropLeft
cropTop
cropWidth
cropHeight
}
}
associatedPositions {
uuid
Expand All @@ -70,6 +78,14 @@ const GQL_GET_PERSON = gql`
shortName
longName
identificationCode
entityAvatar {
attachmentUuid
applyCrop
cropLeft
cropTop
cropWidth
cropHeight
}
}
}
}
Expand Down
16 changes: 16 additions & 0 deletions client/src/components/previews/PositionPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ const GQL_GET_POSITION = gql`
shortName
longName
identificationCode
entityAvatar {
attachmentUuid
applyCrop
cropLeft
cropTop
cropWidth
cropHeight
}
}
person {
uuid
Expand All @@ -51,6 +59,14 @@ const GQL_GET_POSITION = gql`
shortName
longName
identificationCode
entityAvatar {
attachmentUuid
applyCrop
cropLeft
cropTop
cropWidth
cropHeight
}
}
}
previousPeople {
Expand Down
16 changes: 16 additions & 0 deletions client/src/components/previews/ReportPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,28 @@ const GQL_GET_REPORT = gql`
shortName
longName
identificationCode
entityAvatar {
attachmentUuid
applyCrop
cropLeft
cropTop
cropWidth
cropHeight
}
}
advisorOrg {
uuid
shortName
longName
identificationCode
entityAvatar {
attachmentUuid
applyCrop
cropLeft
cropTop
cropWidth
cropHeight
}
}
}
}
Expand Down
Loading

0 comments on commit 179abbf

Please sign in to comment.