Skip to content

About

Learning and possibly income generating app featuring task creation and tracking assisted and powered by AI .

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

132 Commits

Folders and files

Repository files navigation

NoBacklog MVP Development

AI-powered task management application with natural language command interface. A portfolio project demonstrating full-stack development expertise and QA-driven development practices.

Developer: Patiphak Klandee (Faro)
Technical Background: ISTQB Certified | 3+ Years QA/Development Experience
Project Status: Backend Complete (CRUD, Reordering, Timers + xUnit Service Tests) | Frontend Core Kanban Complete (Boards/Lists/Cards, Drag-and-Drop, Card Editing, Time Tracking) + Vitest Util/Hook/Component/Page Tests | Hardening Sprint Complete | Phase 2 Close-out Complete


Project Overview

NoBacklog is a modern task management system that combines:

  • Trello-like Kanban Interface - Visual board-based task organization
  • JIRA-style Time Tracking - Detailed work log functionality
  • AI-Powered Commands - Natural language task management (future phase)

Strategic Differentiator: Unlike conventional tools, NoBacklog will process natural language commands to create, update, and organize tasks intelligently.


Development Milestones

Phase 1: Backend API Development (COMPLETE)

Status: 27 endpoints operational across Board, List, Card, and TimeLog resources, including dedicated reorder endpoints for Lists and Cards and a card-rank rebalance endpoint.

Achievement Summary:

  • Built a production-ready 4-tier hierarchical REST API on ASP.NET Core
  • Implemented comprehensive validation patterns (field + reference)
  • Designed a controller → service → EF Core data-access layering with PostgreSQL
  • Added rank-based positioning for drag-and-drop reordering (Lists and Cards)
  • Partial updates on PUT /cards/:id via a dedicated CardUpdateRequest DTO (omitted fields are left unchanged)
  • Server-stamped Start/Finish timers with configurable per-card and global limits (409 Conflict on violation)
  • Global TrimmingStringConverter trims whitespace from every inbound string before validation

Completed APIs:

  1. Board API - Dashboard/workspace management (5 endpoints)
  2. List API - Column/status management (5 endpoints + reorder)
  3. Card API - Task/item management (5 endpoints + reposition + rebalance)
  4. TimeLog API - Time tracking functionality (5 CRUD endpoints + start/finish/running/settings)

Total Backend Deliverables:

  • 4 EF Core entity models with relationships (Board, List, Card, TimeLog)
  • 4 ASP.NET controllers, each backed by an injected service class and interface
  • EF Core migrations tracking schema evolution (including the card Position ranking column, nullable TimeEstimate, the one-running-timer-per-card partial unique index, and dropping the unused time_tracked column)
  • .http request file for manual endpoint testing
  • xUnit test project (backend-tests/) covering all four services and all four controllers (via WebApplicationFactory) against an in-memory SQLite database

Phase 2: Frontend Development (CURRENT)

Framework: React 19 (Vite)
Styling/Components: MUI (Material UI)
Status: Core Kanban experience is complete — board list, board detail, list and card CRUD, full drag-and-drop reordering (within and across columns), card editing, list renaming, and time tracking are implemented. The hardening sprint is complete: card rank rebalancing, per-feature loading/error states, and a Vitest suite covering the rank/duration utils and the data-owning hooks.

