# Teaching guide · Session 6 — Keep building with judgement

## 1. Goal and continuity

S6 is an open-ended, online, self-paced resource. It requires no migration, new accounts or cloud publishing. Complete a first cycle with a **bounded plan, a test with a result and data recovery you can explain**. Then repeat with another change or project.

Continue the S0–S5 thread: dining room/frontend, kitchen/backend, pantry/database and file storage; context; small change; tests; branch and PR; review and checked release. S5 automation is optional: merging and publishing are not universally equivalent. AI helps, but cannot guarantee code or execute tests it cannot access.

## 2. Prepare support

- A small practice project with available code and context, fictional data and a recoverable backup. It can remain on Apps Script.
- A case where keeping the current tool makes sense and another with a measured limit. Migration is not a required graduation step.
- The [S6 decision and test worksheet](../../fitxa-proves-s6.en.html) and [local and PWA guide](../../guia-local-pwa-s6.en.html).
- An expected result, an observed result and a pending test. Without platform access, prepare a documentary comparison; do not call it a verified deployment.
- Account, device, data and spending policies. Do not lend accounts, request credentials or enable billing to resolve a classroom problem.

You may offer a short tutorial or voluntary demonstration. Agree on the support you can actually provide; the material promises neither unlimited help nor that learners must continue alone when they need help.

## 3. A flexible route

| Step | Activity | Evidence |
|---|---|---|
| Define | A task, users, data, limits and observable result | First worksheet section |
| Decide | Keep the tool or compare an option | Reason, official source and pending requirements |
| Prepare | Context and code; first a plan with AI | Affected files and proposed tests |
| Test | One small change with fictional data | Valid, invalid and regression results |
| Recover | Export and restore, or explain applicable recovery | Backup evidence and limits |
| Record | Portfolio and a completed first cycle | Declared status, three checks and remaining tasks |

A single timetable or completion of every platform is unnecessary. A maintained, well-tested app is as useful as a prototype on a new service. Record and explain missing tests; never mark them passed simply to finish the course.

## 4. The map and selector

The selector covers five needs: shared data, browser editor, separate frontend, AI prototype and offline use. It shows all related options without discarding intermediate answers. With every answer set to “No”, it does not force Firebase: it suggests defining the need and allows continuing with Apps Script.

For offline use with shared data, make synchronisation and conflicts visible. Neither a PWA nor a login solves them automatically. Distinguishing editor, hosting, backend and data prevents treating services as equivalents.

Avoid general promises of free service. Ask for specific services, plan, quotas, commercial use, cost and export. Vercel Hobby has personal, non-commercial usage terms; Firebase and Replit terms differ by service or plan. Consult the map’s official links. Distinguish budget alerts from effective spending limits.

## 5. The three prompts

- **s6.learn**: compare and plan a first platform test. Documentation and limits first; it does not authorise accounts, costs, installations or migrations.
- **s6.localFile**: adapt a local pilot without Apps Script-dependent calls, with validation, visible save errors and JSON export/restore.
- **s6.pwa**: start with a tested pilot and prepare a manifest, service worker, paths, offline use and updates. Test installation and offline use separately.

Templates live in assets/prompts.json and the generated bank. Preserve identifiers and variables. The context selector can choose an S1/S2 app without changing its text or the portfolio when opening the page. Attach current code separately; a title and columns do not describe the whole app. Switching language translates instructions, while preserving project data.

## 6. Distinguish these difficulties

| Situation | Intervention |
|---|---|
| Blank HTML or unavailable Google call | google.script.run does not execute outside Apps Script; adapt the pilot backend |
| Data disappears after moving the file or changing the port | Check origin and profile; restore a backup without promising file:// persistence |
| An icon exists but offline use fails | Test initial loading, worker control, resources and network-dependent features; installation does not validate offline use |
| The PWA serves an old version | Check cache and worker versions; export before touching data and avoid blindly clearing everything |
| Invalid backup or unknown schema | Reject without overwriting; review structure and migration plan |
| “I put it in a variable, so it is secret” | Separate the visible frontend from server secrets; test data authorisation |
| “Private repo, private website” | Check deployment visibility separately; keep restricted data out of static resources |
| No budget or permissions | Keep the plan and use an appropriate documentary or local exercise; respect policy |

## 7. Portfolio, progress and evidence

The portfolio shows S1/S2 and projects added in S6. A new project is “In progress”; “Tested” and “Published” are declared statuses. Adding a name does not publish or test an app. Only credential-free HTTP/HTTPS links open; old records are retained, but invalid links do not execute. Internal values are preserved for compatibility across languages.

In the new route, learners check plan, test and recovery, then press “Record exercise as complete”. Completion is self-declared; keep the worksheet. Previous completion is retained so updates do not erase progress. Opening the page does not rewrite portfolio projects or their dates.

Before switching devices, export progress from the menu. This does not export the created apps’ records: those need their own backups. If the browser cannot save, the warning distinguishes memory from persistence; completion is not reported as saved.

## 8. Closing

Ask for a short explanation: need, decision, observed test, recovery and next change. The method transfers, but APIs, permissions, data models and costs need adapting. Independence includes reading documentation, asking for help and postponing an unjustified migration.

Materials: [S6](../../../sessio_6/codi/sessio6.en.html), [worksheet](../../fitxa-proves-s6.en.html), [local and PWA guide](../../guia-local-pwa-s6.en.html), [prompt bank](../../banc-de-prompts.en.html), [FAQ](../../faq-alumne.en.html) and [tools and official sources](../../eines-i-enllacos.en.html).

Reviewed on 2026-10-26. This material review involved no third-party authentication, purchases or deployments.
