all: remove saved views, the Has-reminder filter and the Created range
CI & Build / Build now, or wait for Android? (push) Successful in 3s
Android / Build, or is the channel already serving this? (push) Successful in 3s
CI & Build / Python lint (push) Successful in 2s
CI & Build / Web typecheck and unit tests (push) Successful in 13s
Desktop (Tauri) / Build, or is the channel already serving this? (push) Successful in 2s
CI & Build / Python tests (push) Successful in 15s
CI & Build / integration (push) Successful in 1m29s
CI & Build / Build & push image (push) Skipped
Desktop (Tauri) / Web tests, clippy, Rust tests and rustfmt (push) Successful in 3m34s
Desktop (Tauri) / Windows installer (cross-compiled) (push) Successful in 3m5s
Desktop (Tauri) / Tauri desktop (Linux) (push) Successful in 3m49s
Desktop (Tauri) / Update manifest (push) Successful in 3s
Android / Kotlin + Rust (APK) (push) Successful in 9m29s

Step 18 of the audit follow-through (#5180), on the operator's decisions.
Inkwell is for capture and recall (note 2897), and these three duplicated a
surface that does the job already:

- Saved views. They lived only on the web; the desktop kept its own set that
  never synced, and Android had none. Tags in the drawer already give
  one-click recall. Gone from the server (routes, model, migration 0038 drops
  the table), the core (store functions, schema v13 drops its table), the
  desktop commands, the web adapters, the drawer's Views list and the
  "Save view" link.
- The "Has reminder" facet. The Reminders page lists them, sorted by due.
- The FilterBar's "Created" range. Timeline is the date lens and keeps the
  created_after/created_before query it builds from local days, which also
  retires the UTC/local-day disagreement between the two (B3).

An old link that still carries the removed keys opens the plain board; a
web test pins that.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-07 21:29:28 -04:00
co-authored by Claude Opus 5.5
parent 888c6410f0
commit b019172d47
25 changed files with 106 additions and 574 deletions
+2 -2
View File
@@ -59,8 +59,8 @@ def test_all_note_routes_registered(app):
}
assert expected <= registered, f"unregistered note routes: {expected - registered}"
# Removed in #5178: an item is added, reworded and removed by editing the body,
# and previews arrive in the background after a save.
gone = {"notes.add_item", "notes.delete_item", "notes.unfurl_link"}
# and previews arrive in the background after a save. Saved views went in #5180.
gone = {"notes.add_item", "notes.delete_item", "notes.unfurl_link", "saved_filters.list_saved"}
assert not gone & registered, f"removed note routes are back: {gone & registered}"
-44
View File
@@ -1,44 +0,0 @@
import pytest
from inkwell.app import create_app
from inkwell.saved_filters import clean_params
@pytest.fixture
def app():
return create_app()
def test_clean_params_whitelists_facet_keys():
raw = {
"q": "hi",
# A facet until M315. It is junk now, and has to be dropped like any other —
# a stored view that still filtered on a field the app lost would return
# nothing and never say why.
"color": "yellow",
"label": ["a"],
"has_reminder": True,
"junk": 1,
"__proto__": 2,
}
assert clean_params(raw) == {"q": "hi", "label": ["a"], "has_reminder": True}
assert clean_params("nope") == {}
assert clean_params(None) == {}
async def test_list_saved_requires_auth(app):
client = app.test_client()
resp = await client.get("/api/saved-filters")
assert resp.status_code == 401
async def test_create_saved_requires_auth(app):
client = app.test_client()
resp = await client.post("/api/saved-filters", json={"name": "x"})
assert resp.status_code == 401
async def test_delete_saved_requires_auth(app):
client = app.test_client()
resp = await client.delete("/api/saved-filters/00000000-0000-0000-0000-000000000000")
assert resp.status_code == 401