Implemented so far:

  • Boards list and board detail pages (react-router routed)
  • List columns: create, delete, inline click-to-edit rename, drag-and-drop reordering
  • Cards: create (inline form with title + priority, keyboard shortcuts), delete, drag-and-drop reordering within a column and across columns
  • Card detail dialog (CardEditDialog) with per-field saving for title, description, priority, and time estimate; the open card is kept in the URL (/boards/:boardId?card=<id>), so it can be linked to and stays open after a refresh
  • Rank-based position encoding (generateRank) so client-assigned positions sort correctly against the backend's plain string ordering
  • @dnd-kit integration with a shared DragDropProvider, type-scoped sortables (list vs card), and a DragOverlay (dragged lists render a clone of their cards) to avoid DOM-relocation conflicts with React's reconciliation
  • Time tracking inside the card detail dialog: Start/Finish timers (server-stamped), live elapsed counter, per-entry durations and a card total, capped entries per card and a global cap on simultaneously running timers, and manual correction of an entry's start/finish times (inline datetime-local editor; finish after start, nothing in the future)
  • Shared Dialog, outlined-input and Select styling lives in theme.js component overrides rather than per-component sx
  • Per-feature loading/error states: the board name, list columns and cards each load independently with skeleton placeholders, and a failed load shows what failed with its own Retry (LoadError) instead of blanking the page; add-card controls stay hidden until a column's cards have loaded
  • Failed drag persistence rolls back: a list reorder or card move the server rejects is restored to its pre-drag position, with the error shown in the affected column
  • Server error messages reach the UI: api.js throws the backend envelope's message (e.g. which time-tracking limit a 409 hit), falling back to the HTTP status line, with the status code on error.status
  • CardEditDialog is fully labelled and keyboard-reachable: the title is a real button (Tab, then Enter/Space opens the editor; focus returns after Enter/Escape), the dialog is named by the card title, and every field has an accessible name
  • Vitest test suite for the shared HTTP client (api.js), the pure utils (generateRank, formatDuration, priorityChipSx) and the data-owning hooks (useLists, useBoardCards, useCardTimeLogs), with MSW standing in for the backend, and every component and page: BoardsPage, BoardDetailPage, the drag-and-drop columns and cards (Lists, ListColumn, Cards, CardItem), LoadError, CardEditDialog and TimeLogSection (React Testing Library)
  • The board's icon buttons and inputs (Add card, List options, Card options, Cancel, List name, Card title, Priority) have accessible names, and each column is named by its list
  • A list's title is keyboard-reachable (Tab, then Enter/Space to rename), and a failed card create keeps the typed title and priority for a retry

Phase 3: AI Integration (FUTURE)

Planned Technology: Anthropic Claude API
Core Functionality: Natural language command processing

Phase 4: Deployment (FUTURE)

Target Platform: TBD
Database: PostgreSQL (local for dev; hosting TBD)


Technology Stack

Backend (Core Complete)

Category Technology Version
Runtime .NET 10.0
Framework ASP.NET Core Web API —
Database PostgreSQL —
ORM Entity Framework Core 10.0.5
DB Driver Npgsql.EntityFrameworkCore.PostgreSQL 10.0.1
API Testing .http file (NoBacklog.Api.http) —
Unit Testing xUnit + EF Core Sqlite (in-memory) 2.9.3 / 10.0.5

Frontend (In Development)

Category Technology Version
Framework React ^19.2.0
Build Tool Vite ^7.3.1
UI Library MUI (Material UI) ^6.4.0
Routing React Router ^7.14.1
Drag-and-Drop @dnd-kit (react, abstract, helpers) ^0.4.0
Package Manager pnpm —
Lint/Format Biome ^1.9.4
Unit Testing Vitest + jsdom + React Testing Library ^5.0.3 / ^30.1.2 / ^16.3.3
API Mocking MSW (Mock Service Worker) ^3.0.2
Browser Testing Playwright ^1.64.1
Component Testing @testing-library/user-event + @testing-library/jest-dom ^14.6.7 / ^7.0.1

Future Integrations

  • AI: Anthropic Claude API
  • Deployment: TBD
  • CI/CD: GitHub Actions — CI in place (frontend lint, both test suites and the frontend build on every push); deployment pipeline planned

Project Structure

nobacklog/
├── backend-dotnet/
│   ├── Controllers/
│   │   ├── BoardsController.cs
│   │   ├── ListsController.cs
│   │   ├── CardsController.cs
│   │   └── TimeLogsController.cs
│   ├── Models/
│   │   ├── Board.cs
│   │   ├── List.cs
│   │   ├── Card.cs
│   │   ├── TimeLog.cs
│   │   ├── CardReorderRequest.cs
│   │   ├── CardUpdateRequest.cs   # partial-update DTO for PUT /cards/:id
│   │   ├── ListReorderItem.cs
│   │   ├── TimeLogStartRequest.cs
│   │   ├── RunningTimerSummary.cs
│   │   └── TimeTrackingOptions.cs # MaxEntriesPerCard / MaxRunningTimers
│   ├── Json/
│   │   └── TrimmingStringConverter.cs
│   ├── Services/
│   │   ├── Interfaces/           # IBoardService, IListService, ICardService, ITimeLogService
│   │   ├── BoardService.cs
│   │   ├── ListService.cs
│   │   ├── CardService.cs
│   │   └── TimeLogService.cs
│   ├── Data/
│   │   └── AppDbContext.cs
│   ├── Migrations/                # EF Core schema migrations
│   ├── Program.cs                 # App entry point, DI, CORS, DbContext config
│   └── NoBacklog.Api.csproj
│
├── backend-tests/
│   ├── Infrastructure/
│   │   ├── TestDb.cs              # per-test in-memory SQLite database + seed helpers
│   │   ├── ApiFactory.cs          # in-memory API host (WebApplicationFactory) on that database
│   │   └── ApiAssert.cs           # response envelope assertions (incl. model-validation 400s)
│   ├── Controllers/               # HTTP-level tests, one class per controller
│   ├── Services/                  # BoardService, ListService, CardService, TimeLogService tests
│   └── NoBacklog.Api.Tests.csproj
│
└── frontend/
    └── src/
        ├── app/                    # main.jsx, routes.jsx, theme.js
        ├── test/                   # Vitest setup, MSW server, apiUrl + renderWithTheme helpers
        ├── pages/                  # BoardsPage, BoardDetailPage
        ├── features/
        │   ├── boards/              # api, components, hooks
        │   ├── lists/               # api, components, hooks, constants
        │   ├── cards/               # api, components (incl. CardEditDialog), hooks, constants, rank.js
        │   └── timeLogs/            # api, components, hooks, utils
        └── shared/
            ├── api/                 # shared fetch client (api.js): timeout, error envelope → Error
            └── components/          # shared UI (FieldLabel, LoadError)

