-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: refact timesheet * fix: cspell * fix: setCalendarTimeSheet is defined but never used. * improv: timesheet
- Loading branch information
1 parent
85619f1
commit b3c0138
Showing
11 changed files
with
365 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,7 @@ | |
"Bowser", | ||
"Btns", | ||
"Konviser", | ||
"Ruslan", | ||
"Bugsnag", | ||
"buildjet", | ||
"cacheable", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import * as React from "react" | ||
import { cva, type VariantProps } from "class-variance-authority" | ||
|
||
import { cn } from "lib/utils" | ||
|
||
const badgeVariants = cva( | ||
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", | ||
{ | ||
variants: { | ||
variant: { | ||
default: | ||
"border-transparent bg-primary text-primary-foreground hover:bg-primary/80", | ||
secondary: | ||
"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80", | ||
destructive: | ||
"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80", | ||
outline: "text-foreground", | ||
}, | ||
}, | ||
defaultVariants: { | ||
variant: "default", | ||
}, | ||
} | ||
) | ||
|
||
export interface BadgeProps | ||
extends React.HTMLAttributes<HTMLDivElement>, | ||
VariantProps<typeof badgeVariants> {} | ||
|
||
function Badge({ className, variant, ...props }: BadgeProps) { | ||
return ( | ||
<div className={cn(badgeVariants({ variant }), className)} {...props} /> | ||
) | ||
} | ||
|
||
export { Badge, badgeVariants } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
91 changes: 91 additions & 0 deletions
91
apps/web/lib/features/integrations/calendar/helper-calendar.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,92 @@ | ||
export type timesheetCalendar = 'TimeSheet' | 'Calendar'; | ||
|
||
export const statusOptions = [ | ||
{ value: "Approved", label: "Approved" }, | ||
{ value: "Pending", label: "Pending" }, | ||
{ value: "Rejected", label: "Rejected" }, | ||
]; | ||
|
||
export type TimeSheet = { | ||
id: number, | ||
task: string, | ||
name: string, | ||
description: string, | ||
employee: string, | ||
status: "Approved" | "Pending" | "Rejected", | ||
time: string | ||
} | ||
|
||
export const dataSourceTimeSheet: TimeSheet[] = [ | ||
{ | ||
id: 1, | ||
task: "chore(deps-dev): bump karma from 5.2.3 to 6.3.16chore", | ||
name: "Gauzy Platform SaaS", | ||
description: "Members count 11", | ||
employee: "Ruslan Konviser", | ||
status: "Approved", | ||
time: '08:00h' | ||
}, | ||
{ | ||
id: 2, | ||
task: "chore(deps-dev): bump karma from 5.2.3 to 6.3.16chore", | ||
name: "Gauzy Platform SaaS", | ||
description: "Members count 11", | ||
employee: "Ruslan Konviser", | ||
status: "Pending", | ||
time: '08:00h' | ||
}, | ||
{ | ||
id: 3, | ||
task: "chore(deps-dev): bump karma from 5.2.3 to 6.3.16chore", | ||
name: "Gauzy Platform SaaS", | ||
description: "Members count 11", | ||
employee: "Ruslan Konviser", | ||
status: "Approved", | ||
time: '08:00h' | ||
}, | ||
{ | ||
id: 4, | ||
task: "chore(deps-dev): bump karma from 5.2.3 to 6.3.16chore", | ||
name: "Gauzy Platform SaaS", | ||
description: "Members count 11", | ||
employee: "Ruslan Konviser", | ||
status: "Pending", | ||
time: '08:00h' | ||
}, | ||
{ | ||
id: 5, | ||
task: "chore(deps-dev): bump karma from 5.2.3 to 6.3.16chore", | ||
name: "Gauzy Platform SaaS", | ||
description: "Members count 11", | ||
employee: "Ruslan Konviser", | ||
status: "Rejected", | ||
time: '06:00h' | ||
}, | ||
{ | ||
id: 6, | ||
task: "chore(deps-dev): bump karma from 5.2.3 to 6.3.16chore", | ||
name: "Gauzy Platform SaaS", | ||
description: "Members count 11", | ||
employee: "Ruslan Konviser", | ||
status: "Pending", | ||
time: '06:00h' | ||
}, | ||
{ | ||
id: 7, | ||
task: "chore(deps-dev): bump karma from 5.2.3 to 6.3.16chore", | ||
name: "Gauzy Platform SaaS", | ||
description: "Members count 11", | ||
employee: "Ruslan Konviser", | ||
status: "Approved", | ||
time: '06:00h' | ||
}, | ||
{ | ||
id: 8, | ||
task: "chore(deps-dev): bump karma from 5.2.3 to 6.3.16chore", | ||
name: "Gauzy Platform SaaS", | ||
description: "Members count 11", | ||
employee: "Ruslan Konviser", | ||
status: "Approved", | ||
time: '06:00h' | ||
}, | ||
] |
Oops, something went wrong.