Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .claude/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
{
"name": "c4-user-flows-prototype",
"runtimeExecutable": "npm",
"runtimeArgs": ["run", "dev"],
"port": 5173
"runtimeArgs": [
"run",
"dev"
],
"port": 5173,
"autoPort": true
}
]
}
}
19 changes: 19 additions & 0 deletions DESIGNS.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ You need a Figma seat with Dev Mode access to open the Figma links.
| Code Club Projects | [Live blocks editor](https://projects.raspberrypi.org/en/projects/editor-neil-the-seal/editor) | `ProjectEditor` |
| Code Classroom | [Young people creating their own projects (FigJam)](https://www.figma.com/board/EuQrBiiwuk5wTc5NJ0ip7q/Young-people-students-can-create-their-own-projects-in-Code-Classroom?node-id=67-49) | `EducatorClassPage`, `EducatorProjectPage`, `YoungPersonSchoolHome`, `YoungPersonClassPage`, `ClassroomProjectEditor` |
| Code Classroom | [Code Editor — Designs, student user flow](https://www.figma.com/design/SrINjD1MCT6VWYf1Yc9fV1/Code-Editor---Designs?node-id=19655-360604) | Background on the Google SSO join route |
| Code Classroom | [Code Editor — Designs, "Individual class"](https://www.figma.com/design/SrINjD1MCT6VWYf1Yc9fV1/Code-Editor---Designs?node-id=7355-37981) | `EducatorClassPage`, and the Code Classroom page furniture — title band, breadcrumb, footer |
| Code Classroom | [Code Editor — Designs, "Dashboard Owner"](https://www.figma.com/design/SrINjD1MCT6VWYf1Yc9fV1/Code-Editor---Designs?node-id=6759-78797) | `EducatorSchoolHome` |
| Pi Accounts | Live: classroom.raspberrypi.org/login | `RoleChooser`, `SchoolCodeEntry`, `StudentSignIn` |

## Notes for anyone pulling from these
Expand All @@ -25,5 +27,22 @@ You need a Figma seat with Dev Mode access to open the Figma links.
rather than trying to extract text.
- **The blocks editor is in a shadow DOM**, so page-text extraction will not
reach it. Screenshot it.
- **The real editor cannot load Scratch from here, and the blocker is not in
this repo.** `editor-ui` embeds fine as a web component and Python runs
locally through Pyodide, but Scratch loads in an iframe keyed to a project
the editor API holds, and `editor-api.raspberrypi.org` answers with
`Access-Control-Allow-Origin: https://projects.raspberrypi.org`. So the
project fetch is refused from localhost and from wherever this deploys. It
would need the editor team to allow this prototype's origin. Until then the
blocks editor is `EditorCanvas`, drawn from a screenshot of the Neil the Seal
starter.
- **`MentorSignIn` is not verified** — it is behind a login and was built from
the pattern. Correct it if you can see the real thing.
- **The Code Classroom pages are two bands.** A white block carrying the
breadcrumb, title, description and page actions, then the content on
`#fbf9f6` below. Both values come from the Code Editor file
(`editor-color-layer-accent`, `editor-color-theme`) and replace what were
guesses in `surfaces/tokens.css`.
- **The topbar logo is still the words "Raspberry Pi Foundation".** The designs
use the colour wordmark. Nothing in this repo ships an image asset yet, so
this is the one piece of that chrome not reproduced.
15 changes: 15 additions & 0 deletions src/ScreenGallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
ManageClub,
MentorDashboard,
EducatorClassPage,
EducatorSchoolHome,
EducatorProjectPage,
MentorSignIn,
ProjectEditor,
Expand All @@ -20,6 +21,7 @@ import {
manageClubMeta,
mentorDashboardMeta,
educatorClassPageMeta,
educatorSchoolHomeMeta,
educatorProjectPageMeta,
mentorSignInMeta,
projectEditorMeta,
Expand Down Expand Up @@ -209,6 +211,7 @@ export function ScreenGallery() {
classGroup={scratchGroup}
projects={classProjects}
memberCount={scratchGroup.studentIds.length}
description="Our Thursday after-school Code Club. We work through Scratch projects at our own pace — come along whenever you can."
onAddProject={noop}
onOpenProject={noop}
onCopyLink={noop}
Expand All @@ -232,6 +235,18 @@ export function ScreenGallery() {
/>
</Frame>

<Frame name="School home (mentor)" meta={educatorSchoolHomeMeta} account="Your Account">
<EducatorSchoolHome
school={westlands}
classes={classesInSchool(westlands.id)}
joinLink={`rpf.io/student/${westlands.schoolCode.replace(/-/g, '')}`}
onOpenClass={noop}
onCreateClass={noop}
onManageMembers={noop}
onCopyLink={noop}
/>
</Frame>

<Frame
name="School home (young person)"
meta={youngPersonSchoolHomeMeta}
Expand Down
Loading
Loading