Skip to content
Open
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
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
APP_VERSION=dev

OPENAI_API_KEY="YOUR_OPENAI_API_KEY_GOES_HERE"

# Database Environment Variables
Expand Down
8 changes: 8 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,19 @@

logger = logging.getLogger(__name__)

APP_VERSION = os.getenv("APP_VERSION", "dev")

sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
app = Flask(__name__)
app.config["MAX_CONTENT_LENGTH"] = 50 * 1024 * 1024 # 50MB


@app.context_processor
def inject_app_version():
"""Inject APP_VERSION into all templates."""
return {"APP_VERSION": APP_VERSION}


# Initialize Clerk only if not in test mode
if os.getenv("TEST_MODE") == "true":
clerk_sdk = None
Expand Down
16 changes: 16 additions & 0 deletions static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,22 @@ body {
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
}

.nav-version-badge {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
padding: 4px 12px;
font-size: 0.8rem;
font-weight: 500;
border-radius: 999px;
background: rgba(0, 0, 0, 0.01);
border: 1px solid rgba(0, 0, 0, 0.05);
color: #b5b5b5;
letter-spacing: 0.05em;
}

.logo-title {
display: flex;
align-items: center;
Expand Down
19 changes: 12 additions & 7 deletions templates/components/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,16 @@
</span>
<h1>Capstone 2025</h1>
</a>
</div>
<div class="nav-version-badge">
Version: {{ APP_VERSION }}
</div>
<div class="header-actions">
{% if auth and showCreateProjectButton %}
<button id="createProjectBtn" class="btn btn-primary create-project-cta">Start a New Project</button>
{% endif %}
<div id="clerk-user-button"></div>
</div>
</header>

<div class="header-actions">
{% if auth and showCreateProjectButton %}
<button id="createProjectBtn" class="btn btn-primary create-project-cta">Start a New Project</button>
{% endif %}
<div id="clerk-user-button"></div>
</div>
</header>