[PR #671] [MERGED] feat: cleanup support address and inactive address #691

Closed
opened 2026-02-26 21:32:28 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/671
Author: @dreamhunter2333
Created: 6/18/2025
Status: Merged
Merged: 6/18/2025
Merged by: @dreamhunter2333

Base: mainHead: feature/dev


📝 Commits (1)

  • ad4dd83 feat: cleanup support address and inactive address

📊 Changes

6 files changed (+115 additions, -29 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 frontend/src/views/admin/Maintenance.vue (+38 -6)
📝 worker/src/admin_api/cleanup_api.ts (+2 -4)
📝 worker/src/common.ts (+50 -1)
📝 worker/src/models/index.ts (+5 -16)
📝 worker/src/scheduled.ts (+19 -2)

📄 Description

User description

#634


PR Type

Enhancement


Description

  • Added auto-cleanup for inactive and old addresses.

  • Updated UI to support new cleanup options.

  • Enhanced backend logic for address cleanup.

  • Updated changelog to reflect new features.


Changes walkthrough 📝

Relevant files
Enhancement
Maintenance.vue
Add UI for address cleanup options                                             

frontend/src/views/admin/Maintenance.vue

  • Added UI support for inactive and old address cleanup.
  • Updated labels and placeholders for new cleanup options.
  • Enhanced form layout with new cleanup settings.
  • +38/-6   
    cleanup_api.ts
    Extend cleanup API for address cleanup                                     

    worker/src/admin_api/cleanup_api.ts

  • Refactored cleanup API to handle new address cleanup types.
  • Simplified cleanup settings retrieval and saving.
  • +2/-4     
    common.ts
    Implement backend logic for address cleanup                           

    worker/src/common.ts

  • Added logic for batch deletion of inactive and old addresses.
  • Enhanced error handling for invalid cleanup parameters.
  • Updated database queries for address-related cleanup.
  • +50/-1   
    index.ts
    Extend CleanupSettings for address cleanup                             

    worker/src/models/index.ts

  • Updated CleanupSettings to include new address cleanup options.
  • Removed constructor in favor of a simpler type definition.
  • +5/-16   
    scheduled.ts
    Add scheduled tasks for address cleanup                                   

    worker/src/scheduled.ts

  • Integrated new address cleanup types into scheduled tasks.
  • Added logging for missing cleanup settings.
  • +19/-2   
    Documentation
    CHANGELOG.md
    Update changelog for address cleanup features                       

    CHANGELOG.md

    • Documented new features for address cleanup.
    +1/-0     

    Need help?
  • Type /help how to ... in the comments thread for any questions about PR-Agent usage.
  • Check out the documentation for more information.

  • 🔄 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/dreamhunter2333/cloudflare_temp_email/pull/671 **Author:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Created:** 6/18/2025 **Status:** ✅ Merged **Merged:** 6/18/2025 **Merged by:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Base:** `main` ← **Head:** `feature/dev` --- ### 📝 Commits (1) - [`ad4dd83`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/ad4dd83cc5fc766eba405ce560bf566fac8a6563) feat: cleanup support address and inactive address ### 📊 Changes **6 files changed** (+115 additions, -29 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `frontend/src/views/admin/Maintenance.vue` (+38 -6) 📝 `worker/src/admin_api/cleanup_api.ts` (+2 -4) 📝 `worker/src/common.ts` (+50 -1) 📝 `worker/src/models/index.ts` (+5 -16) 📝 `worker/src/scheduled.ts` (+19 -2) </details> ### 📄 Description ### **User description** #634 ___ ### **PR Type** Enhancement ___ ### **Description** - Added auto-cleanup for inactive and old addresses. - Updated UI to support new cleanup options. - Enhanced backend logic for address cleanup. - Updated changelog to reflect new features. ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table> <tr> <td> <details> <summary><strong>Maintenance.vue</strong><dd><code>Add UI for address cleanup options</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> frontend/src/views/admin/Maintenance.vue <li>Added UI support for inactive and old address cleanup.<br> <li> Updated labels and placeholders for new cleanup options.<br> <li> Enhanced form layout with new cleanup settings. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/671/files#diff-68808e9c7bcf8b34a2d45265cca130c547b77e75a97350ea7d16682e69922ae4">+38/-6</a>&nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>cleanup_api.ts</strong><dd><code>Extend cleanup API for address cleanup</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/admin_api/cleanup_api.ts <li>Refactored cleanup API to handle new address cleanup types.<br> <li> Simplified cleanup settings retrieval and saving. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/671/files#diff-29fba59415d40dbb12a6c3d99fae9e035c1faac3e2e78838779c0d7352c90577">+2/-4</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>common.ts</strong><dd><code>Implement backend logic for address cleanup</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/common.ts <li>Added logic for batch deletion of inactive and old addresses.<br> <li> Enhanced error handling for invalid cleanup parameters.<br> <li> Updated database queries for address-related cleanup. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/671/files#diff-fcc08fd5aa3c190d0d45c7e3dd208e5ee831d360b272fdd5869607cf472c5eb1">+50/-1</a>&nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>index.ts</strong><dd><code>Extend CleanupSettings for address cleanup</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/models/index.ts <li>Updated <code>CleanupSettings</code> to include new address cleanup options.<br> <li> Removed constructor in favor of a simpler type definition. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/671/files#diff-430bcc4ffa98738e7419c774a53ba2ce8b5127a36b3741e89bf36b95a56f02bc">+5/-16</a>&nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>scheduled.ts</strong><dd><code>Add scheduled tasks for address cleanup</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/scheduled.ts <li>Integrated new address cleanup types into scheduled tasks.<br> <li> Added logging for missing cleanup settings. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/671/files#diff-32db4dd84c910f05f07a8a392340ce79b637bcb01d929f6df09f3ba94acfa9b7">+19/-2</a>&nbsp; &nbsp; </td> </tr> </table></td></tr><tr><td><strong>Documentation</strong></td><td><table> <tr> <td> <details> <summary><strong>CHANGELOG.md</strong><dd><code>Update changelog for address cleanup features</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> CHANGELOG.md - Documented new features for address cleanup. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/671/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr></tr></tbody></table> ___ > <details> <summary> Need help?</summary><li>Type <code>/help how to ...</code> in the comments thread for any questions about PR-Agent usage.</li><li>Check out the <a href="https://qodo-merge-docs.qodo.ai/usage-guide/">documentation</a> for more information.</li></details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
    kerem 2026-02-26 21:32:28 +03:00
    Sign in to join this conversation.
    No milestone
    No project
    No assignees
    1 participant
    Notifications
    Due date
    The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

    No due date set.

    Dependencies

    No dependencies set.

    Reference
    starred/cloudflare_temp_email#691
    No description provided.