170 Commits

Author SHA1 Message Date
João Vitória Silva
077df2ef9a Update bare-metal guide and mkdocs navigation
Added a blank line for readability in the bare-metal installation guide and updated the navigation title in mkdocs.yml to 'Bare-Metal installation guide' for consistency.
2025-12-22 11:01:25 +00:00
João Vitória Silva
4c33f8d60a Merge branch 'pr/447' into feature-pkce-oauth-state 2025-12-22 10:59:09 +00:00
João Vitória Silva
6ad6e5a1e0 Remove MFA backup codes API tests and update docs
Deleted the MFA backup codes API router test file. Expanded the authentication developer guide to document MFA backup code usage, format, error responses, and related endpoints for status and regeneration.
2025-12-22 10:42:00 +00:00
João Vitória Silva
0d89612f5f Add demo environment handling for session endpoints
Session retrieval endpoints now return empty lists and log access attempts when ENVIRONMENT is set to 'demo'. Also, updated session cookie security to treat 'demo' like 'production', and clarified ENVIRONMENT options in documentation. Unused imports were removed from users/user/router.py.
2025-12-20 11:00:02 +00:00
FutureCow
563f55211b Add update instructions for Endurain service
Added instructions for updating to a new version of Endurain, including steps for stopping the service, removing old files, downloading the latest release, building the frontend, setting up the backend, and starting the service.
2025-12-20 10:50:27 +01:00
João Vitória Silva
dc7990875c Update CSP and expand authentication documentation
Enhanced the Content-Security-Policy header to allow inline images, styles, scripts, and OpenStreetMap tiles to allow frontend static serving from FastAPI.
Major expansion of authentication documentation: clarified OAuth 2.1 hybrid token storage, CSRF protection, refresh token rotation, session management, progressive account lockout, and best practices for web and mobile clients.
2025-12-18 16:28:33 +00:00
João Vitória Silva
20b1149d3d Refactor auth endpoints to use /auth/* paths
Updated backend and frontend to use '/auth/login', '/auth/refresh', '/auth/mfa/verify', and '/auth/logout' endpoints instead of legacy paths. Adjusted CSRF middleware, route prefixes, tests, documentation, and service utilities to match the new endpoint structure for improved clarity and consistency.
2025-12-18 10:40:59 +00:00
João Vitória Silva
f6e06fb3e6 Add session idle and absolute timeout enforcement
Implements optional session idle and absolute timeout logic, including new environment variables for configuration. Adds last_activity_at to sessions, enforces timeouts on token refresh, and introduces a scheduler job to clean up idle sessions. Also introduces progressive lockout for failed logins and updates documentation and examples accordingly.
2025-12-18 10:28:22 +00:00
João Vitória Silva
fd7542c0cf Add PKCE and server-side OAuth state for mobile SSO
Implements database-backed OAuth state management to support secure PKCE flows for mobile SSO. Adds new models, CRUD, and scheduled cleanup for OAuth state, updates identity provider login and callback flows to use server-side state, and introduces a token exchange endpoint for mobile clients. Updates session and rate limiting logic, and maintains backward compatibility for web clients using cookie-based state.
2025-12-16 14:02:31 +00:00
João Vitória Silva
39a01eca05 Add mobile SSO implementation guide to authentication docs
Expanded the authentication documentation with a detailed step-by-step guide for implementing OAuth/SSO in mobile applications using WebView. The new section covers prerequisites, provider discovery, WebView handling, token extraction, secure storage, authenticated API requests, and token refresh logic.
2025-12-16 11:56:14 +00:00
João Vitória Silva
b9d21801a0 Update IdP API routes and add PocketID icon support
Updated authentication documentation to reflect new public and profile-based identity provider API routes. Also added support for displaying the PocketID icon in the identity provider list component.
2025-12-16 11:33:49 +00:00
João Vitória Silva
5aab1e7e02 Add demo environment information to docs and README
Introduced details about the public demo environment, including URL, credentials, and reset schedule, to the README, and documentation index. This helps users try Endurain before installation and clarifies demo limitations.
2025-12-15 22:24:02 +00:00
João Vitória Silva
bddc3d44cf Merge branch 'pr/443' into pre-release 2025-12-15 22:09:23 +00:00
João Vitória Silva
c445c0c093 Revise and expand SSO documentation, update nav
Replaces the old 'Single-sign-on' doc with a new, comprehensive 'single-sign-on.md' covering SSO setup for multiple providers, troubleshooting, and security. Updates mkdocs.yml to reference the new file, enhance navigation, and enable additional markdown extensions and icons for improved documentation formatting.
2025-12-15 22:09:09 +00:00
João Vitória Silva
26e08007ca Refactor developer guide into modular sections
Split the monolithic developer-guide.md into three focused documents: setup-dev-env.md, authentication.md, and supported-types.md. Updated mkdocs.yml navigation to reflect the new structure, improving documentation clarity and maintainability.
2025-12-15 21:48:55 +00:00
SiEffen
f513f0370f Create Single-sign-on
This is a set of documentation instructions to set up SSO using either Pocket ID or Tailscale as the SSO provider. It provides the steps needed within the provider as well as how to complete the "Identity Providers" custom form within Endurain.
2025-12-15 15:58:00 +00:00
João Vitória Silva
b0bc916c44 Update project links to new GitHub organization
Replaced all references to 'joaovitoriasilva/endurain' with 'endurain-project/endurain' across documentation, templates, Docker examples, and code. Updated badge URLs, Docker image paths, and author email in backend metadata to reflect the new organization. This ensures consistency and correct attribution following the repository migration.
2025-12-12 14:08:19 +00:00
João Vitória Silva
3e2c315917 Add project attribution footer to README and docs
Appended a centered footer to both README.md and docs/index.md, highlighting the project's origin and its association with the Endurain ecosystem.
2025-12-12 13:07:32 +00:00
João Vitória Silva
4d828cb02b Bump version to 0.16.1, update user agent strings, fix for BMI
Updated backend and frontend version numbers to 0.16.1. User-Agent headers in backend now use the API version from config. Improved migration guide wording. Added placeholders to weight input fields and set their default values to null in HealthWeightAddEditModalComponent. #438
2025-12-11 10:52:17 +00:00
João Vitória Silva
25efb94c51 Merge branch 'master' of https://github.com/joaovitoriasilva/endurain 2025-12-10 22:05:38 +00:00
João Vitória Silva
0f41d06fc7 Remove unused dependencies from install guide
Eliminated default-libmysqlclient-dev and pkg-config from the bare-metal installation instructions for Endurain on Debian, as they are no longer required.
2025-12-10 22:05:26 +00:00
João Vitória Silva
01dcf2cd7a Merge pull request #419 from JustABoringUser/feature/npm-endurain-example-config
Added Nginx Proxy Manager config example for Endurain
2025-12-10 22:04:19 +00:00
João Vitória Silva
6a5e54fc16 Fix issue on developer guides doc 2025-12-10 22:03:38 +00:00
João Vitória Silva
38e3f295fc Update reverse proxy setup in getting started guide
Expanded the documentation to include installation and configuration steps for both Caddy and Nginx Proxy Manager as reverse proxies. The guide now provides clearer separation of Docker, Caddy, and Nginx Proxy Manager installation steps, and includes an example Nginx Proxy Manager config inline. Removed the standalone npm_endurain.conf file, as its contents are now integrated into the documentation.
2025-12-09 22:22:29 +00:00
João Vitória Silva
e829153ad3 Support SMTP_PASSWORD as Docker secret
Updated the application to read SMTP_PASSWORD using the read_secret method, enabling support for Docker secrets via SMTP_PASSWORD_FILE. Documentation was updated to reflect this new option for configuring SMTP credentials.
2025-12-08 22:52:35 +00:00
João Vitória Silva
ce3a05f911 Update docs and roadmap for features and trademark
Updated trademark notice to reflect registered status. Revised ROADMAP.md to replace multiple security features with passkey support. Updated docs/index.md to reflect new logging features, sign-up options, SSO support, and linked to ROADMAP.md for planned features.
2025-12-08 16:02:56 +00:00
João Vitória Silva
f43c65c9a2 Update gallery screenshots and documentation
Replaced login, reset password modal, and sign-up screenshots in the gallery. Updated gallery.md to specify that images should be 1000x1000 pixels. Also updated the login asset in the frontend.
2025-12-08 15:41:50 +00:00
João Vitória Silva
a0a137e59a Update and expand documentation screenshots and gallery
Added new screenshots for health, settings, and authentication pages, updated several existing images, and removed obsolete ones. The gallery documentation was updated to reflect the new and reorganized screenshots, providing a more comprehensive and up-to-date visual overview of the application's UI. Minor formatting cleanups were also made in the developer and getting started guides.
2025-12-08 15:11:06 +00:00
João Vitória Silva
f39eacfde5 Move sleep scoring doc to features section
Added new 'Features' section in docs. Renamed 'sleep-scoring.md' from 'getting-started' to 'features' and updated mkdocs.yml navigation to reflect this change.
2025-12-08 14:45:31 +00:00
João Vitória Silva
d65363f07e Add resting heart rate and skin temp deviation to sleep modal
Added fields for resting heart rate and average skin temperature deviation to the HealthSleepAddEditModalComponent, including support in form data, submission logic, and i18n translations for both English and Portuguese. Updated documentation to mention DB_HOST as a required environment variable. #426
2025-12-07 15:28:10 +00:00
João Vitória Silva
7d62434da2 Add sleep scoring system and refactor health sleep fields
Introduces a comprehensive sleep scoring module with detailed calculation logic and integration into health sleep creation and editing endpoints. Refactors HealthSleep model and schema to use integer types for heart rate, SpO2, respiration, and sleep stress fields. Updates related tests and documentation to reflect the new scoring system and data type changes.
2025-12-07 15:21:25 +00:00
João Vitória Silva
caba01be97 Merge pull request #428 from johanngrobe/docs
add bare-metal docs
2025-12-04 10:54:02 +00:00
Johann Grobe
256c176133 adjustments to bare-metal docs 2025-12-03 23:25:28 +01:00
João Vitória Silva
a6a53e513a Update config paths and docs for environment variables
Changed DATA_DIR to use BACKEND_DIR for consistency in config.py and removed unused import in fit/utils.py. Added documentation for FRONTEND_DIR, BACKEND_DIR, DATA_DIR, and LOGS_DIR environment variables in advanced-started.md to clarify their usage.
2025-12-03 16:18:13 +00:00
Johann Grobe
c88bbaab6c add bare-metal docs 2025-11-30 13:47:08 +01:00
João Vitória Silva
a27e9ec701 Merge branch 'master' into 0.16.0 2025-11-19 12:27:34 +00:00
João Vitória Silva
a5906171dd Add support for Inline Skating activity type
Introduces 'Inline skating' as a new activity type (ID 45) across backend and frontend. Updates schemas, utility mappings, i18n files, UI components, and search functionality to handle inline skating activities. #411
2025-11-17 22:33:56 +00:00
João Vitória Silva
cef1d45a30 Add support for snow shoeing activity type (44)
Introduces 'Snow shoeing' as a new activity type (ID 44) across backend and frontend. Updates schema, activity mappings, goal calculations, developer documentation, i18n files, activity utilities, and UI components to support the new activity. Ensures snow shoeing is selectable, filterable, and properly displayed throughout the application. #411
2025-11-17 22:07:40 +00:00
João Vitória Silva
98bc4fefa9 Add Sailing activity type support across app
Introduces Sailing (type 43) as a supported activity throughout the backend and frontend. Updates activity mappings, i18n files, UI dropdowns, and utility functions to include Sailing. Adjusts search and filtering logic to handle the new activity type and corrects some error message keys in SearchView. #411
2025-11-17 21:54:04 +00:00
João Vitória Silva
2e19ec19b0 Add kayaking activity type (42) across app
Introduces kayaking as a new activity type (ID 42) in backend and frontend. Updates activity mappings, i18n labels, UI components, and search logic to support kayaking alongside rowing where appropriate. #411
2025-11-17 21:34:33 +00:00
João Vitória Silva
78c8e02bc1 Merge branch 'master' into 0.16.0 2025-11-15 23:01:25 +00:00
João Vitória Silva
dc3b3017d2 Add Cardio training activity type support
Introduces 'Cardio training' as a new activity type (ID 41) across backend and frontend. Updates activity mappings, enums, goal logic, UI components, and i18n files to support the new type. Also fixes goal list initialization in SettingsUserGoals.vue.
2025-11-14 22:16:36 +00:00
João Vitória Silva
ec44a4473f Add Slovenian language support and bump version to 0.15.7
Introduces Slovenian (SL) as a supported language across backend and frontend, including language enum, language switchers, and i18n resources. Updates documentation to credit the contributor, and increments version numbers in backend and frontend to 0.15.7.
2025-11-14 21:45:20 +00:00
João Vitória Silva
33564acee3 Fixed typo on README and docs index 2025-11-03 16:41:53 +00:00
João Vitória Silva
c1cbaed4f4 Merge branch 'master' into 0.16.0 2025-10-31 16:33:08 +00:00
João Vitória Silva
d3e412604b Add treadmill sport type & bump version 2025-10-31 11:56:11 +00:00
João Vitória Silva
687d7c6fd7 Merge branch 'master' into backend-authlib-support 2025-10-31 11:35:49 +00:00
João Vitória Silva
637edb33d0 Removed unnecessary line on docs 2025-10-30 16:23:35 +00:00
João Vitória Silva
9183c42d5b Moved docs to use material theme 2025-10-30 15:56:54 +00:00
João Vitória Silva
3809918938 Add trademark badge to documentation index
A trademark badge linking to the TRADEMARK.md file was added to the docs index page to highlight trademark information for Endurain.
2025-10-30 12:55:08 +00:00