API Architecture

Hierarchical Data Model

Board (Dashboard/Workspace)
  ├── Name: string
  └── Lists[] ─┐
               │
         List (Column/Status)
           ├── Name: string
           ├── BoardId: int → Board
           ├── Position: string  (rank-based ordering)
           └── Cards[] ─┐
                        │
                  Card (Task/Item)
                    ├── Title: string
                    ├── Description: string?
                    ├── ListId: int → List
                    ├── Position: string  (rank-based ordering)
                    ├── Priority: enum[Low, Medium, High]
                    ├── TimeEstimate: string? (free text, max 50)
                    └── TimeLogs[] ─┐
                                    │
                              TimeLog (Work Log Entry)
                                ├── CardId: int → Card
                                ├── StartTime: DateTime
                                ├── EndTime: DateTime? (nullable)
                                └── Duration: long (ms, computed on finish)

Validation Strategy

Two-Tier Validation Pattern (applied consistently across controllers):

  1. Field Validation

    • Required field presence checks
    • Empty/whitespace string detection
    • Business rule validation (e.g. reorder payload cannot be empty)
  2. Reference Validation

    • Parent resource existence verification at the service layer
    • Missing references raise KeyNotFoundException, caught by the controller and returned as 404

Example (Card Reposition):

// Tier 1: Field Validation
if (request.ListId == 0)
    return BadRequest(...); // malformed/missing field
if (string.IsNullOrWhiteSpace(request.Position))
    return BadRequest(...);

// Tier 2: Reference Validation (in the service layer)
// RepositionCardAsync throws KeyNotFoundException if the card or
// destination list doesn't exist — caught by the controller as 404.

Ordering Strategy

Lists and Cards both carry a string Position field. The backend orders by a plain OrderBy(x => x.Position); the frontend generates fixed-width, zero-padded rank strings (see rank.js) so a lexicographic string sort is equivalent to a numeric one. New positions are computed client-side as the midpoint between two neighboring ranks, which supports append and insert-between without a server round trip to compute the value. When no integer rank is left between two neighbors (or an append would overflow the 8-digit width), generateRank returns null and the client sends the list's intended card order to PATCH /lists/:listId/cards/rebalance. The server then rewrites every rank in that list 1000 apart in a single transaction. A card coming from another list is moved in by the same call, so a cross-list drop that exhausts a gap is persisted in one request.


API Endpoints

Base URL

Dev:        http://localhost:5000/api
Production: TBD

Board Endpoints

GET    /boards          - Get all boards
POST   /boards          - Create new board
GET    /boards/:id      - Get board by ID
PUT    /boards/:id      - Update board
DELETE /boards/:id      - Delete board

List Endpoints

GET    /lists            - Get all lists (optional: ?boardId=xxx)
POST   /lists            - Create new list
GET    /lists/:id        - Get list by ID
PUT    /lists/:id        - Update list
DELETE /lists/:id        - Delete list
PATCH  /lists/reorder    - Persist a new list order (body: ordered array of list IDs; an unknown ID → 404, nothing moved)

Card Endpoints

