Skip to content

feat(alerts): position backgrounds independently of the card - #339

Merged
egdev6 merged 2 commits into
mainfrom
feat/alert-background-position
Nov 25, 2026
Merged

egdev6 merged 2 commits into
mainfrom
feat/alert-background-position

Conversation

@egdev6

@egdev6 egdev6 commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add independent bgX/bgY offsets for image and video backgrounds in mixed alerts, without moving the card.
  • Add Posición del fondo sliders in the editor with persistence and preview support. Zero defaults retain the current centered layout.
  • Document pixel ranges and direction in the English/Spanish README, status documentation and MCP help. Intended release: 0.21.0.

Type

  • New feature (type:feature)

Changes

Area Change
Alert model and configuration schema Optional numeric background offsets, default 0, X ±1920 / Y ±1080.
Overlay renderer Translate only the mixed background wrapper; old payloads without the fields remain centered.
React editor/types Independent X/Y controls, saved and reloaded without altering card offsets.
Tests API round-trip, defaults, ranges/rejected-write preservation, variation reset, command/custom compatibility, actual image/video geometry and panel save/reload.
Docs and MCP Explain the two independent positioning controls.

Validation

  • Focused checks: 35 passed, zero failures/skips.
  • Test-first evidence: the new tests failed before implementation (including 0 px displacement instead of 120 px), then passed.
  • App build and TypeScript passed.
  • Full local suite: 3356 total, 3354 passed, 0 failed, 2 skipped.
  • Independent isolated verification: 26/26 passed, zero skips; static review found no blockers. Timer forwarding was checked statically.
  • Parent spot check: 2/2 plus git diff --check.
  • Differential check: existing command/custom output is unchanged across card/media/mixed layouts, excluding only the requested new fields and nondeterministic UUID/timestamp.
  • Documentation and configuration are updated when needed.

Verification history: an initial independent attempt failed environment preparation and produced no valid isolated proof. A fresh, explicitly authorized attempt prepared the correct isolated environment and passed. This is not recorded as a product regression or a passing initial attempt.

Scope and risk

Risk: item 3 — the appearance model is shared with command/custom/timer alerts. Independent verification completed without blockers; existing behavior has focused and differential coverage.

Only feature source, tests and documentation are included. Unrelated local design/desktop changes and live configuration are excluded. No merge or release is performed.

Linked issue

Closes #338

@egdev6 egdev6 added the type:feature New feature or enhancement label Nov 25, 2026
Fence each explicit navigation and reload with a document marker and the requested URL before checking readiness. Wait for the Design tab itself instead of any tab. Preserve every background geometry, card independence and persistence assertion. Reproduced stale-document acceptance with deferred CDP navigation; the corrected test and full covered suite pass.
@egdev6
egdev6 merged commit 885b2fe into main Nov 25, 2026
5 checks passed
@egdev6
egdev6 deleted the feat/alert-background-position branch November 25, 2026 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:feature New feature or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(alerts): position image and video backgrounds independently

1 participant