Skip to content

feat(mocks): show the same buildings, rooms and staff as the other PlaceOS apps - #339

Merged
MrYuion merged 1 commit into
developfrom
feat/mocks-match-user-interfaces
Nov 11, 2026
Merged

MrYuion merged 1 commit into
developfrom
feat/mocks-match-user-interfaces

Conversation

@MrYuion

@MrYuion MrYuion commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator

The backoffice demo had its own org, buildings, rooms and users, so it did not match the other PlaceOS demo apps. You saw "Tower 2" and "2.30.08 - Activity Space" here, but "Innovation Hub" and "Sydney Harbour" in workplace.

The backoffice mocks now use the zones, rooms and staff of the user-interfaces mocks: PlaceOS Global, 2 regions, 5 buildings, 21 levels, 168 rooms and 86 staff. The signed-in user is Sarah Chen, the same as in the UI apps.

How

  • bun config/sync-ui-mocks.ts runs the user-interfaces mock generators (origin/develop of ../user-interfaces) and writes src/app/mocks/data/ui-mocks.ts. The UI mocks use a seeded random function, so the script runs them instead of copying their source. The output is the same on each run. The script does not change the user-interfaces checkout.
  • The 25 old AV systems now give their modules and settings to 25 UI meeting, conference, board, training and event rooms (data/systems.ts), so the module and control pages still have content.
  • The e2e specs use the new names and IDs.

Two fixes to the UI data

The script makes two changes to the UI data, because the UI mocks have two bugs:

  • UI rooms point to levels that do not exist (bld-01_lvl-0 instead of bld-01_lvl-G). The script changes them to the real level, so level pages list their rooms.
  • UI room emails have two @ (test.space.1@@place.tech). The system form rejects these emails, so the script removes one.

Testing

  • Unit tests, lint and the e2e type-check pass.
  • Mock e2e tests pass on Chromium, WebKit, mobile Chrome and mobile Safari (322 tests). Firefox did not start in my sandbox, so I did not run it there.

Created with Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

…aceOS apps

The backoffice demo used its own org, zones, systems and users, so it did not
match the user-interfaces demo apps. The mocks now use the zones, rooms and
staff of the user-interfaces mocks. `bun config/sync-ui-mocks.ts` makes them
again when those mocks change.

The old AV systems now give modules and settings to 25 of the UI rooms. The
e2e specs use the new names and IDs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MrYuion
MrYuion merged commit 484102f into develop Nov 11, 2026
4 of 5 checks passed
@MrYuion
MrYuion deleted the feat/mocks-match-user-interfaces branch November 11, 2026 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant