Skip to content

feat(webui): signal the development UI-issue button through a meta tag - #178

Merged
Bugs5382 merged 1 commit into
mainfrom
feat/163-ui-issue-meta
Oct 7, 2026
Merged

Bugs5382 merged 1 commit into
mainfrom
feat/163-ui-issue-meta

Conversation

@Bugs5382

@Bugs5382 Bugs5382 commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

What and why

The web console is getting a development-only "Copy for UI issue" button (CryptOS-PKI/cryptos-web#163). It is compiled in only for development builds, and it shows only when the manager also says so, so a dev build pointed at a normal manager never shows it.

This adds that runtime signal. webui.Handler now takes webui.Options{DevUIIssueCopy bool}. When CRYPTOS_DEV_UI_ISSUE_COPY=true is set, the manager adds <meta name="cryptos-dev-ui-issue-copy" content="true"> to the served index.html once at startup and logs that it is on. Otherwise the page is unchanged.

Testing

  • TestHandlerInjectsDevUIIssueMetaOnlyWhenEnabled covers the on and off cases through ServeHTTP.
  • task ci passes.

Docs

The README documents CRYPTOS_DEV_UI_ISSUE_COPY.

Refs CryptOS-PKI/cryptos-web#163

The manager now reads CRYPTOS_DEV_UI_ISSUE_COPY and, when set to
"true", injects <meta name="cryptos-dev-ui-issue-copy" content="true">
into the served index page. A development console build uses the tag
to decide whether to show its "Copy for UI issue" button; a release
build has no such button regardless of this setting.

Refs CryptOS-PKI/cryptos-web#163

Signed-off-by: Bugs5382 <12115015+Bugs5382@users.noreply.github.com>
@Bugs5382 Bugs5382 added this to the v0.1.0 milestone Oct 7, 2026
@Bugs5382 Bugs5382 added the enhancement New feature (feat). Minor version bump. label Oct 7, 2026
@Bugs5382 Bugs5382 self-assigned this Oct 7, 2026
@Bugs5382
Bugs5382 merged commit 8a87a1f into main Oct 7, 2026
11 of 12 checks passed
@Bugs5382
Bugs5382 deleted the feat/163-ui-issue-meta branch October 7, 2026 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature (feat). Minor version bump.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant