Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visning av kundeansvalrlig og bugfixes #561

Merged
merged 2 commits into from
Mar 13, 2024
Merged

Conversation

OliverKnowit
Copy link
Collaborator

No description provided.

const customerEmployees = employeesCustomer.filter(
(ec) => ec.customer === customer
)
const employeesLastPeriod = customerEmployees
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Før var antall ansatte, anta unike over 3 uker, mens antall timer var forige uke.
Nå deler vi opp begge datapunktene i enten 1 uke eller 4 uker og sender alt til frontenden.

const project_data = JSON.parse(perProject)
const customer_data = JSON.parse(employeeCustomers)
const aggregatedData = createCustomerCardData(project_data, customer_data)
const accountManagerTable = JSON.parse(accountManager)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

legger også til account manager info

@@ -27,9 +24,21 @@ export const useHoursBilledPerCustomerCharts = () =>
revalidateOnFocus: false,
})

export const useAllCustomerData = (): CustomerData[] => {
export const useAllCustomerData = (): CustomerCardData[] => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vi har ikke antall konsulenter og timer for historiske kunder. Dette burde egentlig fikses. Kansje en forbedring er å hente historisk data sammen med customerCards også heller filtrere ut manglende konsulenter i front

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dette har jeg nå fikset ved å ta med historiske kunder i customerCard apiet og filtrere dem ut senere

/>
</GridItemContent>
</GridItem>
)
}

export default CustomerCard

const ComponentRoot = styled(Grid, {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flytter styled komponentene nederst i fila for å rydde litt

@@ -43,4 +43,5 @@ export default function OrganizationStructurePage() {

const RelativePositionedBox = styled('div')({
position: 'relative',
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fikser så grafen tar den plassen den trenger og dytter footern under bildet

@OliverKnowit OliverKnowit merged commit 83128ef into master Mar 13, 2024
3 checks passed
@OliverKnowit OliverKnowit deleted the kundeansvarlig-og-bugfix branch March 13, 2024 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants