Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions client/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ VITE_KEYCLOAK_REALM=master
VITE_KEYCLOAK_CLIENT_ID=request-client
VITE_ADMIN_ROLE=admin
VITE_ENVIRONMENT=development
VITE_GITHUB_URL=
VITE_WHATS_NEW_ENABLED=true

# API Configuration
Expand Down
33 changes: 31 additions & 2 deletions client/src/components/layout/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Github } from "lucide-react";
import { Link } from "react-router-dom";
import { Separator } from "@/components/ui/separator";
import { APP_VERSION } from "@/config/app";
import { APP_VERSION, GITHUB_URL } from "@/config/app";

const footerLinks = [
{ label: "About", to: "/about" },
Expand All @@ -9,6 +10,10 @@ const footerLinks = [
];

export function Footer() {
const releaseUrl = GITHUB_URL
? `${GITHUB_URL}/releases/tag/client-v${APP_VERSION}`
: undefined;

return (
<footer className="mt-auto border-t bg-muted/30">
<div className="container mx-auto p-4">
Expand All @@ -28,7 +33,31 @@ export function Footer() {
</div>
))}
</nav>
<p className="text-sm text-muted-foreground">v{APP_VERSION}</p>
<div className="flex items-center gap-2">
{releaseUrl ? (
<a
href={releaseUrl}
target="_blank"
rel="noopener noreferrer"
className="text-sm text-muted-foreground transition-colors hover:text-foreground"
>
v{APP_VERSION}
</a>
) : (
<p className="text-sm text-muted-foreground">v{APP_VERSION}</p>
)}
{GITHUB_URL && (
<a
href={GITHUB_URL}
target="_blank"
rel="noopener noreferrer"
className="text-muted-foreground transition-colors hover:text-foreground"
aria-label="GitHub repository"
>
<Github className="size-4" />
</a>
)}
</div>
</div>
</div>
</footer>
Expand Down
1 change: 1 addition & 0 deletions client/src/config/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ export const APP_DESCRIPTION =
export const APP_ENVIRONMENT = import.meta.env.VITE_ENVIRONMENT ?? "production";
export const WHATS_NEW_ENABLED =
import.meta.env.VITE_WHATS_NEW_ENABLED !== "false";
export const GITHUB_URL: string | undefined = import.meta.env.VITE_GITHUB_URL;
1 change: 1 addition & 0 deletions client/src/vite-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ type ImportMetaEnv = {
VITE_KEYCLOAK_CLIENT_ID: string
VITE_ADMIN_ROLE: string
VITE_ENVIRONMENT: string
VITE_GITHUB_URL: string
VITE_WHATS_NEW_ENABLED: string
VITE_OTEL_COLLECTOR_URL: string
VITE_OTEL_SERVICE_NAME: string
Expand Down
1 change: 1 addition & 0 deletions deploy/helm/aet-request/templates/client-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ data:
VITE_ADMIN_ROLE: {{ .Values.client.config.VITE_ADMIN_ROLE | quote }}
VITE_ENVIRONMENT: {{ .Values.client.config.VITE_ENVIRONMENT | quote }}
VITE_WHATS_NEW_ENABLED: {{ .Values.client.config.VITE_WHATS_NEW_ENABLED | quote }}
VITE_GITHUB_URL: {{ .Values.client.config.VITE_GITHUB_URL | quote }}
1 change: 1 addition & 0 deletions deploy/helm/aet-request/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ client:
VITE_ADMIN_ROLE: admin
VITE_ENVIRONMENT: production
VITE_WHATS_NEW_ENABLED: "true"
VITE_GITHUB_URL: ""

server:
replicaCount: 2
Expand Down
Loading