IO-3373 Dashboard Component Redux Fix

This properly saves the components with out triggering a redux flush

Signed-off-by: Allan Carr <allan@imexsystems.ca>
This commit is contained in:
Allan Carr
2025-10-03 12:11:09 -07:00
parent cf3f94bf98
commit 7ffb2c1aad
3 changed files with 175 additions and 90 deletions

View File

@@ -363,3 +363,25 @@ export const GET_ACTIVE_EMPLOYEES_IN_SHOP = gql`
}
}
`;
export const QUERY_MINIMAL_BODYSHOP = gql`
query QUERY_MINIMAL_BODYSHOP {
bodyshops(where: { associations: { active: { _eq: true } } }) {
id
shopname
associations(where: { active: { _eq: true } }) {
user {
email
}
}
}
}
`;
export const QUERY_DASHBOARD_BODYSHOP = gql`
query QUERY_DASHBOARD_BODYSHOP {
dashboard_bodyshops: bodyshops(where: { associations: { active: { _eq: true } } }) {
id
prodtargethrs
md_ro_statuses
}
}
`;

View File

@@ -135,3 +135,12 @@ export const UPDATE_NOTIFICATIONS_AUTOADD = gql`
}
}
`;
export const QUERY_USER_DASHBOARD_LAYOUT = gql`
query QUERY_USER_DASHBOARD_LAYOUT($email: String!) {
users(where: { email: { _eq: $email } }) {
email
dashboardlayout
}
}
`;