diff --git a/fresh.gen.ts b/fresh.gen.ts index bc618a5..02ed8ab 100644 --- a/fresh.gen.ts +++ b/fresh.gen.ts @@ -7,6 +7,7 @@ import * as $_app from './routes/_app.tsx' import * as $admin from './routes/admin.tsx' import * as $api_joke from './routes/api/joke.ts' import * as $api_todo from './routes/api/todo.ts' +import * as $api_todo_done from './routes/api/todo/done.ts' import * as $api_user from './routes/api/user.ts' import * as $greet_name_ from './routes/greet/[name].tsx' import * as $index from './routes/index.tsx' @@ -24,6 +25,7 @@ const manifest = { './routes/admin.tsx': $admin, './routes/api/joke.ts': $api_joke, './routes/api/todo.ts': $api_todo, + './routes/api/todo/done.ts': $api_todo_done, './routes/api/user.ts': $api_user, './routes/greet/[name].tsx': $greet_name_, './routes/index.tsx': $index, diff --git a/islands/Dashboard.tsx b/islands/Dashboard.tsx index eb0dd49..64e5001 100644 --- a/islands/Dashboard.tsx +++ b/islands/Dashboard.tsx @@ -21,12 +21,13 @@ const unassignedUserPlaceholder: User = { color: '888888', } -interface UserSelectButtonProps extends JSX.HTMLAttributes { +interface UserSelectButtonProps extends JSX.HTMLAttributes { user: User } function UserSelectButton( - { user: { id, avatarUrl, color }, ...props }: UserSelectButtonProps, + { user: { id, name, avatarUrl, color }, tabindex, ...props }: + UserSelectButtonProps, ) { const eid = `assigneeUserId_${id}` return ( @@ -34,17 +35,18 @@ function UserSelectButton( @@ -91,13 +93,20 @@ export default function Dashboard({ users, unassignedTodos }: Props) { Assignee