From fa6d88a7687572b3ba119f753dd6485c66cc76b6 Mon Sep 17 00:00:00 2001 From: Kolkman Date: Wed, 26 Aug 2026 22:07:08 +0200 Subject: [PATCH] Download links for the plugin --- VIBE/CHAT_LOG.md | 12 ++++++++++++ VIBE/PROMPTS.md | 2 ++ XPI/signed/{LinkLog.xpi => LinkLog-0.1.0.xpi} | Bin backend/app/main.py | 1 + backend/tests/test_api.py | 2 ++ backend/tests/test_user_config.py | 2 ++ frontend/templates/about.html | 8 +++++++- frontend/templates/admin.html | 2 +- frontend/templates/feed.html | 2 +- frontend/templates/labels.html | 2 +- frontend/templates/login.html | 2 +- frontend/templates/setup.html | 2 +- frontend/templates/user_profile.html | 3 ++- 13 files changed, 33 insertions(+), 7 deletions(-) rename XPI/signed/{LinkLog.xpi => LinkLog-0.1.0.xpi} (100%) diff --git a/VIBE/CHAT_LOG.md b/VIBE/CHAT_LOG.md index 30f02b3..d57d9b1 100644 --- a/VIBE/CHAT_LOG.md +++ b/VIBE/CHAT_LOG.md @@ -1,5 +1,17 @@ # Chat Log +### User +In the Profile page below the Save profile button add “If you have not downloaded the plugin yet find it here” with a link to the signed plugin. + +### Assistant outcome +Added the plugin download prompt immediately below the Save profile button, linking “find it here” to the signed `LinkLog-0.1.0.xpi` artifact. Added profile-page regression assertions and recorded the change in VIBE. + +### User +Add a Plugin section to the About page with a download link to the signed XPI file. + +### Assistant outcome +Added a Plugin section to the About page with a download link for the signed `LinkLog-0.1.0.xpi` artifact hosted on the repository's raw main branch. Added a page-rendering regression assertion. + ### User The Firefox plugin tests report that `strict_min_version` 112 is too low for `data_collection_permissions`, `storage.session`, and `permissions.request`. diff --git a/VIBE/PROMPTS.md b/VIBE/PROMPTS.md index 3c177cb..c2b4453 100644 --- a/VIBE/PROMPTS.md +++ b/VIBE/PROMPTS.md @@ -204,6 +204,8 @@ 197. Implement SA-002: replace raw infrastructure errors with redacted server-side logging, request IDs, and stable public reference messages. 198. Implement SA-005: reject missing/default/weak production secrets at startup and validate the Fernet encryption key, with configuration tests. 199. Fix Firefox manifest compatibility warnings by aligning the minimum version with data collection permissions and session storage support. +200. Add a Plugin section to the About page with a download link to the signed XPI file. +201. Below the Save profile button, add a link to download the signed plugin if it has not been downloaded yet. ## Future entries diff --git a/XPI/signed/LinkLog.xpi b/XPI/signed/LinkLog-0.1.0.xpi similarity index 100% rename from XPI/signed/LinkLog.xpi rename to XPI/signed/LinkLog-0.1.0.xpi diff --git a/backend/app/main.py b/backend/app/main.py index b682edd..f4a89bd 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -46,6 +46,7 @@ app.include_router(user_config_router, prefix='/api/user') app.include_router(setup_router, prefix='/api/setup') templates = Jinja2Templates(directory='frontend/templates') +templates.env.globals['app_version'] = settings.version @app.get('/', response_class=HTMLResponse) diff --git a/backend/tests/test_api.py b/backend/tests/test_api.py index 66f7b62..fa4df4e 100644 --- a/backend/tests/test_api.py +++ b/backend/tests/test_api.py @@ -727,6 +727,8 @@ def test_public_and_admin_pages_render_html(): about_page = client.get('/about') assert about_page.status_code == 200 assert 'Save the good stuff' in about_page.text + assert '

Plugin

' in about_page.text + assert 'https://git.kolkman.org/olaf/Link-Log/raw/branch/main/XPI/signed/LinkLog-0.1.0.xpi' in about_page.text assert 'id="auth-about-link" href="/about"' in about_page.text assert client.get('/admin').status_code == 200 admin_page = client.get('/admin').text diff --git a/backend/tests/test_user_config.py b/backend/tests/test_user_config.py index 0ee415b..c2ca226 100644 --- a/backend/tests/test_user_config.py +++ b/backend/tests/test_user_config.py @@ -51,6 +51,8 @@ def test_user_config_api_and_profile_page(): assert 'id="auth-avatar"' not in page_response.text assert 'name="new_password_confirmation"' in page_response.text assert 'id="additional-email-form"' in page_response.text + assert 'If you have not downloaded the plugin yet' in page_response.text + assert 'https://git.kolkman.org/olaf/Link-Log/raw/branch/main/XPI/signed/LinkLog-0.1.0.xpi' in page_response.text bob_login = client.post('/api/auth/login', json={ 'email': 'bob@example.com', diff --git a/frontend/templates/about.html b/frontend/templates/about.html index d7a4d59..f8b6dd3 100644 --- a/frontend/templates/about.html +++ b/frontend/templates/about.html @@ -52,8 +52,14 @@

LinkLog is open source software. You can run your own instance, or contribute to the project on my repository.

+ - + diff --git a/frontend/templates/admin.html b/frontend/templates/admin.html index 31924b6..b8bacd5 100644 --- a/frontend/templates/admin.html +++ b/frontend/templates/admin.html @@ -115,7 +115,7 @@ - + diff --git a/frontend/templates/feed.html b/frontend/templates/feed.html index 7b27d4a..eebdd5b 100644 --- a/frontend/templates/feed.html +++ b/frontend/templates/feed.html @@ -76,7 +76,7 @@ {% endif %}
- + diff --git a/frontend/templates/labels.html b/frontend/templates/labels.html index e85c824..3b4b7b8 100644 --- a/frontend/templates/labels.html +++ b/frontend/templates/labels.html @@ -44,7 +44,7 @@
- + diff --git a/frontend/templates/login.html b/frontend/templates/login.html index d706ec3..b98846a 100644 --- a/frontend/templates/login.html +++ b/frontend/templates/login.html @@ -55,7 +55,7 @@ - + diff --git a/frontend/templates/setup.html b/frontend/templates/setup.html index e06313f..09f4932 100644 --- a/frontend/templates/setup.html +++ b/frontend/templates/setup.html @@ -42,7 +42,7 @@ - + diff --git a/frontend/templates/user_profile.html b/frontend/templates/user_profile.html index 1915670..6b63090 100644 --- a/frontend/templates/user_profile.html +++ b/frontend/templates/user_profile.html @@ -59,6 +59,7 @@ +

If you have not downloaded the plugin yet, find it here.

@@ -144,7 +145,7 @@ -