Skip to content

Commit f77d603

Browse files
committed
Show build version as plain footer text in sidebar
1 parent 913f9fa commit f77d603

4 files changed

Lines changed: 9 additions & 27 deletions

File tree

functions/_lib/buildInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export const APP_VERSION = "0.0.0";
2-
export const APP_COMMIT = "6d0ed5c0";
2+
export const APP_COMMIT = "913f9fa1";
33
export const APP_BUILD_LABEL = `v${APP_VERSION}+${APP_COMMIT}`;

src/components/Sidebar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2032,9 +2032,6 @@ export function Sidebar() {
20322032
</div>
20332033
<details className="compact-details">
20342034
<summary>Credits & Attribution</summary>
2035-
<p className="field-help subtle-note">
2036-
Build: {APP_BUILD_LABEL} ({isCurrentTestEnvironment() ? "test" : "production"})
2037-
</p>
20382035
<p className="field-help subtle-note">
20392036
Inspired by{" "}
20402037
<a href={PRIMARY_ATTRIBUTION.projectUrl} rel="noreferrer" target="_blank">
@@ -2048,6 +2045,9 @@ export function Sidebar() {
20482045
</details>
20492046
</details>
20502047
</section>
2048+
<footer className="sidebar-footer">
2049+
Build: {APP_BUILD_LABEL} ({isCurrentTestEnvironment() ? "test" : "production"})
2050+
</footer>
20512051

20522052
{profilePopupUser ? (
20532053
<ModalOverlay aria-label="User Profile" onClose={() => setProfilePopupUser(null)} tier="raised">

src/index.css

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -186,31 +186,13 @@ input {
186186
}
187187

188188
.sidebar-footer {
189-
border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
190-
background: color-mix(in srgb, var(--surface-2) 92%, transparent);
191-
border-radius: 12px;
192-
padding: 10px 12px;
193-
font-size: 0.78rem;
194-
}
195-
196-
.sidebar-footer p {
197-
margin: 0 0 4px;
189+
margin-top: 2px;
190+
padding: 0 2px;
191+
font-size: 0.74rem;
192+
line-height: 1.35;
198193
color: var(--muted);
199194
}
200195

201-
.sidebar-footer p:last-child {
202-
margin-bottom: 0;
203-
}
204-
205-
.sidebar-footer a {
206-
color: var(--accent);
207-
text-decoration: none;
208-
}
209-
210-
.sidebar-footer a:hover {
211-
text-decoration: underline;
212-
}
213-
214196
.sidebar-panel > header {
215197
display: flex;
216198
flex-direction: column;

src/lib/buildInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export const APP_VERSION = "0.0.0";
2-
export const APP_COMMIT = "6d0ed5c0";
2+
export const APP_COMMIT = "913f9fa1";
33
export const APP_BUILD_LABEL = `v${APP_VERSION}+${APP_COMMIT}`;

0 commit comments

Comments
 (0)