Skip to content

Commit

Permalink
🥭 created issue detail page
Browse files Browse the repository at this point in the history
  • Loading branch information
HeeManSu committed Jul 14, 2024
1 parent b3351bf commit fb05f13
Show file tree
Hide file tree
Showing 17 changed files with 576 additions and 37 deletions.
48 changes: 48 additions & 0 deletions mango-frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions mango-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@radix-ui/react-dropdown-menu": "^2.1.1",
"@radix-ui/react-label": "^2.1.0",
"@radix-ui/react-popover": "^1.1.1",
"@radix-ui/react-select": "^2.1.1",
"@radix-ui/react-separator": "^1.1.0",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-tabs": "^1.1.0",
Expand Down
1 change: 1 addition & 0 deletions mango-frontend/src/assets/High.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions mango-frontend/src/assets/Issues.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions mango-frontend/src/assets/Low.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions mango-frontend/src/assets/Medium.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions mango-frontend/src/assets/Urgent.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ const CreateSprint: React.FC<CreateSprintProps> = ({ isOpen, onClose }) => {
const [status, setStatus] = React.useState<'ongoing' | 'upcoming' | 'completed'>('ongoing');
const today = startOfToday();
const dispatch = useDispatch<AppDispatch>();
console.log(status);

React.useEffect(() => {
if (startDate && isBefore(today, startDate)) {
Expand Down
10 changes: 9 additions & 1 deletion mango-frontend/src/components/Issue Table/Columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ import { ColumnDef } from "@tanstack/react-table";
export const columns: ColumnDef<IssueType>[] = [
{
accessorKey: "title",
header: "Title",
header: "Name",
},
{
accessorKey: "state",
header: "State",
},
{
accessorKey: "priority",
header: "Priority",
},
{
accessorKey: "sprint.name",
header: "Sprint",
Expand All @@ -18,4 +22,8 @@ export const columns: ColumnDef<IssueType>[] = [
accessorKey: "team_member.name",
header: "Assignee",
},
{
accessorKey: "start_date",
header: "Created On",
},
];
8 changes: 4 additions & 4 deletions mango-frontend/src/components/Issue Table/IssueTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ export function IssueTable<TData, TValue>({
});

return (
<div className="mt-[100px] w-full">
<div className="rounded-md border">
<div className="mt-[8px] w-full">
<div className=" ">
<Table>
<TableHeader>
{table.getHeaderGroups().map((headerGroup) => (
<TableRow key={headerGroup.id}>
{headerGroup.headers.map((header) => {
return (
<TableHead className="border-r hover:bg-red-400" key={header.id}>
<TableHead className="border-r border-t hover:bg-slate-50" key={header.id}>
{header.isPlaceholder
? null
: flexRender(
Expand All @@ -61,7 +61,7 @@ export function IssueTable<TData, TValue>({
data-state={row.getIsSelected() && "selected"}
>
{row.getVisibleCells().map((cell) => (
<TableCell className="border-red-500 border hover:to-blue-900" key={cell.id}>
<TableCell className="" key={cell.id}>
{flexRender(cell.column.columnDef.cell, cell.getContext())}
</TableCell>
))}
Expand Down
Loading

0 comments on commit fb05f13

Please sign in to comment.