feat: add simple edge app template#577
Conversation
- Minimal starter template for custom Edge Apps - Single message setting for basic configuration - Essential CSS styling and structure - Simple test case for settings - Lightweight foundation for app development
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|
An alternative to this PR is in the works. |
User description
Create a minimal starter template for building custom Screenly Edge Apps with essential structure and single message setting.
PR Type
Enhancement, Tests
Description
Introduce simple Edge App template
Display message from configurable setting
Theme setup and ready signaling
Add unit test for settings
Diagram Walkthrough
flowchart LR A["Template files (HTML/CSS)"] -- "render UI" --> B["main.ts"] B["main.ts"] -- "getSetting('message')" --> C["Screenly settings"] B -- "setupTheme()" --> D["Branding/theme"] B -- "signalReady()" --> E["Ready signal"] F["main.test.ts"] -- "mock settings" --> C F -- "assert message displayed" --> BFile Walkthrough
1 files
Add unit test validating message setting3 files
Implement message rendering, theme, readinessAdd base styles and themed message displayProvide minimal HTML scaffold and assets5 files
Ignore node_modules in templateAdd Prettier configuration for formattingDefine scripts, deps for template workflowDeclare app manifest and message settingAdd TypeScript configuration for Bun/DOM1 files
Document features, setup, config, testing