Skip to content

chore: sync development into main - #11

Open
nicomiguelino wants to merge 4 commits into
mainfrom
development
Open

chore: sync development into main#11
nicomiguelino wants to merge 4 commits into
mainfrom
development

Conversation

@nicomiguelino

@nicomiguelino nicomiguelino commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Syncs development into main, including the @screenly/edge-apps dependency bump to 1.5.0 and the redesigned full-page clock display (removes the screen name from the app header).

Removes the screen name from the app header (Screenly/edge-apps-library#56).
Regenerates screenshots to reflect the updated header.
@nicomiguelino
nicomiguelino marked this pull request as ready for review July 23, 2026 03:37
* feat: redesign the clock as a full page display

- Replace the photo background with a wash built from the customer accent
- Call setupTheme so brand colours reach the app for the first time
- Scale the time to roughly two thirds of the canvas, with tabular numerals
- Swap Kelly Slab for Inter, already bundled by the SDK
- Remove app-header, leaving auto-scaler as the only component in the markup

* feat: switch to a light palette for light brand colours

- Use isLightColor from the SDK to test the resolved accent colour
- Redefine the canvas, ink and rule tokens under a single body class

Requires @screenly/edge-apps v1.5.0, which is not published yet.

* feat: add a style setting with modern and minimal options

- Add a Style select to both manifests, defaulting to traditional
- Fall back to traditional for any value the build does not recognise
- Drive the type scale from custom properties so each style is one block
- Modern is left aligned and heavier, minimal is lighter with a faint wash

* chore(deps): bump @screenly/edge-apps to 1.5.0

- Picks up the released isLightColor helper the app already imports
Copilot AI lite review requested due to automatic review settings August 30, 2026 07:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR syncs UI/theming changes and a Screenly Edge Apps dependency bump from development into main, updating the clock’s markup/CSS and introducing a configurable “style” setting.

Changes:

  • Bump @screenly/edge-apps and adopt new theme helpers (setupTheme, isLightColor) to drive brand-aware styling.
  • Redesign the clock layout and styling (new HTML structure + revamped CSS variables for style variants).
  • Add a new style setting (manifest + resolver + unit tests) to select traditional|modern|minimal.

Reviewed changes

Copilot reviewed 8 out of 21 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/style.ts Adds style resolution and reads the style setting with fallback behavior.
src/style.test.ts Adds unit tests for style normalization and fallback behavior.
src/main.ts Applies theme + style classes and updates weather rendering behavior.
src/css/style.css Replaces legacy layout styling with variable-driven clock styles and variants.
screenly.yml Adds the style setting to the production manifest.
screenly_qc.yml Adds the style setting to the QC manifest.
package.json Updates @screenly/edge-apps dependency version.
index.html Updates DOM structure to match the new clock layout (and removes header usage).
bun.lock Lockfile updates reflecting the dependency bump and transitive changes.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/main.ts
Comment thread package.json
- Use querySelector<HTMLImageElement> to satisfy type-checking
Copilot AI review requested due to automatic review settings August 30, 2026 07:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 21 changed files in this pull request and generated 1 comment.

Comment thread package.json
- Add explicit esbuild ^0.28.0 devDependency
- Regenerate bun.lock so resolution matches vite's esbuild peer range (^0.27.0 || ^0.28.0)
Copilot AI review requested due to automatic review settings August 30, 2026 07:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 21 changed files in this pull request and generated 3 comments.

Comment thread src/css/style.css
Comment on lines 11 to +15
body {
margin: 0;
padding: 0;
overflow: hidden;
color: white;
font-family: 'Inter', system-ui, sans-serif;
background: url('/static/images/bg.webp') no-repeat center center;
background-size: cover;
text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
--clock-gap: 2.5rem;
--clock-place-size: 2.5rem;
--clock-place-tracking: 0.15em;
--clock-place-transform: uppercase;
Comment thread src/main.ts
Comment on lines 22 to +26
let periodEl: Element | null
let dateEl: Element | null
let temperatureEl: Element | null
let weatherIconEl: HTMLImageElement | null
let temperatureWrapperEl: Element | null
let weatherEl: Element | null
Comment thread src/style.ts
Comment on lines +3 to +19
export type ClockStyle = 'traditional' | 'modern' | 'minimal'

export const DEFAULT_STYLE: ClockStyle = 'traditional'

const STYLES: readonly string[] = ['traditional', 'modern', 'minimal']

/**
* Normalise a style setting, falling back to the default for anything the app
* does not recognise. Settings are free text at the API level, so an instance
* can hold a value this build has never heard of.
*/
export function resolveStyle(value: string | undefined | null): ClockStyle {
const normalised = value?.trim().toLowerCase()
if (!normalised || !STYLES.includes(normalised)) return DEFAULT_STYLE

return normalised as ClockStyle
}
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.

4 participants