Skip to content
Open
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
1 change: 1 addition & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- run: pnpm install --frozen-lockfile
- run: pnpm run prepare:assets
- run: pnpm run check
- run: pnpm run mobile:design-lab:check
- run: pnpm run test:harmony
- run: pnpm run test:miniapps
- run: pnpm run test:brand
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ pnpm run check
- [HarmonyOS](src/apps/mobile/harmonyos/README.md): DevEco Studio; local signing and SDK configuration stay outside Git.
- [Shared core](src/apps/mobile/AGENTS.md): run `./gradlew jvmTest` from `src/apps/mobile/shared`.
- [Design preview](src/apps/mobile/design-system/README.md): `pnpm run mobile:ui:preview`.
- [Mobile Design Lab and standalone prototype](design-system/apps/design-lab/README.md): `pnpm run mobile:design-lab`.

See [migration and compatibility ownership](MIGRATION.md), [app features](src/apps/mobile/README.md), and [contributing instructions](AGENTS.md).

Expand Down
20 changes: 20 additions & 0 deletions design-system/apps/design-lab/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Mobile Design Lab

From the repository root, run `pnpm install --frozen-lockfile` and
`pnpm run mobile:design-lab`, then open <http://127.0.0.1:4178>.
Use `pnpm run mobile:design-lab:check` to build the lab and run its mobile
component tests.

- **Typical mobile scenes** shows the conversation, sidebar, recent home, and
device pairing in phone frames.
- **Components** shows the mobile kit, its token roles, and interactive controls
such as sheets that open inside the frame.
- **Updated HTML prototype** opens the supplied [standalone demo](public/openbitfun-mobile-standalone.html).
The file also opens directly in a browser. Inter loads from Google Fonts when
available.

The mobile scenes, React kit, and [icon guidelines](../../docs/ICON_SYSTEM.md)
come from Cindy's [OpenBitFun PR #3937](https://github.com/openBitFun/OpenBitFun/pull/3937),
snapshot [bd83b39](https://github.com/openBitFun/OpenBitFun/commit/bd83b396f3af7010d0e937e749aeb6a0243d68f5).
The browser reference uses demo data. For native tokens and Android, iOS, and
HarmonyOS comparison, use the [native design system](../../../src/apps/mobile/design-system/README.md).
12 changes: 12 additions & 0 deletions design-system/apps/design-lab/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>OpenBitFun Mobile Design Lab</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
22 changes: 22 additions & 0 deletions design-system/apps/design-lab/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "@openbitfun/mobile-design-lab",
"private": true,
"type": "module",
"scripts": {
"dev": "vite --host 127.0.0.1 --port 4178 --strictPort",
"build": "tsc --noEmit && vite build"
},
"dependencies": {
"@openbitfun/theme-openbitfun": "workspace:^",
"@openbitfun/ui": "workspace:^",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@types/react": "^18.3.0",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.6.0",
"typescript": "5.9.3",
"vite": "^7.0.4"
}
}
32 changes: 32 additions & 0 deletions design-system/apps/design-lab/public/assets/bitfun-mascot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions design-system/apps/design-lab/public/assets/openbitfun-mark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading