Skip to content

Task 020: Extract shared favicon badge helper - #17

Merged
Igloczek merged 3 commits into
masterfrom
task/020-shared-favicon-helper
Jun 30, 2026
Merged

Igloczek merged 3 commits into
masterfrom
task/020-shared-favicon-helper

Conversation

@Igloczek

@Igloczek Igloczek commented Jun 30, 2026 •

Copy link
Copy Markdown
Collaborator

Implements tasks/020-shared-favicon-helper.md from the ponytail audit backlog.

Goal

One favico.js wrapper used by the socket mixin and StatusPage instead of duplicate init code.

Scope

  • Add src/util/favicon-badge.ts (or similar) exporting init/update helpers.
  • Refactor src/mixins/socket.ts and src/pages/StatusPage.vue to use it.
  • Keep animation: "none" and existing badge count behavior.

Acceptance criteria

  • No duplicate new Favico({ animation: "none" }) blocks in mixin and StatusPage.
  • Dashboard favicon badge updates on monitor status changes.
  • Public status page favicon badge still works.
  • bun run lint passes.
  • bun run build:frontend succeeds.

Depends on

Nothing.

Verification

bun run lint
bun run build:frontend
rg "new Favico" src

Audit reference

Finding #27 — duplicate favicon logic.

@Igloczek

Copy link
Copy Markdown
Collaborator Author

/ponytail-review

Lean already. Ship.

4 files changed, 69 insertions(+), 48 deletions(-)

@Igloczek
Igloczek force-pushed the task/020-shared-favicon-helper branch from 5ae1f88 to 12e67f1 Compare June 30, 2026 12:03
Igloczek added 3 commits June 30, 2026 14:23
Consolidate duplicate Favico initialization from the socket mixin and
StatusPage into src/util/favicon-badge.ts with shared init/update helpers.
Keeps animation: "none" and existing badge count behavior.
@Igloczek
Igloczek force-pushed the task/020-shared-favicon-helper branch from 12e67f1 to 52bc0b3 Compare June 30, 2026 12:23
@Igloczek
Igloczek merged commit 76215a4 into master Jun 30, 2026
1 check passed
@Igloczek
Igloczek deleted the task/020-shared-favicon-helper branch June 30, 2026 12:58
Igloczek added a commit that referenced this pull request Aug 8, 2026
Task 020: Extract shared favicon badge helper
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.

1 participant