feat(web): show build version in sidebar - #313
Merged
Merged
Conversation
Share release build metadata between tq and the web binary, inject it into the embedded frontend, and render the version at the bottom of the sidebar. Preserve dev fallbacks, expose known commits as hover text, and cover the metadata path with Go and frontend tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
サイドバーへのバージョン表示
Summary
Web UI のサイドバー最下部で、実行中の Tasq リリースバージョンを確認できるようにします。CLI と Web が同じ build metadata を参照し、開発ビルドでは
devにフォールバックします。主な変更点:
internal/buildinfoを追加やったこと
v0.1.0形式で表示し、既知の commit のみ hover text に表示devを表示tq versionを共有 build metadata source へ移行動作確認
go test ./...npm test(27 files / 148 tests)npm run typechecknpm run buildtq versionの出力確認git diff --checkレビュー & 動作確認 チェックリスト
dev、unknown commit では hover text が出ないこと推奨テスト計画:
devが表示されることを確認するv0.1.0形式と commit hover text を確認するその他気になることや相談ごと
Sidebar の title 表示・非表示と responsive 配置は自動 UI テストではなく、既存 Storybook と production build で確認する構成です。