Skip to content

chore: remove compiled UI assets, build at release time#2

Merged
intel352 merged 2 commits intomainfrom
chore/remove-compiled-assets
Feb 24, 2026
Merged

chore: remove compiled UI assets, build at release time#2
intel352 merged 2 commits intomainfrom
chore/remove-compiled-assets

Conversation

@intel352
Copy link
Contributor

Summary

  • Adds .gitignore to stop tracking compiled UI assets in internal/ui_dist/ (keeps a placeholder index.html for //go:embed compatibility during dev builds)
  • Fixes Makefile ui target to output to internal/ui_dist/ instead of ui_dist/ at repo root
  • Updates release workflow to build the admin UI from source (clone workflow repo, npm ci && vite build) before Go compilation, using GH_TOKEN for private repo access
  • Removes obsolete ui_dist copy from install target since assets are embedded in the binary

Test plan

  • Verify go build ./... succeeds with the placeholder index.html (no full UI build needed)
  • Verify make ui builds the UI into internal/ui_dist/
  • Verify release workflow builds UI before Go binaries on tag push
  • Confirm GH_TOKEN secret is configured in repo settings for CI access to GoCodeAlone/workflow

🤖 Generated with Claude Code

Compiled UI assets should not be tracked in git. This change:
- Adds .gitignore to exclude internal/ui_dist/* (keeping placeholder index.html)
- Fixes Makefile ui target to output to internal/ui_dist/ (not repo root)
- Updates release workflow to build UI from source before Go compilation
- Removes stale ui_dist copy from install target (assets are embedded)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings February 24, 2026 23:24
Copy link

Copilot AI left a comment

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 stops committing compiled admin UI build artifacts and instead builds the UI during release, keeping only a lightweight placeholder HTML file in the repo to satisfy //go:embed during development builds.

Changes:

  • Adds .gitignore rules to ignore compiled UI assets under internal/ui_dist/ while keeping a tracked placeholder index.html.
  • Updates Makefile to build UI assets into internal/ui_dist/ and removes copying ui_dist/ during install.
  • Updates the release workflow to build the admin UI from the GoCodeAlone/workflow repo before compiling Go binaries.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
internal/ui_dist/index.html Replaces placeholder HTML with a minimal page used for dev builds/embedding.
Makefile Removes UI asset copying from install and changes ui target output to internal/ui_dist/.
.gitignore Ignores compiled UI artifacts under internal/ui_dist/ while keeping a tracked placeholder file.
.github/workflows/release.yml Builds the UI during releases prior to Go compilation.
Comments suppressed due to low confidence (3)

internal/ui_dist/index.html:4

  • internal/ui_dist/index.html is missing a closing </body> tag, which makes the placeholder HTML invalid. Consider adding </body> (and optionally a minimal <head>/charset) so opening the placeholder in a browser renders consistently.
<!DOCTYPE html>
<html>
<body>Run 'make ui' to build admin UI</body>
</html>

Makefile:23

  • The ui target clones via SSH (git@github.com:...), which will fail for contributors who don't have an SSH key configured. Consider switching to an HTTPS clone (optionally supporting a GH_TOKEN/GITHUB_TOKEN env var for private access) to make make ui work in more environments.
	cd /tmp && rm -rf workflow-ui-build && git clone --depth 1 git@github.com:GoCodeAlone/workflow.git workflow-ui-build
	cd /tmp/workflow-ui-build/ui && npm ci && npx vite build

Makefile:24

  • This target now writes built UI assets to internal/ui_dist, but the repo documentation still refers to ui_dist/ at the repo root as the built UI directory. Please update the docs accordingly to avoid confusing contributors about where UI assets live and how //go:embed picks them up.
	rm -rf internal/ui_dist && cp -r /tmp/workflow-ui-build/ui/dist internal/ui_dist

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

No GH_TOKEN secret needed — GoCodeAlone/workflow is a public repo.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@intel352 intel352 merged commit 0722b51 into main Feb 24, 2026
7 checks passed
@intel352 intel352 deleted the chore/remove-compiled-assets branch February 24, 2026 23:39
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.

2 participants