[PR #1214] [MERGED] feat: add option to renew API key #1091

Closed
opened 2026-02-05 18:51:52 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/pocket-id/pocket-id/pull/1214
Author: @stonith404
Created: 1/7/2026
Status: Merged
Merged: 1/9/2026
Merged by: @stonith404

Base: mainHead: feat/renew-api-key


📝 Commits (5)

📊 Changes

16 files changed (+321 additions, -41 deletions)

View changed files

📝 backend/internal/common/errors.go (+7 -0)
📝 backend/internal/controller/api_key_controller.go (+36 -0)
📝 backend/internal/dto/api_key_dto.go (+4 -0)
📝 backend/internal/service/api_key_service.go (+50 -0)
📝 backend/internal/service/e2etest_service.go (+22 -9)
📝 frontend/messages/en.json (+4 -0)
📝 frontend/src/lib/components/form/date-picker.svelte (+12 -15)
📝 frontend/src/lib/services/api-key-service.ts (+7 -0)
📝 frontend/src/routes/settings/admin/api-keys/+page.svelte (+1 -1)
📝 frontend/src/routes/settings/admin/api-keys/api-key-dialog.svelte (+3 -1)
📝 frontend/src/routes/settings/admin/api-keys/api-key-form.svelte (+1 -0)
📝 frontend/src/routes/settings/admin/api-keys/api-key-list.svelte (+46 -3)
frontend/src/routes/settings/admin/api-keys/renew-api-key-modal.svelte (+52 -0)
📝 tests/data.ts (+8 -1)
📝 tests/resources/export/database.json (+12 -1)
📝 tests/specs/api-key.spec.ts (+56 -10)

📄 Description

Adds an option to renew API keys:
Screenshot 2026-01-07 at 16 08 28

Closes #1207


🔄 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/pocket-id/pocket-id/pull/1214 **Author:** [@stonith404](https://github.com/stonith404) **Created:** 1/7/2026 **Status:** ✅ Merged **Merged:** 1/9/2026 **Merged by:** [@stonith404](https://github.com/stonith404) **Base:** `main` ← **Head:** `feat/renew-api-key` --- ### 📝 Commits (5) - [`c944b70`](https://github.com/pocket-id/pocket-id/commit/c944b7057f9d9f7e8c33d318e0d3e02ab9aeb624) feat: add option to renew API key - [`7056b4b`](https://github.com/pocket-id/pocket-id/commit/7056b4bd6206d7e72c7623a3a2faf9c9acdec834) fix e2e tests - [`70e5487`](https://github.com/pocket-id/pocket-id/commit/70e54879b2b84136306c0792fc9a0d6bd3b36000) improve naming - [`7d86105`](https://github.com/pocket-id/pocket-id/commit/7d8610518c55bb0e7cae0708d4a2ddc5d4e53f2b) Merge branch 'main' into feat/renew-api-key - [`dbab5cc`](https://github.com/pocket-id/pocket-id/commit/dbab5cc749e61951c73de740cb0de4e570cebddb) fix e2e tests ### 📊 Changes **16 files changed** (+321 additions, -41 deletions) <details> <summary>View changed files</summary> 📝 `backend/internal/common/errors.go` (+7 -0) 📝 `backend/internal/controller/api_key_controller.go` (+36 -0) 📝 `backend/internal/dto/api_key_dto.go` (+4 -0) 📝 `backend/internal/service/api_key_service.go` (+50 -0) 📝 `backend/internal/service/e2etest_service.go` (+22 -9) 📝 `frontend/messages/en.json` (+4 -0) 📝 `frontend/src/lib/components/form/date-picker.svelte` (+12 -15) 📝 `frontend/src/lib/services/api-key-service.ts` (+7 -0) 📝 `frontend/src/routes/settings/admin/api-keys/+page.svelte` (+1 -1) 📝 `frontend/src/routes/settings/admin/api-keys/api-key-dialog.svelte` (+3 -1) 📝 `frontend/src/routes/settings/admin/api-keys/api-key-form.svelte` (+1 -0) 📝 `frontend/src/routes/settings/admin/api-keys/api-key-list.svelte` (+46 -3) ➕ `frontend/src/routes/settings/admin/api-keys/renew-api-key-modal.svelte` (+52 -0) 📝 `tests/data.ts` (+8 -1) 📝 `tests/resources/export/database.json` (+12 -1) 📝 `tests/specs/api-key.spec.ts` (+56 -10) </details> ### 📄 Description Adds an option to renew API keys: <img width="1377" height="716" alt="Screenshot 2026-01-07 at 16 08 28" src="https://github.com/user-attachments/assets/7f86d2c5-d7bd-4b84-9b7d-3c1efe93e9ee" /> Closes #1207 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 18:51:52 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id-pocket-id#1091