# Lovable: Practical Workflows — worked reference

Fictional practice project: Cedar studio inquiry site. These examples are teaching material, not evidence of learner competence or real client results.

Specify, build and test a small fictional service website: Home, Services and an inquiry form. Use the built-in form test bench for failure scenarios and create a site externally if available. A prototype submission must say which backend behavior remains unimplemented. Keep content and reusable components separate.

## Approved facts

- Studio offers graphic kits and simple websites; no prices or turnaround guarantees are approved.
- Form collects name, email and project type only.
- Project types: graphics, website, unsure.
- Required states: empty, invalid, pending, success and failure.
- A real site must validate on the server and enforce access per request.
- The practice test bench neither stores a real inquiry nor sends email.

## Source data

```csv
Page,Required content,Acceptance check
Home,"Audience, services, one inquiry action",Action opens inquiry form
Services,Graphics and website scope,No invented price
Inquiry,"Name, email, project type",Labels and validation
Success,Accurate saved-state message,Only after confirmed save
```

## 1. Project setup

### Task

Create a short specification and choose site implementation or tested prototype. Record the intended audience.

### Worked output

Cedar helps small organizations prepare graphics and simple websites. Main task: submit a project inquiry. Pages: Home, Services, Inquiry. No checkout, account or payment system is needed.

### Acceptance check

Keep scope aligned with one useful user journey.

## 2. Build request

### Task

Write a specific implementation prompt with components and acceptance checks.

### Worked output

Build reusable navigation, service card, labeled field and form status components. Use approved service text. The form must show invalid email and failed-save states and preserve entered values.

### Acceptance check

A request to look modern is replaced by observable behavior.

## 3. Small revision

### Task

Change one form behavior and describe the regression checks required.

### Worked output

Add a project-type selector with graphics, website and unsure. Recheck keyboard access, required validation, preserved values on error and successful payload shape.

### Acceptance check

One focused change is easier to verify than rewriting the whole site.

## 4. Access and data plan

### Task

Document client versus server validation, secret handling and record access.

### Worked output

Browser validation helps the user; server validation enforces the rules. Secrets stay on the server. A user cannot read another inquiry by changing an ID. Use fictional test records.

### Acceptance check

Hiding a link or button is not authorization.

## 5. Behavior test

### Task

Use the form lab to test empty, invalid, pending, failed and successful submissions. Record expected and observed states.

### Worked output

Invalid email blocks submission with a labeled error. Failure retains data and allows retry. Simulated success appears only on the success branch. For a real site, verify the saved record too.

### Acceptance check

A green animation is not evidence that a server saved the inquiry.

## 6. Deployment checklist

### Task

Write the configuration, verification and rollback steps for a real deployment or mark them pending for a prototype.

### Worked output

Confirm environment variables without exposing values. Test the deployed form with a fictional record. Verify record existence and access. Keep a rollback version and owner. Prototype-only delivery marks these checks pending.

### Acceptance check

Do not claim a deployment or backend test that was not performed.

## 7. Site handoff

### Task

Deliver the implementation or prototype, component map, test log and maintenance note.

### Worked output

Readme lists pages, approved content, form schema, tested states and remaining integration work. Explain how to update service text in one content module.

### Acceptance check

The recipient can maintain the site and distinguish working behavior from planned integration.

## Decision practice

The form always displays success, even when the save fails. What is the fix?

- Tie success to a confirmed save and show a recoverable error on failure. — The interface must represent the result of the operation. Preserving values and offering retry makes failure recoverable.
- Keep the animation and add a longer loading delay. — This misses a requirement in the brief. The interface must represent the result of the operation. Preserving values and offering retry makes failure recoverable.
- Hide the form after submission so the error is less visible. — This solves only part of the problem. The interface must represent the result of the operation. Preserving values and offering retry makes failure recoverable.

## Transfer challenge

Add a file attachment field. Identify new validation, storage, access and failure cases before implementing it.

## Review rubric

Human review; pass mark 24/30. Completed fields are not a quality score.

### Complete, usable project (10 points)

9–10: all required artifacts form a coherent Create and test a small service website; inputs and constraints match the brief. 5–8: usable work with specific omissions. 0–4: disconnected drafts or missing core deliverables.

### Evidence and course-specific quality (10 points)

9–10: the published stage checks are demonstrated in actual outputs, including: Do not claim a deployment or backend test that was not performed. 5–8: minor documented gaps. 1–4: major untested assumptions. 0: fabricated evidence, unsupported factual claims or misrepresented deliverable type.

### Revision and transfer (5 points)

5: before/after revision explains an observable improvement and answers the transfer challenge with changed assumptions. 3–4: sound reasoning with one gap. 0–2: cosmetic edits, copied example without adaptation or unexplained decisions.

### Independent handoff (5 points)

5: editable sources, usable exports, source/permission log, tested access and a concise readme; simulation and pending external-tool checks clearly labeled. 3–4: small handoff gaps. 0–2: inaccessible files or claims of work not actually completed.

## Delivery readme template

- Artifact type and version:
- What is complete:
- What remains untested or requires external-tool access:
- Source and asset permissions:
- How to open/edit the work:
- Before/after revision and reason:
- Concept-project label:

External tools may have account, plan or regional restrictions. Use the explicitly labeled offline route when needed. A simulator, storyboard or specification is not a deployed workflow, rendered film or production website.
