diff --git a/README.md b/README.md
index 08003f4..f8ef4f5 100644
--- a/README.md
+++ b/README.md
@@ -109,9 +109,10 @@ src/
- [x] Initial setup (folder structure, routing, styles solution, linting/formatting, error boundary, tests, CI)
- [x] Dashboard UI (static): sidebar with mobile drawer, header, toolbar, five status columns, task cards
- [x] API connection — fetch tasks into their status columns, with loading skeleton, failure alert + retry, and empty state
-- [ ] Create task
-- [ ] Update task
-- [ ] Delete task
+- [x] Create task — the + buttons open a Figma-matched modal (full-screen page on mobile, floating panel on desktop) with custom estimate/assignee/tag menus and per-breakpoint date pickers; createTask + cache invalidation + error handling
+- [x] Update task — Edit via the card/list options menu, reusing the shared TaskForm with all six required editable fields (name, due date, position, status, tags, estimate) plus assignee; success/failure notifications
+- [x] Delete task — 'Delete Task?' confirmation via the options menu, deleteTask by id, success/failure notifications
+- [x] View toggle & My Task — grid/list layouts on both views (list = the mockup's grouped table with due-date row indicators); My Task filters to tasks assigned to the logged-in user via the profile query
- [ ] Search & filter
- [ ] User settings page
@@ -123,6 +124,11 @@ src/
- **Generated GraphQL code is committed on purpose.** `src/graphql/generated/` (output of `npm run codegen`) is checked into git so CI can typecheck and build without holding the API token. Regenerate after changing any query/mutation; never edit by hand.
- **Quality gates are CI-enforced, not hook-enforced.** There are deliberately no git hooks (husky/lint-staged): CI runs format check, lint, typecheck, tests, and build on every PR, and the same scripts run locally on demand. Hooks can be added later if commit-time enforcement proves necessary.
+- **Tag labels derive from the API enum.** The mockups show sample tag texts that contradict each other across surfaces (the same tag renders "IOS APP" on cards but "IOS" in the tag menu, "ANDROID" on cards but "Android App" in the menu). Since the API's TaskTag enum is the real domain, labels derive from the enum values (IOS, ANDROID, REACT, NODE JS, RAILS) and are identical everywhere.
+- **List group-header hover icons are omitted.** One mockup group header shows +/… icons; they have no behavior behind them (non-working UI, same principle as the bell).
+- **List rows have an actions column the mockup lacks.** The requirement ties update/delete to the options icon, and a list-only user would otherwise have no way to reach them — requirements outrank mockups, so each row ends with the same options menu the cards use.
+- **List-view row borders follow the due date.** The mockup's task table shows rows with identical dates but different left-border colors — an inconsistency the team acknowledged in Slack ("we use to have those in real projects"). Per the team's guidance that the border is a due-date indicator, the rule implemented is: overdue = red (primary), due within two days = amber (tertiary), later = green (secondary).
+- **The header bell is THE notification system.** Mutation successes and failures are recorded to a notification center the bell opens (unread dot, ten-entry history, marked read on open); failures additionally surface as inline alerts in the dialog that caused them, so errors are impossible to miss. Transient toasts were built first and deliberately removed — two presentations of the same event stream duplicated a function; the bell is the one the Figma shows. The panel's own design has no mockup, so it reuses the app's menu anatomy. The card metric icons below stay omitted because their data provably does not exist in the schema — the bell's does.
- **Card attachment/fork/comment icons are omitted.** The Figma shows those metrics on task cards, but the API's Task type exposes no fields for them. Per mentor guidance not to expose non-working UI, the icons are removed until the schema provides the data; the SVGs live in git history for easy reintroduction.
- **Node 24 is a hard requirement** — `.npmrc` sets `engine-strict=true`, so `npm install` fails fast on older Node instead of warning.
- **A11y deviation from the design, flagged and recommended per mentor guidance:** the Figma's active-tab red (`primary-4`, `#da584b`) on the dark surface measures ≈3.5:1 below WCAG AA's 4.5:1 for 15px text. Following the design team's process (flag + recommend), the active label uses `primary-3` (`#e27d73`) one step up the design system's own red scale measuring ≈4.7:1 (≈4.5:1 worst-case over the 5% gradient wash). The indicator bar stays `primary-4` (non-text graphic, 3:1 rule, passes). The active state is also conveyed non-visually via `aria-current="page"`.
diff --git a/src/app/router.test.tsx b/src/app/router.test.tsx
index 7be1d1c..b8baa6f 100644
--- a/src/app/router.test.tsx
+++ b/src/app/router.test.tsx
@@ -4,7 +4,9 @@ import userEvent from '@testing-library/user-event'
import { createMemoryRouter, RouterProvider } from 'react-router'
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
import { routes } from '@/app/router'
-import { makeFixtureTasks, tasksRequestMock } from '@/test/fixtures'
+import { NotificationsProvider } from '@/components/ui/notifications'
+import { makeFixtureProfile, makeFixtureTasks, tasksRequestMock } from '@/test/fixtures'
+import { ProfileDocument } from '@/features/tasks/queries'
vi.mock('@/lib/graphql-client', () => ({
graphqlClient: { request: vi.fn() },
@@ -14,7 +16,11 @@ beforeEach(() => {
vi.useFakeTimers({ toFake: ['Date'] })
vi.setSystemTime(new Date('2026-08-06T12:00:00Z'))
tasksRequestMock().mockReset()
- tasksRequestMock().mockResolvedValue({ tasks: makeFixtureTasks() })
+ tasksRequestMock().mockImplementation((document: unknown) =>
+ document === ProfileDocument
+ ? Promise.resolve({ profile: makeFixtureProfile() })
+ : Promise.resolve({ tasks: makeFixtureTasks() }),
+ )
})
afterEach(() => {
@@ -30,7 +36,9 @@ function renderAt(path: string) {
const router = createMemoryRouter(routes, { initialEntries: [path] })
return render(
-
+
+
+ ,
)
}
@@ -98,17 +106,17 @@ describe('dashboard main content', () => {
)
if (!card) throw new Error('expected the Twitter card to render inside an ')
const scoped = within(card)
- expect(scoped.getByText(/8 pts/i)).toBeInTheDocument()
+ expect(scoped.getByText(/8 points/i)).toBeInTheDocument()
expect(scoped.getByText(/yesterday/i)).toBeInTheDocument()
expect(scoped.getByText('REACT')).toBeInTheDocument()
expect(scoped.getByRole('img', { name: /unassigned/i })).toBeInTheDocument()
- expect(scoped.getByRole('img', { name: /task options/i })).toBeInTheDocument()
+ expect(scoped.getByRole('button', { name: /task options/i })).toBeInTheDocument()
})
it('renders the toolbar view icons and the add-task affordance', () => {
renderAt('/')
- expect(screen.getByRole('img', { name: /grid view/i })).toBeInTheDocument()
- expect(screen.getByRole('img', { name: /list view/i })).toBeInTheDocument()
+ expect(screen.getByRole('button', { name: /grid view/i })).toBeInTheDocument()
+ expect(screen.getByRole('button', { name: /list view/i })).toBeInTheDocument()
expect(screen.getAllByRole('button', { name: /add task/i }).length).toBeGreaterThan(0)
})
diff --git a/src/components/layout/Header.tsx b/src/components/layout/Header.tsx
index 16eb692..8bdac3b 100644
--- a/src/components/layout/Header.tsx
+++ b/src/components/layout/Header.tsx
@@ -1,6 +1,7 @@
import { useState } from 'react'
import avatarUrl from '@/assets/avatar.png'
-import { BellIcon, SearchIcon } from '@/components/ui/icons'
+import { SearchIcon } from '@/components/ui/icons'
+import { NotificationsBell } from '@/components/layout/NotificationsBell'
interface HeaderProps {
sidebarOpen: boolean
@@ -34,10 +35,10 @@ export function Header({ sidebarOpen, onOpenSidebar }: HeaderProps) {
/>