[PR #940] [MERGED] web: add support for api keys, settings v4, turnstile improvements, improve custom instance settings accessibility #1287

Closed
opened 2025-11-09 10:09:53 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/imputnet/cobalt/pull/940
Author: @wukko
Created: 11/23/2024
Status: Merged
Merged: 11/23/2024
Merged by: @github-actions[bot]

Base: developHead: web-access-keys


📝 Commits (10+)

  • baebeed web/settings/v4: add api key settings, remove override settings
  • 8415d0e web/i18n/error: update invalid jwt token error
  • 7c7cefe web/settings: add a reusable SettingsInput component
  • 601597e web: add support for custom api keys & improve turnstile states
  • d4044e3 web/server-info: remove turnstile in more cases
  • 326bc52 web: fix turnstile/server-info circular dependency
  • a9831a4 web/SettingsInput: fix uuid support & refactor
  • adb1cac web/i18n/settings: update access key description
  • 6129198 web/settings/instances: always display the access key section
  • 0b6270e web/SettingsInput: better screen reader accessibility

📊 Changes

18 files changed (+384 additions, -257 deletions)

View changed files

📝 web/i18n/en/error.json (+1 -1)
📝 web/i18n/en/settings.json (+7 -3)
📝 web/src/components/misc/Turnstile.svelte (+1 -1)
📝 web/src/components/save/Omnibox.svelte (+3 -4)
📝 web/src/components/save/SupportedServices.svelte (+2 -1)
web/src/components/settings/CustomInstanceInput.svelte (+0 -167)
web/src/components/settings/SettingsInput.svelte (+186 -0)
📝 web/src/lib/api/api.ts (+40 -23)
📝 web/src/lib/api/server-info.ts (+15 -6)
📝 web/src/lib/settings/defaults.ts (+3 -3)
📝 web/src/lib/settings/migrate.ts (+40 -26)
web/src/lib/state/server-info.ts (+4 -0)
📝 web/src/lib/state/turnstile.ts (+14 -1)
📝 web/src/lib/types/settings.ts (+8 -6)
📝 web/src/lib/types/settings/v3.ts (+1 -1)
web/src/lib/types/settings/v4.ts (+9 -0)
📝 web/src/routes/+layout.svelte (+17 -11)
📝 web/src/routes/settings/instances/+page.svelte (+33 -3)

📄 Description

also closes #915


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/imputnet/cobalt/pull/940 **Author:** [@wukko](https://github.com/wukko) **Created:** 11/23/2024 **Status:** ✅ Merged **Merged:** 11/23/2024 **Merged by:** [@github-actions[bot]](https://github.com/apps/github-actions) **Base:** `develop` ← **Head:** `web-access-keys` --- ### 📝 Commits (10+) - [`baebeed`](https://github.com/imputnet/cobalt/commit/baebeed488b94be5ec93eaeadb7b8e4d03b691ea) web/settings/v4: add api key settings, remove override settings - [`8415d0e`](https://github.com/imputnet/cobalt/commit/8415d0e4f36446bf9e5812ae75b3f346282faac8) web/i18n/error: update invalid jwt token error - [`7c7cefe`](https://github.com/imputnet/cobalt/commit/7c7cefe89bc1daea03ae85c413c84a57e2d18f8b) web/settings: add a reusable `SettingsInput` component - [`601597e`](https://github.com/imputnet/cobalt/commit/601597eb151eabfe7d87edf54f3144f2cc14df80) web: add support for custom api keys & improve turnstile states - [`d4044e3`](https://github.com/imputnet/cobalt/commit/d4044e335026722195c4f52f69ef7da93be1dfef) web/server-info: remove turnstile in more cases - [`326bc52`](https://github.com/imputnet/cobalt/commit/326bc52f277c3e12f311c27b36f2956d6d283de7) web: fix turnstile/server-info circular dependency - [`a9831a4`](https://github.com/imputnet/cobalt/commit/a9831a40a3cc576bce5beff86541cce44f7b7e36) web/SettingsInput: fix uuid support & refactor - [`adb1cac`](https://github.com/imputnet/cobalt/commit/adb1cacd9dd9a461796c71757b04814539da48bd) web/i18n/settings: update access key description - [`6129198`](https://github.com/imputnet/cobalt/commit/61291980249522e0bd82d29c0644887cfd496ffb) web/settings/instances: always display the access key section - [`0b6270e`](https://github.com/imputnet/cobalt/commit/0b6270e7459c536e17c103585574afe704528cfb) web/SettingsInput: better screen reader accessibility ### 📊 Changes **18 files changed** (+384 additions, -257 deletions) <details> <summary>View changed files</summary> 📝 `web/i18n/en/error.json` (+1 -1) 📝 `web/i18n/en/settings.json` (+7 -3) 📝 `web/src/components/misc/Turnstile.svelte` (+1 -1) 📝 `web/src/components/save/Omnibox.svelte` (+3 -4) 📝 `web/src/components/save/SupportedServices.svelte` (+2 -1) ➖ `web/src/components/settings/CustomInstanceInput.svelte` (+0 -167) ➕ `web/src/components/settings/SettingsInput.svelte` (+186 -0) 📝 `web/src/lib/api/api.ts` (+40 -23) 📝 `web/src/lib/api/server-info.ts` (+15 -6) 📝 `web/src/lib/settings/defaults.ts` (+3 -3) 📝 `web/src/lib/settings/migrate.ts` (+40 -26) ➕ `web/src/lib/state/server-info.ts` (+4 -0) 📝 `web/src/lib/state/turnstile.ts` (+14 -1) 📝 `web/src/lib/types/settings.ts` (+8 -6) 📝 `web/src/lib/types/settings/v3.ts` (+1 -1) ➕ `web/src/lib/types/settings/v4.ts` (+9 -0) 📝 `web/src/routes/+layout.svelte` (+17 -11) 📝 `web/src/routes/settings/instances/+page.svelte` (+33 -3) </details> ### 📄 Description also closes #915 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-09 10:09:53 -06:00
Sign in to join this conversation.