GET    /cards             - Get all cards (optional: ?listId=xxx or ?boardId=xxx)
POST   /cards             - Create new card
GET    /cards/:id         - Get card by ID
PUT    /cards/:id         - Update card
DELETE /cards/:id         - Delete card
PATCH  /cards/:id/reorder - Reposition a card (body: { listId, position })
PATCH  /lists/:listId/cards/rebalance - Re-space every card rank in a list (body: ordered array of card IDs; 409 if a card in the list is missing)

TimeLog Endpoints

GET    /timelogs        - Get all time logs (optional: ?cardId=xxx)
POST   /timelogs            - Create new time log
POST   /timelogs/start      - Start a timer on a card (body: { cardId }; server stamps start time)
POST   /timelogs/:id/finish - Finish a running timer (server stamps end time, computes duration in ms)
GET    /timelogs/running    - Every running timer across all cards ({ id, cardId, cardTitle, startTime }[])
GET    /timelogs/settings   - Time-tracking settings ({ maxEntriesPerCard, maxRunningTimers })
GET    /timelogs/:id        - Get time log by ID
PUT    /timelogs/:id        - Correct a time log's startTime/endTime (omitted = unchanged; end must follow start, no future times, a running entry's end can't be set)
DELETE /timelogs/:id        - Delete time log

Time-tracking rules (each returns 409 Conflict when violated):

  • A card may have one running timer at a time. The database enforces this too (partial unique index ix_time_logs_card_id_running on card_id WHERE end_time IS NULL), so two concurrent starts can't both succeed; the loser gets the same 409.
  • A card stores at most TimeTracking:MaxEntriesPerCard entries, running included (default 5).
  • At most TimeTracking:MaxRunningTimers timers may run at once across all cards (default 2).

Both limits are placeholder settings until a project-manager settings UI exists — override them in appsettings*.json:

"TimeTracking": { "MaxEntriesPerCard": 3, "MaxRunningTimers": 5 }

Response Format

Success Response

{
  "success": true,
  "message": "Resource successfully created/updated/deleted",
  "data": { /* resource object */ }
}

Error Response

{
  "success": false,
  "message": "Descriptive error message"
}

Requests rejected by model validation before a controller runs ([Required], [MaxLength], unreadable JSON, unknown enum values, a non-numeric {id}) use the same envelope with a per-field errors object added (Json/ValidationErrorEnvelope.cs):

{
  "success": false,
  "message": "Board name is required.",
  "errors": { "Name": ["Board name is required."] }
}

HTTP Status Codes

  • 200 - Success (GET, PUT, DELETE, PATCH)
  • 201 - Created (POST)
  • 400 - Validation Error (client error)
  • 404 - Resource Not Found
  • 409 - Conflict (time-tracking limits)
  • 500 - Server Error (unhandled)

Testing Approach

Testing Philosophy

QA-Driven Development: Leveraging ISTQB Foundation Level principles — positive/negative cases, boundary value analysis, equivalence partitioning, reference integrity testing.

Backend (xUnit)

backend-tests/ holds an xUnit project with two layers: Services/ exercises every service class directly (BoardService, ListService, CardService, TimeLogService), and Controllers/ sends real HTTP requests through the whole API. No database server or Docker is needed:

dotnet test backend-tests
  • Database: each test gets its own in-memory SQLite database (Infrastructure/TestDb.cs), created from the EF model with EnsureCreated(). SQLite was chosen over EF's InMemory provider because it's a real relational engine, so foreign keys and ON DELETE CASCADE are actually enforced.
  • Assertions read back through a fresh DbContext, so they check what was persisted rather than the change tracker's in-memory copy.
  • Coverage focus: reference-integrity errors (unknown parent IDs), not-found paths, partial-update semantics (card/list PUT), cascade deletes, ordering and tie-breaks, and boundary values for the time-tracking limits (one below / at MaxEntriesPerCard and MaxRunningTimers).
  • Controller tests: Infrastructure/ApiFactory.cs hosts the real app (Program.cs: routing, [ApiController] model validation, JSON options, controllers, services) in memory with WebApplicationFactory<Program>, swapping Postgres for the test's SQLite database and overriding the time-tracking limits through configuration. Seeding and read-back go through the same TestDb helpers. They cover the { success, message, data } envelope, the controllers' own 400 checks, the exception mapping (KeyNotFoundException → 404, ArgumentException → 400, InvalidOperationException → 409), route constraints, enum-as-string JSON and inbound trimming.
  • Two sources of 400: a controller's own checks (e.g. listId missing, blank PUT title) and anything [ApiController] rejects before the action runs (blank or whitespace names, which trim to "" and fail [Required]; [MaxLength]; malformed JSON; unknown enum values; a non-numeric {id}). Both return the { success, message } envelope; the second also carries errors and is checked with ApiAssert.ValidationFailure.
  • Known gap vs. production: SQLite orders strings with a binary collation, while Postgres uses the database collation, so Card.Position ordering isn't verified against Postgres itself.

