added support for manual sleep logging
Build and Push Docker Image / build-and-push (pull_request) Successful in 1m6s
Python Code Quality / python-code-quality (pull_request) Successful in 11s
Python Test / python-test (pull_request) Successful in 18s

This commit is contained in:
Brian Bjarke Jensen
2025-11-12 15:23:51 +01:00
parent 49242498e0
commit 1e93fb8783
7 changed files with 404 additions and 2 deletions
+8 -1
View File
@@ -517,7 +517,10 @@
</div>
<div class="list-container">
<h2>Recent Sleep Sessions</h2>
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;">
<h2 style="margin: 0;">Recent Sleep Sessions</h2>
<button class="button" onclick="addManualSleep()" style="padding: 8px 16px; font-size: 14px;"> Add Manual Entry</button>
</div>
<div class="sleep-list">
${filteredSleeps
.slice(0, 50)
@@ -1058,6 +1061,10 @@
`;
}
function addManualSleep() {
window.location.href = `/log-sleep.html`;
}
async function logout() {
try {
await fetch("/api/logout", {