Skip to content

feat: Added support for extra links and rewrote the cats template#399

Merged
tarampampam merged 5 commits intomasterfrom
feat/extra-links
May 4, 2026
Merged

feat: Added support for extra links and rewrote the cats template#399
tarampampam merged 5 commits intomasterfrom
feat/extra-links

Conversation

@tarampampam
Copy link
Copy Markdown
Owner

@tarampampam tarampampam commented May 4, 2026

Summary

Implements #343 - adds a new --add-link flag (and ADD_LINK env var) that lets users display labeled links (status page, support contact, privacy policy, etc.) on all error pages.

Alongside the new feature, the Helm chart's config.addCode field was refactored from a raw string to an array of objects for consistency with the new config.addLink field. This is a breaking change for Helm chart users who already use config.addCode.

Additionally, I added the homepage link to all built-in templates.

The cats template has been rewritten

light dark

⚠️ Breaking change - Helm chart: config.addCode format

This affects you only if you use the Helm chart AND have config.addCode set in your values.

Before (raw string)

config:
  addCode: |
    499=Client Closed Request|The client closed the connection before the server finished responding.
    4**=Client Error|Something went wrong on the client side.

After (array of objects)

config:
  addCode:
    - code: "499"
      message: "Client Closed Request"
      description: "The client closed the connection before the server finished responding"
    - code: "4**"
      message: "Client Error"
      description: "Something went wrong on the client side"

Each item must have code (required) and message (required); description is optional. All values are strings. The chart serializes the array to the CODE=MESSAGE|DESCRIPTION wire format that the application expects - you do not need to know the internal format.

New Helm field: config.addLink

config:
  addLink:
    - {label: "Status Page", url: "https://status.example.com"}
    - {label: "Contact Support", url: "https://example.com/contact"}
    - {label: "Privacy Policy", url: "https://example.com/privacy"}

@tarampampam tarampampam linked an issue May 4, 2026 that may be closed by this pull request
1 task
@tarampampam tarampampam self-assigned this May 4, 2026
@tarampampam tarampampam added the type:feature PR that introduces a new feature label May 4, 2026
@tarampampam tarampampam changed the title Feat/extra links feat: Added support for extra links and rewrote the cats template May 4, 2026
@tarampampam tarampampam marked this pull request as ready for review May 4, 2026 19:53
@tarampampam tarampampam merged commit 2537440 into master May 4, 2026
13 checks passed
@tarampampam tarampampam deleted the feat/extra-links branch May 4, 2026 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:feature PR that introduces a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add additional links to the pages

1 participant