Repository navigation
v4.13.0 — A forgotten password has a way back, and a pass for bugs across billing, Drive, the file list and search
A forgotten password has a way back. There was none before: an account made with an address and a password could not get in again once the password was forgotten. "Forgot?", in the login page's password field, leads to a page that asks Supabase to mail a link. The page says only that a link is on its way if the address has an account, because Supabase answers the same for an address that has none. The link opens /new-password in whichever browser the mail is read in. That page asks for the new password twice and then goes on to the dashboard; a spent link is told so and offered another. The auth server sends some links to the app's root instead, as it does for an address not on its list, and such a link is moved to the right page before anything reads the address. The native shells ask for the link without PKCE and finish on the web app, because the mail opens in a browser, where the verifier the app kept is not available.
Money. Deleting an account left its Stripe subscription running, renewing every month with nothing left in the app to cancel it from. The deletion now deletes the Stripe customer first, which cancels its subscriptions. When Stripe cannot be reached, nothing is deleted and the person is told so. Separately, the page Stripe sends a buyer back to said "Your subscription is active" before the webhook had written the plan, so the account could show Free for five minutes. The page now waits for Pro, and says so if Stripe takes longer than half a minute. Production bills in Stripe's test mode, so no real payment was involved.
Google Drive. The token was kept with no end. After its hour, Drive still looked connected, every upload was refused, and a file already gone from Drive could never be deleted from the app. The token is now kept with its end and its owner, and dropped when the session ends. Before, on a shared browser, the next person to sign in within the hour was handed the previous person's Drive. A token Google refuses is let go of, and the upload page offers to connect again. Signing in with Google no longer asks for offline access that nothing used, so Google no longer issues a refresh token on every sign-in.
The file list and search by meaning. Sorted by size or by name, a page could show a file twice and another never; every sort now ends on the file's id. Pictures stored in Supabase Storage or R2 went blank an hour after upload, every demo account's among them. A picture that fails is now given a fresh address once, and a preview that still cannot be shown stops being asked for. Search by meaning lets go of a deleted file at once. It reads past a thousand files, where indexed files used to be offered again as paid requests. Its hint no longer promises indexing on upload. Search by meaning is off in production.
What production had not run into yet.
- A presigned R2 upload carried the CRC32 of an empty body, which no file can match.
- The demo sweep looked at the first 200 accounts only. Production has fewer than 200.
- Erasing an account left everything past its first 1,000 files in Cloudinary. No account in production holds more than nine files there.
- On a shared device, the upload page listed the last person's unfinished uploads by name. It lists only the signed-in account's now, and deleting an account clears them from the device.
R2, the only provider whose uploads can be resumed, is off in production.
The site and the login page. Two paragraphs of the privacy policy were printed a line at a time, fourteen fragments cut mid-sentence; the site's reader now joins a paragraph's lines. The login page's error text was 2.3:1 against its card, and is 5.0:1 now.
CI. Cancelled runs had left 23 test accounts in the live project. Each run now sweeps the ones more than an hour old. Tags no longer start CI. Uploads get 20 seconds to land. The functions are type-checked the way Vercel builds them, which surfaced a type error that every deployment log had carried while CI was green. The dev server no longer reloads every open page when the first one registers the service worker; that reload had once landed in the middle of an accessibility scan.
What it costs: the first load is 376.3 kB gzipped, 1.0 kB over 4.12.1. Of that, 0.5 kB is Ionic 9.0.9, 0.2 kB is keeping the Drive token with its owner, and 0.3 kB is the sign-in page's way back. The end-to-end suite passed on each of the sixteen merges: 44 of 44, then 48 of 48 with the four tests of the reset flow. On one merge it passed only on a retry; #234 traced that to the dev server and fixed it.