Skip to content

Link Settings' Livebook version to GitHub release#3147

Merged
jonatanklosko merged 5 commits intolivebook-dev:mainfrom
dideler:patch-1
Mar 5, 2026
Merged

Link Settings' Livebook version to GitHub release#3147
jonatanklosko merged 5 commits intolivebook-dev:mainfrom
dideler:patch-1

Conversation

@dideler
Copy link
Contributor

@dideler dideler commented Mar 5, 2026

Was running Livebook via the macOS app and it updated to the latest version. I wanted an easy way to see the changes from within Livebook, and thought the Livebook version can link to the GitHub Release which contains a changelog.

Note this link will 404 when running Livebook from the main branch as there is no GitHub Release for unreleased dev versions. I think that's fine though.

@CLAassistant
Copy link

CLAassistant commented Mar 5, 2026

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@jonatanklosko jonatanklosko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me! I dropped one minor comment. Also, please sign the CLA, and then it's good to merge.

</.labeled_text>
<.labeled_text label="Livebook">
v{Livebook.Config.app_version()}
<% release_info = Livebook.Config.github_release_info() %>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's move this to an assign @release_info that we can set on mount.

It's best to avoid defining variables like this in HEEx. In this case it's actually fine, but it's simpler to avoid it altogether :)

<.labeled_text label="Livebook">
v{Livebook.Config.app_version()}
<a href={"https://github.com/#{@release_info.repo}/releases/tag/v#{@release_info.version}"}
class="underline hover:no-underline"
Copy link
Contributor Author

@dideler dideler Mar 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note the styling is to have the link be underlined by default and no underline on hover. This is consistent with other links on the page (see L57-59), though personally I find it looks a bit out of place.

image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree it looks weird, I think mostly because it's not a link within text paragraph, but standalone. I changed it to show an external link icon instead (and did the same for the other one you mentioned):

image

Copy link
Member

@jonatanklosko jonatanklosko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@jonatanklosko jonatanklosko merged commit 748588f into livebook-dev:main Mar 5, 2026
2 of 3 checks passed
@dideler dideler deleted the patch-1 branch March 6, 2026 15:33
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.

3 participants