AI-Assisted Coding · Module 3 reference

Glossary

Short definitions as the module uses them, each linked to the lesson it comes from.

Product surface

The part of the system a user sees and manipulates; in Module 3, the Kanban board, cards, drag-and-drop and modal built on the Module 2 API.

Review Lesson 1
Source-of-truth rule

The backend owns validation and business rules; the frontend must show its decisions, including 422 errors, rather than override or hide them.

Review Lesson 1
Ask, inspect, run, test, refine

The working loop the course repeats: request a small change, read what is proposed, run it, test it, and improve it from the evidence.

Review Lesson 1
DevTools

The browser’s developer tools; in this module mainly the Console and Network tab, used to see failed requests, status codes and response bodies.

Review Lesson 1
GitHub Copilot

The AI coding assistant the module uses inside VS Code, through inline suggestions, chat, and inline chat or edits on a selection.

Review Lesson 2
Inline suggestion

A completion the assistant offers as you type; useful for repeated patterns, and inspected before you keep it.

Review Lesson 2
Inline chat

A chat scoped to a selected block of code in the editor, which proposes an edit you review as an inline diff and keep or undo.

Review Lesson 2
Repo grounding

Anchoring the assistant to the actual repository and selected file so its answers come from your code, not from typical project patterns.

Review Lesson 2
Route decorator

The @app.get, @app.post, @app.patch or @app.delete line in app/main.py that registers a route; the evidence for any route the assistant claims.

Review Lesson 2
Kanban board

A board of status columns, here ToDo, InProgress and Done, with task cards that move between them.

Review Lesson 3
Priority sorting

Ordering cards within each column High, then Medium, then Low, with a predictable tie-break such as lower id first.

Review Lesson 3
UI states

The four states the board must show: loading while fetching, empty placeholders, the ready board, and an error when the fetch fails.

Review Lesson 3
CORS

Cross-Origin Resource Sharing: the browser rule that blocks a page on one origin (such as localhost:5500) from reading responses from another (localhost:8000) unless the server allows that origin.

Review Lesson 3
Native drag-and-drop

The browser’s built-in HTML Drag and Drop API, using dragstart, dragover and drop events, with no external library.

Review Lesson 3
DataTransfer

The object that carries data during a drag, such as the task id set on dragstart and read on drop, along with effectAllowed and dropEffect.

Review Lesson 3
Optimistic update

Moving a card on screen before the server answers, so the UI feels responsive, and reverting it if the PATCH is rejected or fails.

Review Lesson 3
Create mode / edit mode

The modal’s two modes: no task id and POST /tasks for create; a known id, prefilled fields and PATCH /tasks/{id} for edit.

Review Lesson 4
Title trimming

Removing leading and trailing whitespace before checking whether the title is empty, so whitespace-only titles are blocked on the client.

Review Lesson 4
422 Unprocessable Entity

The status the backend returns for validation or business-rule failures, such as an invalid transition; the UI must show it, not hide it.

Review Lesson 4
Dismissal paths

Cancel, the close button, Escape and an overlay click: the four ways to close the modal, each of which clears stale values and errors.

Review Lesson 4
Selected edit

Asking the assistant to change only a selected function or section, rather than rewriting the whole file.

Review Lesson 4
Behavior contract

An eight-item checklist of behaviors you check by hand, passed before a refactor and re-checked after every accepted change.

Review Lesson 5
Checkpoint

A commit, or equivalent saved state, made before refactoring so rollback is easy.

Review Lesson 5
Diff review

Reading the proposed change line by line before accepting it; a diff is a proposal, not a decision.

Review Lesson 5
Regression

A behavior that worked before a change and fails after it.

Review Lesson 5
Edge case

An unusual but realistic input or situation, such as an unsupported status, an invalid transition or a missing task id.

Review Lesson 6
Deliberate breakage

Temporarily changing the source a test protects to confirm the test fails for the expected reason, then restoring it and confirming it passes.

Review Lesson 6
TestClient

FastAPI’s test client, used in tests/test_tasks.py to call the API like an HTTP client inside pytest.

Review Lesson 6
Cause fix

A minimal change to the source that removes the reason a test fails, explained in terms of the root cause.

Review Lesson 6
Symptom suppression

Making a failure disappear without fixing it: editing the expected value, deleting an assertion, wrapping the call in try/except, or changing tests broadly.

Review Lesson 6
Four-line debugging log

Bug or failure, evidence, the AI’s diagnosis, and your accept-or-reject decision with a reason.

Review Lesson 6
Full-file rewrite

An AI edit that replaces the whole file; a red flag because large diffs hide regressions and are hard to inspect.

Review Lesson 7