Frontend (Vitest)

Test files sit next to the code they cover (rank.js → rank.test.js). No backend or database is needed:

cd frontend
pnpm test            # run once
pnpm test:watch      # re-run affected tests on save
pnpm test:coverage   # coverage report (text + coverage/index.html); fails below the thresholds
  • Runner: Vitest, configured in vite.config.js so tests go through the same transform pipeline as the app. globals is off — tests import describe/it/expect explicitly, so src/test/setup.js calls Testing Library's cleanup() itself.
  • Backend stand-in: MSW (src/test/server.js) intercepts fetch, so the real api.js and service modules run in every hook test: URLs, verbs, request bodies and error conversion are all exercised. The server starts with no handlers; each test declares exactly the endpoints it expects with server.use(...), and any undeclared request fails the test (onUnhandledRequest: 'error').
  • Components render through renderWithTheme (src/test/render.jsx), which wraps them in the app's ThemeProvider (their sx callbacks read custom palette tokens MUI's default theme lacks) and returns a user-event session (delay: null, so typing doesn't wait a timer tick per keystroke). Elements are queried role-first (getByRole('button', { name: 'Save' })), then label/placeholder/text — never MUI class names. jest-dom matchers (toBeDisabled, toHaveValue, …) are registered in setup.js.
  • Hooks are driven with renderHook / waitFor / act. Error assertions match the exact message (e.g. HTTP error: 500 Internal Server Error), because an unmatched handler also produces an error (TypeError: fetch failed) and a vague assertion would pass for the wrong reason.
  • Coverage focus: rank boundaries (RANK_MAX, exhausted gaps) plus a repeated-bisection test asserting string sort order; duration rollovers and the negative clamp; for each hook, load → error → reload transitions, a stale-response guard, every mutation's success and rejection, the rebalance-before-create path, and rollback of a rejected drag. For components (LoadError, CardEditDialog, TimeLogSection): each optimistic edit's revert on failure, Save/Discard dirty-tracking and in-flight states, Escape cancelling a title edit (or a time-entry edit) without closing the dialog, the time-entry editor's validation (finish after start, no future or blank times) and sending only the changed field, the Start button and limit captions at each cap's boundary, and the live elapsed counter (fake setInterval/Date only). For pages and the drag-and-drop components: BoardsPage's links resolve through a memory router; BoardDetailPage loads the board name, lists and cards independently (each with its own error and Retry, and no cards banner until the lists are on screen) and merges the card's priority into every dialog save, applies a same-list card hover live but holds a cross-list one until the drop, and keeps the open card in ?card=<id> (deep link, refresh, stale/malformed ids dropped, kept through a failed load); ListColumn's rename (Enter, blur, Escape, blank/unchanged, optimistic name settling) and add-card form (Shift+Enter, L/M/H outside the title, focus-leave closing that ignores the priority dropdown); Lists' per-column slicing and error scoping; CardItem's delayed single-click open, double click, and moved-press rejection.
  • Drag-and-drop: jsdom has no layout, so dnd-kit can't resolve a real pointer drag. BoardDetailPage.test.jsx wraps DragDropProvider to reach the handlers the page passes it, and calls onDragStart/onDragOver/onDragEnd with synthetic events shaped like dnd-kit's. It asserts on the rendered order and on the request each drop sends: list reorder and its rollback, same-list and cross-list card moves (onto a card, into an empty column, below the last card), the rebalance when ranks are exhausted, the rejected-move rollback, and cancelled drags. The real provider still renders, so every useSortable/useDroppable registration runs. setup.js stubs ResizeObserver, which @dnd-kit/dom constructs on import.
  • Queries on the board: dnd-kit gives each draggable role="button" with aria-roledescription="draggable", so a column isn't a region and a card isn't a listitem. Columns are found by their name (getByLabelText('To Do', { selector: 'section' })) and cards by their title text.
  • HTTP client: api.test.js covers the error envelope's message, the status-line fallback for empty, non-JSON and blank-message bodies, and the 5000 ms timeout. For the timeout, MSW holds the response with delay('infinite') while only setTimeout/clearTimeout are faked.
  • Mutation-checked: while writing the suite, deliberate bugs were injected into each module under test to confirm a test fails for each one. One known exception: ListColumn's Escape resets the title draft in case the field's unmount also fires a blur, which jsdom never does.
  • Coverage thresholds: vite.config.js fails pnpm test:coverage when project-wide coverage drops below 94% statements, 88% branches, 95% functions or 95% lines, about a point under the figures measured on 2026-10-27 (95.7 / 89.2 / 96.0 / 96.3%). Raise them as coverage grows.
  • Not covered: main.jsx and routes.jsx (app bootstrap). Real pointer and keyboard drags are covered by the browser tests below.

Browser (Playwright)

Real drags in Chromium, in frontend/e2e/. Playwright starts its own Vite dev server on port 5199, and the API is stubbed per test (e2e/support/board.js), so no backend or database is needed:

cd frontend
pnpm exec playwright install chromium   # once
pnpm test:e2e
  • Why a browser: jsdom has no layout, so the Vitest suite can only call the drag handlers with synthetic events. These tests check that a gesture on the rendered board activates a drag, collides with the right target, and ends in the expected order and request.
  • Pointer drags: list reorder (including that the columns really moved on screen), same-list and cross-list card moves, a drop into an empty column, a cross-list hover held until the drop, Escape cancelling either kind of drag, and rollback with the server's message when the save fails. A card's double-press gesture is tested from both sides: a single click opens the card, and a press and move without the first click does nothing.
  • Keyboard drags: Space to lift, arrow keys to move, Space to drop or Escape to cancel, for list reorder, same-list card moves, and card moves into the next list (above its first card or below its last) and into an empty one. A key is followed by a short pause, because dnd-kit finishes a keyboard step asynchronously.
  • Fixture: card 3 shares its numeric id with list 3 on purpose, to guard the list-/card- id prefixes against the registry collision described in ListColumn.jsx.
  • Mutation-checked: committing cross-list hovers live fails the hold-until-drop test, and removing the column's KeyboardSensor fails the keyboard list tests.
  • Not covered: the stubbed API returns nothing from a write, so persistence itself rests on the backend's controller tests. Touch gestures and browsers other than Chromium aren't run.

Continuous Integration

.github/workflows/ci.yml runs on every push (and on demand from the Actions tab), as three parallel jobs:

  • Backend: dotnet test backend-tests on .NET 10.
  • Frontend: pnpm install --frozen-lockfile, pnpm lint (Biome: formatting and lint rules), pnpm test:coverage (fails under the coverage thresholds), then pnpm build. pnpm's version comes from packageManager in frontend/package.json.
  • E2E: pnpm exec playwright install --with-deps chromium, then pnpm test:e2e, with one retry and the report uploaded as an artifact on failure.

A newer push to the same branch cancels the run it supersedes. frontend/.gitattributes checks the frontend out with LF line endings, so pnpm lint passes on Windows exactly as it does in CI; run pnpm format (or pnpm biome check --write .) to fix formatting locally.


Established Code Patterns

Controller Pattern

[HttpPost]
public async Task<IActionResult> Create([FromBody] Resource resource)
{
    // 1. Field validation
    if (string.IsNullOrWhiteSpace(resource.Name))
        return BadRequest(new { success = false, message = "Name is required." });

    try
    {
        // 2. Service call — reference validation happens here,
        //    throwing KeyNotFoundException if a parent doesn't exist.
        var created = await _resourceService.CreateResourceAsync(resource);
        return CreatedAtAction(nameof(GetById), new { id = created.Id },
            new { success = true, message = "Resource successfully created.", data = created });
    }
    catch (KeyNotFoundException ex)
    {
        return NotFound(new { success = false, message = ex.Message });
    }
}

Service Pattern

  • Each resource has an I{Resource}Service interface and a {Resource}Service implementation, registered as scoped DI services in Program.cs.
  • Services own EF Core queries (AppDbContext), reference-existence checks, and business rules (e.g. rank reordering, duration calculation).

Frontend Feature-Folder Pattern

  • Each domain (boards, lists, cards, timeLogs) owns its own api/, components/, and hooks/ subfolders, with an index.js barrel export.
  • Pages (src/pages/) compose feature hooks and components; they do not fetch data directly.
  • Card state is lifted to the board level (useBoardCards in BoardDetailPage) so a single drag handler can see both the source and destination list when a card moves across columns.

Getting Started

Prerequisites

  • .NET SDK 10.0+
  • Node.js 22.12+ (Vitest 5 requirement; CI uses Node 24) and pnpm 9 (pinned via packageManager; npm install is blocked)
  • PostgreSQL (local instance, or a hosted connection string)
  • Git
  • Code editor (VS Code / Rider recommended)

Installation

  1. Clone the repository
git clone <repository-url>
cd nobacklog
  1. Configure the backend
cd backend-dotnet
# Create appsettings.Development.json (gitignored) with a PostgreSQL
# connection string under ConnectionStrings:DefaultConnection
dotnet restore
dotnet ef database update
  1. Configure the frontend
cd frontend
pnpm install
  1. Start both dev servers — see Running the App below.

  2. Verify the API is running

# Should return: { "message": "NoBacklog API is running..." }
curl http://localhost:5000/

Running the App

Frontend Backend Database
Dev http://localhost:5173 http://localhost:5000 nobacklog
# Terminal 1 — backend (from backend-dotnet/)
dotnet run --launch-profile http

# Terminal 2 — frontend (from frontend/)
pnpm dev

.claude/launch.json defines the same two servers (frontend, backend) for Claude Code's preview tools.


Learning Resources

Backend References

Frontend References

Testing References


Development Roadmap

Detailed progress by work item, with the commits behind each one, is kept in the maintainer's private project notes.

Completed

  • Backend API architecture design (ASP.NET Core + EF Core + PostgreSQL)
  • Database schema modeling + migrations
  • Board API implementation
  • List API implementation (+ reorder endpoint)
  • Card API implementation (+ reposition endpoint, rank-based ordering)
  • TimeLog API implementation
  • React project initialization (Vite, MUI, React Router)
  • API client setup
  • Board list + board detail pages
  • List column CRUD (create, delete) + drag-and-drop reordering
  • Card CRUD (create, delete) + drag-and-drop reordering, including cross-list moves

Previous Sprint: Core UI Completeness (Complete)

  • Card detail view / editing (title, description, priority)
  • List renaming
  • Time tracking UI (start/finish/delete in the card detail dialog; per-card entry cap + global running-timer cap)
  • Automated backend test project (xUnit against the service layer, in-memory SQLite)

Follow-ups from card editing

  • Sync the open card editor to a ?card=<id> URL param (deep-linkable, survives refresh)
  • Dedupe the priority-chip colour lookup shared by CardItem and CardPreview (priorityChipSx)
  • Add theme.js component overrides for MUI Dialog/form controls instead of local sx fixes

Follow-ups from time tracking

  • Manual editing of a time entry's start/finish times
  • Project-manager settings UI for MaxEntriesPerCard / MaxRunningTimers (after auth/roles)
  • DB-level guard for one running timer per card (partial unique index on card_id WHERE end_time IS NULL); a start that loses the race to a concurrent one gets the usual 409
  • Decide the fate of the unused Card.TimeTracked column (sync from logs or drop): dropped. It was meant as a cached per-card total of logged time, but nothing ever wrote it, and the UI sums the time-log entries instead (migration DropCardTimeTracked)
  • Surface the server's error message in api.js instead of the generic HTTP error: 409

Follow-ups from backend tests

  • Controller-level integration tests (WebApplicationFactory): validation 400s, 404/409 mapping, response envelope
  • GET /api/cards/:id and GET /api/timelogs/:id returned 500: the Include()d parent got the entity back through EF's relationship fixup (Card.List.Cards → Card…) and serialization threw on the cycle. Program.cs now sets ReferenceHandler.IgnoreCycles, which writes that back-reference as null
  • Return model-validation 400s in the { success, message } envelope (InvalidModelStateResponseFactory), so api.js shows e.g. "Board name is required." instead of the status line. The [Required]/[MaxLength] attributes carry the same wording as the controllers' own checks; those blank-name checks on board/list/card create stay as a backstop but aren't reachable through model binding
  • PATCH /api/lists/reorder silently skipped unknown list IDs, so its KeyNotFoundException → 404 branch never ran. An unknown ID now returns 404 and no list is moved
  • Optional Postgres Testcontainers run: moved to Next release
  • Run dotnet test in CI (GitHub Actions)

Previous Sprint: Hardening (Complete)

  • Rank rebalancing when a position gap is exhausted (PATCH /lists/:listId/cards/rebalance)
  • Per-feature loading/error states (board name, lists and cards load and retry independently; failed drag persists roll back)
  • Frontend test coverage (Vitest + MSW: rank/duration utils and the useLists, useBoardCards, useCardTimeLogs hooks)

Follow-ups from frontend tests

  • Component tests with React Testing Library (CardEditDialog, TimeLogSection, LoadError)
  • Tests for pages (BoardsPage, BoardDetailPage) and the drag-and-drop components (ListColumn, CardItem, Lists, Cards)
  • BoardDetailPage's onDragOver looked the dragged card up by its dnd-kit id (card-3) instead of its numeric id, so its "only commit same-list hovers" guard never fired and cross-list hovers were applied live too (see its comment for the ghost-card bug the guard prevents)
  • A failed card create clears the add-card title (submitCreateCard resolves after recording the error), unlike the add-list form, which keeps the name for a retry. submitCreateCard now resolves to whether the card was created, and the form keeps the title and priority on failure
  • The list title is click-only: make it keyboard-reachable like CardEditDialog's title. It's a focusable role="button" (Enter/Space opens the editor, focus returns after Enter/Escape) rather than a real <button>, so pointer drags can still start on it
  • Browser-level drag-and-drop tests (Playwright): real pointer and keyboard drags
  • Keyboard ArrowDown from the last card of another list jumped back to the card's original list, so a card couldn't be placed below that last card. ArrowUp/ArrowDown now only consider targets in the column the card is over (a line in patches/@dnd-kit__dom@0.4.0.patch, in dnd-kit's SortableKeyboardPlugin)
  • Accessibility gaps found while testing CardEditDialog: the time-estimate and description fields have no accessible name (FieldLabel isn't a <label>), the title isn't keyboard-reachable and its input has no name, and the dialog has no accessible name (aria-labelledby)
  • Test api.js's timeout path (fake timers + MSW), alongside the server-error-message follow-up
  • Remove the unused useCards hook (superseded by useBoardCards, still exported from features/cards/index.js)
  • Check whether useCardTimeLogs should clear its state when cardId becomes null. Not needed: TimeLogSection only mounts while the dialog has a card, so closing it unmounts the hook
  • Run pnpm test in CI alongside dotnet test
  • Project-wide Biome cleanup (pnpm lint reports pre-existing errors in files outside the test suite), then add pnpm lint to CI
  • Add coverage thresholds once components are tested (enforced in CI via pnpm test:coverage)

Next release

  • Optional Postgres Testcontainers run to verify Position ordering under the real collation

Future Features

  • User authentication
  • AI command processing
  • Deployment to production
  • Mobile responsiveness optimization
  • Real-time updates

Development Principles

Code Quality

  • DRY (Don't Repeat Yourself): Reusable patterns across all APIs and frontend features
  • Separation of Concerns: Clear model/service/controller boundaries on the backend; clear data/hooks/components boundaries on the frontend
  • Consistent Naming: Descriptive, conventional variable/function names
  • Error Handling: Field validation at the controller, reference validation at the service layer, surfaced as typed HTTP responses

QA Mindset Applied to Development

  • Boundary value testing during validation design
  • Equivalence partitioning for error scenarios
  • Edge case consideration (null values, empty strings, invalid references, exhausted rank gaps)
  • Negative testing coverage (400, 404 responses)
  • State transition testing (idle → running timer → finished timer)

Developer Notes

Reference Document: CV uploaded in project files for technical depth calibration

Development Preferences:

  • Step-by-step numbered guidance (max 5 steps per increment)
  • Explanatory teaching over direct code solutions
  • Credible documentation references
  • Real-world examples and analogies
  • Technical depth appropriate to ISTQB certification + 3+ years experience

Available Time Commitment:

  • Weekdays: 15 hours (after 4:30 PM)
  • Weekends: 10 hours
  • Flexible session-based progress

License

This is a portfolio project for educational and demonstration purposes.


Email: fklandee@gmail.com
LinkedIn: linkedin.com/in/patiphak-klandee
Portfolio: faroklandee.in

Current Phase: Frontend Development - Core Kanban UI complete (boards, lists, cards, drag-and-drop, card editing, time tracking); hardening sprint and Phase 2 close-out complete (server error messages, dialog accessibility, Biome lint in CI)
Backend Status: CRUD, reordering and timer endpoints complete across Board, List, Card, TimeLog resources | xUnit service-layer tests in place; controller integration tests pending

About

Learning and possibly income generating app featuring task creation and tracking assisted and powered by AI .

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages