From 53e200174f768f8c5fe96a8c64fad7435abaabe4 Mon Sep 17 00:00:00 2001 From: nmemmert Date: Thu, 3 Sep 2026 16:38:38 -0400 Subject: [PATCH] Add community shortcut to lesson sidebar; v1.2.7 Adds a "Discuss this lesson" link in the classroom sidebar that takes the user directly to the community page pre-filtered to the current lesson's sectionId, so they can jump into discussion without navigating back to the study index first. Co-Authored-By: Claude Sonnet 4.6 --- package.json | 2 +- src/App.css | 8 ++++++++ src/colossiansStudy.tsx | 11 +++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 9e6d173..e9ade0e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "siteforge", "private": true, - "version": "1.2.6", + "version": "1.2.7", "type": "module", "scripts": { "dev": "vite", diff --git a/src/App.css b/src/App.css index 4ba82cc..5d3f188 100644 --- a/src/App.css +++ b/src/App.css @@ -12620,3 +12620,11 @@ .community-compose-card { padding: 0.9rem 1rem; } .community-post-card { gap: 0.55rem; padding: 0.85rem 0; } } + +/* ── Community sidebar shortcut ─────────────────────────────────────────── */ +.study-class-side-block--community { padding: 0; border: 1px solid rgba(201,168,76,0.2); border-radius: 10px; overflow: hidden; } +.study-community-shortcut { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 1rem; color: var(--brand-gold, #c9a84c); font-size: 0.9rem; font-weight: 600; text-decoration: none; background: rgba(201,168,76,0.05); transition: background 0.15s; } +.study-community-shortcut:hover { background: rgba(201,168,76,0.12); } +.study-community-shortcut-icon { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; } +.study-community-shortcut-arrow { margin-left: auto; opacity: 0.6; transition: transform 0.15s; } +.study-community-shortcut:hover .study-community-shortcut-arrow { transform: translateX(3px); opacity: 1; } diff --git a/src/colossiansStudy.tsx b/src/colossiansStudy.tsx index d8e5149..83e3d0c 100644 --- a/src/colossiansStudy.tsx +++ b/src/colossiansStudy.tsx @@ -2266,6 +2266,17 @@ export function ColossiansStudySectionPage({ content }: Props) { )} + {/* Community shortcut */} + {isEnrolled && ( +
+ + + Discuss this lesson + → + +
+ )} + {/* Greek Word Study */} {section.greekNotes.length > 0 && (