-
Notifications
You must be signed in to change notification settings - Fork 6
Enhance container management and UI with version info and fixes #464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
runleveldev
merged 4 commits into
main
from
issue-449-453-358-restart-confirm-jobs-back-version-footer
Sep 4, 2026
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
69f8f72
Never restart a container on save without explicit confirmation (#449)
cmyers-mieweb d139833
Fix Jobs back button landing on unhandled /jobs route (#453)
cmyers-mieweb b38afeb
Add version footer and bug report link to the React SPA (#358)
cmyers-mieweb e3cb7ad
Bake the app version into the client build; auto-enable restart on re…
cmyers-mieweb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| import { useLocation } from 'react-router'; | ||
| import { Bug } from 'lucide-react'; | ||
| import { useSession } from '@/lib/auth'; | ||
|
|
||
| const REPO_URL = 'https://github.com/mieweb/opensource-server'; | ||
|
|
||
| // Baked in at build time (vite define): the packaging build writes the release | ||
| // version into package.json before `vite build`; dev builds keep 0.0.0. | ||
| const VERSION = __APP_VERSION__ === '0.0.0' ? null : __APP_VERSION__; | ||
|
|
||
| /** | ||
| * App-wide footer showing the running version (linked to the GitHub releases) | ||
| * and a "Report a bug" link that pre-fills the GitHub bug-report template with | ||
| * the current URL, username, and version. | ||
| */ | ||
| export function AppFooter() { | ||
| const { data: session } = useSession(); | ||
| const location = useLocation(); | ||
|
|
||
| const params = new URLSearchParams({ template: 'bug_report.yml', url: location.pathname }); | ||
| if (session?.user) params.set('username', session.user); | ||
| params.set('version', VERSION ?? 'dev'); | ||
| const bugReportUrl = `${REPO_URL}/issues/new?${params.toString()}`; | ||
|
|
||
| return ( | ||
| <footer className="flex flex-wrap items-center justify-center gap-x-4 gap-y-1 border-t border-(--color-border,#e5e7eb) px-4 py-2 text-xs text-(--color-muted,#6b7280)"> | ||
| {VERSION ? ( | ||
| <a | ||
| href={`${REPO_URL}/releases`} | ||
| target="_blank" | ||
| rel="noopener noreferrer" | ||
| className="hover:underline" | ||
| aria-label={`Version ${VERSION} — view releases on GitHub`} | ||
| > | ||
| Version {VERSION} | ||
| </a> | ||
| ) : ( | ||
| <span>Development build</span> | ||
| )} | ||
| <a | ||
| href={bugReportUrl} | ||
| target="_blank" | ||
| rel="noopener noreferrer" | ||
| className="inline-flex items-center gap-1 hover:underline" | ||
| aria-label="Report a bug on GitHub" | ||
| > | ||
| <Bug className="size-3.5" aria-hidden="true" /> | ||
| <span>Report a bug</span> | ||
| </a> | ||
| </footer> | ||
| ); | ||
| } |
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,4 @@ | ||
| /// <reference types="vite/client" /> | ||
|
|
||
| /** App version baked in at build time (vite define); 0.0.0 in dev builds. */ | ||
| declare const __APP_VERSION__: string; |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.