Kagelin is a local-first task, habit, and calendar app built on Next.js 16 with Supabase for sync. v1.53.0 is mostly a feel release: quick capture, motion, and contrast. Two changes were big enough to be worth writing down. Quick-add now understands dates, and the mobile drawer runs on Base UI instead of Vaul.
The date should not be part of the task title
The old flow worked but had its flaws once I watched someone use it. You type pay rent by Friday, and you get a task called "pay rent by Friday". Then you open the date picker and retype the same information.
Now the composer parses the title as you type and shows a chip under the input: Due: Fri, Nov 27. Press Enter and the task is saved as "pay rent" with that due date.
The parser is chrono-node, which handles the messy part: relative days, weekdays, times, tomorrow at 10am, next Tuesday, and so on. The glue around it is where the product decisions live.
const results = chrono.parse(trimmed, refDate, { forwardDate: true });
const result = results[0];
const prefix = trimmed.slice(0, result.index);
const dueByMatch = prefix.match(/\b(due|by)\s*:?\s*$/i);
const field = dueByMatch ? "due_date" : "do_date";
"by" and "due" mean a deadline. Everything else is a plan. Kagelin separates do dates from due dates, and that distinction is load-bearing. A task planned for yesterday with no real deadline should read "needs rescheduling", not "overdue". So pay rent by Friday sets the due date, while call the dentist tomorrow sets the do date. The keyword gets stripped along with the date fragment.
The title has to survive the strip. If removing the date leaves an empty string, the parser returns null. Typing just tomorrow gives you a task called "tomorrow", not an unnamed task with a date. Same for dangling prepositions: at, on, for, in, and from are trimmed when they end up at the edges.
A date you picked by hand wins. If the due date field already has a value, the parser stops offering to set it. The same goes for do dates. I do not want a chip silently overwriting a date I chose from the picker.
Dismissal is keyed to the matched text. Closing the chip stores the exact string chrono matched, not a boolean. If you dismiss tomorrow and then edit the title to tomorrow at 3pm, the chip comes back, because that is a different date and probably not the one you rejected.
The chip only exists in create mode. Editing an existing task keeps the plain title field, since the task already has dates and the parser would mostly be in the way.
Shift+Enter keeps the composer open
The other half of quick capture is entering several things in a row. Closing and reopening the modal between tasks breaks the flow, so Shift+Enter now submits the current task, resets the form, keeps the sheet open, and puts focus back in the title field.
if (e.shiftKey && mode === "create") {
if (!hasContent || isPending) return;
onSubmit({ keepOpen: true });
setTimeout(() => titleInputRef.current?.focus(), 0);
return;
}
The timeout is there because the reset and the focus happen in different renders. It is one of those small things that is invisible when it works and extremely obvious when it does not.
The mobile drawer is on Base UI now
Vaul was fine until the virtual keyboard got involved. The drawer needs to keep an input above the keyboard, and the old approach repositioned the sheet based on its own calculations. It worked most of the time and produced a visible jump the rest of the time.
Base UI's Drawer ships a VirtualKeyboardProvider, so the sheet follows the visual viewport instead of guessing at it. The wrapper now looks like this:
<DrawerPrimitive.Root swipeDirection={resolvedSwipeDirection} {...props}>
<DrawerPrimitive.VirtualKeyboardProvider>
{children}
</DrawerPrimitive.VirtualKeyboardProvider>
</DrawerPrimitive.Root>
The migration touched more than the primitive. Vaul's direction prop is mapped to Base UI's swipeDirection so existing call sites did not need to change, asChild is shimmed onto Base UI's render prop, and shouldScaleBackground is accepted as a no-op for compatibility. I also swapped tailwindcss-animate for tw-animate-css.
My favorite part: there was an ast-grep rule whose only job was to warn against repositionInputs={false}. With Vaul gone, the rule went too. Deleting a guard because the thing it guarded against no longer exists is a good feeling. Less to maintain!
One sliding pill instead of four
Every view switcher had its own version of the active state. Tasks had List and Board, Habits had Grid and Compact, Stats had 7D, 30D, 90D, 1Y, and All. Some changed instantly, some faded, and they did not agree on spacing.
They now share one pattern: the active trigger renders an absolutely positioned m.span with a layoutId, and Motion animates it between triggers with a single spring token.
{isActive && (
<m.span
layoutId="stats-period-pill"
transition={SEIJAKU_SPRING_FAST}
aria-hidden="true"
className="pointer-events-none absolute inset-0 rounded-md bg-card border border-border shadow-xs"
/>
)}
The label sits above it with relative z-10. The pill is decorative and hidden from assistive tech, since the tab itself already exposes the state. Taps also fire a light haptic tick on devices that support it.
React Compiler is enabled in this codebase, so there is no useMemo or useCallback around any of this. The compiler handles it, and a bailout shows up as a lint error rather than something to paper over.
Charts that stop moving
The stats dashboard got two smaller fixes that matter more than they sound.
Numbers now use tabular figures, so a value changing from 1,111 to 2,222 does not shift the layout. The focus trend chart has richer tooltips that break down hours and completed tasks, and the habit score chart is lazy loaded. Recharts instances were holding memory after navigating away, which is not something you notice in a five minute session and very much something you notice after an hour.
Opaque calendar chips
Translucent event chips looked good on an empty week and disappeared on a busy one. They are now solid matte cards with a 3px accent border. The grid hairlines stay visible underneath, and dark mode contrast is much better. This is the least clever change in the release and probably the one I will notice every day.
- App: app.kagelin.app (guest mode works, no account needed)
- Landing page: kagelin.app
- Source: github.com/Achyuth072/kagelin
- Full changelog: Settings → What's new or check the release section on Github




Top comments (0)