Skip to content

feat(notes): add 30-day Trash with recovery and bounded cleanup - #214

Merged
koreyba merged 6 commits into
mainfrom
codex/feature-note-trash
Nov 5, 2026
Merged

koreyba merged 6 commits into
mainfrom
codex/feature-note-trash

Conversation

@koreyba

@koreyba koreyba commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

Deleting a note moves its content and tags to Trash for at least 30 days. Trash reuses the Notes sidebar, list and grid cards, and reader. On phones the reader fills the screen and offers Restore and Delete forever.

Select sits beside the layout controls in Notes and Trash. The same row shows the selection count, Select all, and the available actions. Done returns to browsing. New Note and Empty Trash stay visible during selection.

  • Single, selected, and Empty Trash deletion require confirmation. Empty Trash freezes the entry IDs before asking for the count.
  • Archive-before-delete protects older clients. Owner-scoped operations preserve offline drafts and prevent replay after restoration.
  • List pages contain up to 50 bounded excerpts. The full body loads when a note opens. Indexed hourly expiry processes up to 100 notes per batch. Storage cleanup preserves shared or uncertain image references.

Verification

  • The final PR head passed build, both unit jobs, all four component shards, and SonarQube. Component cases cover desktop, portrait tablet, and 320px phone layouts, as well as selection and confirmation. PR Tests
  • All 20 Playwright cases passed on the exact Stage preview in Chromium and Firefox, locally and in GitHub Actions. Companion tests cover the selection count and invalid confirmation input. The empty AI Index heading level was corrected after the accessibility scan flagged it. Stage preview · Playwright run · Test PR
  • With synthetic Stage notes, expiry removed the note aged 721 hours and kept the note aged 719 hours. The real Storage API removed the unique image and kept the one shared with a live note. The PostgreSQL workload measured median purge times of 11.7 ms for 100 ordinary notes and 16.7 ms for 100 notes with 256 KiB bodies on 1 CPU and 512 MiB.

Production rollout

The three migrations, cleanup function, and environment-specific Vault entries were installed before merging. A transactional smoke check verified archive, owner isolation, exact restore, and purge. PostgREST found the Trash view and denied anonymous reads. Both hourly jobs are active. The first scheduled attachment dispatch returned HTTP 200.

Cloudflare deployed merge commit 3dbd3fdad136. The public production URL returned HTTP 200 and served the same assets as the deployment. Production

@coderabbitai

coderabbitai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a7e23dfa-f39b-42a4-8f5b-64cd1fc6c34d
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Deploying everfreenote with  Cloudflare Pages  Cloudflare Pages

Latest commit: ed16380
Status: ✅  Deploy successful!
Preview URL: https://077317c2.everfreenote.pages.dev
Branch Preview URL: https://codex-feature-note-trash.everfreenote.pages.dev

View logs

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

PR Status

Updated for PR #214 at ed16380 on 2026-11-05T21:25:16.280Z.

📊 Allure Test Report

Open Allure Report

Contributing Workflows

Workflow Status Suites
Unit Tests ✅ Completed Core Unit, Core Integration, Web Unit, Mobile Unit
Component Tests ✅ Completed Web Component
E2E Tests (PR Preview) ✅ Completed Web E2E

Catalog: All reports

🤖 Android Build Panel

Check a box below to trigger a release build:

  • 🚀 Build Stage Release APK
  • 🚀 Build Prod Release APK

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Allure Report Summary

Name Duration Stats New Flaky Retry Report
Allure Report Allure Report 13m 31s Passed tests 3414   Skipped tests 7 0 0 0 View

@sonarqubecloud

sonarqubecloud Bot commented Nov 5, 2026

Copy link
Copy Markdown

@koreyba
koreyba merged commit 3dbd3fd into main Nov 5, 2026
30 checks passed
@koreyba
koreyba deleted the codex/feature-note-trash branch November 5, 2026 21:28

This branch was previously deployed

1 inactive deployment
Stage — ed163809 Deployed Nov 5, 2026 by koreyba via build #1067
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant