refactor(simple-message): migrate from blueprint to edge-apps-library#654
refactor(simple-message): migrate from blueprint to edge-apps-library#654nicomiguelino wants to merge 4 commits intomerge-blueprint-with-edge-apps-libfrom
Conversation
…rary - Update imports to use @screenly/edge-apps instead of blueprint - Add central vite.vue.config.ts with Vue auto-detection and watch plugins - Update package.json scripts to use edge-apps-scripts commands - Copy Playwright config and vite plugins from blueprint to library
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
There was a problem hiding this comment.
Pull request overview
This PR successfully migrates the simple-message-app from using local blueprint imports to the new centralized @screenly/edge-apps library package. The migration consolidates shared code and tooling, making the app easier to maintain and more consistent with other edge apps.
Changes:
- Replaced all
blueprintimport paths with@screenly/edge-appsequivalents across Vue components, stores, styles, and tests - Updated build tooling to use
edge-apps-scriptsCLI for build, lint, and type-check operations - Simplified Vite configuration by removing custom blueprint plugins and aliases
- Streamlined test setup using the library's
setupScreenlyMockutility
Reviewed changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| vite.config.ts | Removed blueprint-specific Vite plugins and path aliases, simplifying configuration |
| package.json | Updated scripts to use edge-apps-scripts CLI and added workspace dependency for @screenly/edge-apps |
| tsconfig.app.json | Updated TypeScript path mappings and env.d.ts location to reference edge-apps-library |
| tsconfig.vitest.json | Updated Vitest config to reference edge-apps-library env types |
| playwright.config.ts | Changed Playwright config import to use edge-apps-library scripts |
| settings.ts | Updated metadataStoreSetup import path to edge-apps-library |
| App.vue | Updated component and asset imports to use @screenly/edge-apps/vue paths |
| main.scss | Updated base styles import to @screenly/edge-apps/vue/styles/base |
| test-setup.ts | Replaced manual mock implementation with setupScreenlyMock from edge-apps-library |
| bun.lock | Added edge-apps-library workspace dependency and its transitive dependencies |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "edge-app-server": "screenly edge-app run --path=dist/", | ||
| "build": "edge-apps-scripts build", | ||
| "build:dev": "edge-apps-scripts build:dev", | ||
| "build:prod": "edge-apps-scripts build", |
There was a problem hiding this comment.
The build:prod script is identical to the build script (both use edge-apps-scripts build). Consider removing the build:prod script to avoid duplication, or add different parameters if they should behave differently.
| "build:prod": "edge-apps-scripts build", | |
| "build:prod": "edge-apps-scripts build --mode production", |
nicomiguelino
left a comment
There was a problem hiding this comment.
PR Review: Edge App Framework
✅ XSS Security Check: PASSED
The code properly uses safe DOM manipulation patterns throughout. No XSS vulnerabilities found.
📋 Summary of Required Changes
- Merge into existing apps:
clock-new/→clock/andweather-new/→weather/ - Add missing files:
screenly_qc.yml,static/directory with icons,mock-data.yml - Update scripts: Use
screenly edge-app runinstead ofvitefor dev server - Fix dependencies: Move
@screenly/edge-appstodevDependencies, addnpm-run-all2
See file-specific comments below for details.
|
Most of the apps that still depends on |
PR Type
Enhancement
Description
Migrate all
blueprintimports to@screenly/edge-appsSimplify Vite config by removing blueprint plugins
Update Playwright and test setup to use library
Revise scripts and TS configs to edge-apps-scripts
File Walkthrough
5 files
Migrate Playwright config import to libraryRemove blueprint Vite plugins and aliasesUpdate scripts and deps to edge-apps-scripts and libraryPoint env types to edge-apps-library definitionsAlign Vitest config with edge-apps-library env3 files
Switch metadata store import to edge-apps libraryUpdate imports to edge-apps Vue componentsReplace blueprint SCSS import with edge-apps styles1 files
Replace manual mock with setupScreenlyMock