Skip to content

Move to the Inbox puts the task in the Inbox (inbox-drop-unplaces) - #2202

Queued
pixari wants to merge 7 commits into
mainfrom
fix/2137-inbox-unplaces
Queued

pixari wants to merge 7 commits into
mainfrom
fix/2137-inbox-unplaces

Conversation

@pixari

@pixari pixari commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

What and why

Fixes #2137.

Since inbox-means-unplaced, a task is in the Inbox only while it has no project and no schedule. A task added while Today is open gets today's date, so it is not in the Inbox, and dragging it onto Inbox in the sidebar did nothing: the drop only wrote project_id: null, which the task already had, so no op was written and no toast showed. Choosing "No project" for it in the list's edit bar was also ignored. A dated task dropped there from a project lost its project but kept its date, so it went to Today instead. Headings and the task panel called every task without a project "Inbox". No data was lost: these tasks were just out of the Inbox's sight.

OpenSpec change inbox-drop-unplaces (proposal, design, tasks, and deltas to project-organization, manual-ordering, start-dates and web-app) records what we decided:

  • Every move to the Inbox puts the task in the Inbox. That covers the sidebar drop, "No project" in the task panel's picker or the list's edit bar, and bulk Move to the Inbox. Each clears the project and the schedule (do-on date, start, time sector, evening, part of the day) in one batch with Undo.
    • One planner does it for all of them: MoveTarget.inbox plus unschedulePatch in web/src/lib/bulk.ts.
    • pickMoves in lib/inbox.ts decides whether a pick moves the task. The panel and the edit bar both use it.
    • ProjectPickerField gets a repickNone prop so the edit bar sees "No project" picked again.
    • A move out of a shared project writes the copy already unscheduled.
    • A drop into a list's "No project" group (Today grouped by project) and automation rules leave the date alone.
  • A repeating task keeps its whole schedule (do-on date, start, Someday, sector, evening, part of the day), because clearing its date would end the series. It loses only its project.
    • The toast names the task when it is the only one: "“Water plants” repeats, so it stays scheduled".
    • With several, it gives the count, each task counted once: "Moved to Inbox; 2 repeating tasks stay scheduled".
    • The named form uses =1, and counts use each language's plural forms, so Japanese and Chinese still show the count and Russian 21 doesn't name a title. We test ja and ru at 1, 5 and 21.
    • The bulk review's result says it too ("4 changes applied; 1 repeating task stays scheduled"). When only repeating tasks without a project are ticked, there is nothing to review, so we show the note as a toast instead.
    • All twelve catalogs have the strings. The translations are drafts and need a speaker's review.
  • Moves that are not moves to the Inbox keep the date. A move to another workspace's Inbox (the palette's Move to workspace) changes only the workspace. A drop into a list's "No project" group changes only the project, and its toast names the group's heading, as Today's already did.
  • "Inbox" names only Inbox tasks. The group of tasks without a project reads "Inbox" only when all of them are Inbox tasks, and "No project" otherwise. This applies in the task panel, Today, Upcoming, Someday, Anytime, label pages, Assigned to me, saved views and the Completed logbook (noProjectHeading in lib/views.ts).

Tests:

  • web/src/lib/inboxDrop.test.ts:
    • the drop, and its Undo
    • a dated task in a project
    • a dated task in a shared project
    • the picker path, with project and date restored together by Undo
    • plural forms in ja and ru
    • an unscheduled task writes nothing
    • repeating tasks: the title in the toast, the count, the whole schedule kept
    • bulk review, including the repeating count and a review with only repeating tasks
    • a drop on a project keeps the date
  • inlineEditor.test.tsx: "No project" in the edit bar in Today. This test fails without the fix.
  • projectPickerField.test.tsx: repickNone.
  • Headings: listGroups.test.ts (Today, Upcoming, Someday, Anytime, label page), plus updated views.test.ts and completedReview.test.tsx.

Docs: docs/bulk-actions.md. Changelog: changelog.d/Fixed/inbox-drop-unplaces.md. No new dependency, op field or route.

Checks run locally:

  • Passed: tsc, eslint on the touched files, make i18n-check, make docs-check, and make openspec-validate (--strict).
  • vitest: we ran src/lib and the touched src/app suites, about 6,940 tests, all passing.
  • Not run: the full web suite and npm run build, because the machine is shared and busy.

Checklist

  • Behaviour changes start as an OpenSpec change (openspec/changes/<name>/), or this PR has none
  • One change per pull request; make check passes locally (only the parts listed above)
  • Commits credit every author, AI tools included, with a Co-Authored-By trailer
  • Data writes go through ops (no direct task/project row writes)
  • New API routes are registered with a policy in internal/httpapi/policy.go (public("reason") only when the spec says so): none added
  • No telemetry, no new third-party requests, no new mandatory env vars
  • Docs updated and a changelog entry added as changelog.d/<Section>/<name>.md (not in CHANGELOG.md); size impact noted for new dependencies
  • Templates only: not applicable

https://claude.ai/code/session_0187cnkXBm72ZSggGvrvUMKW


Generated by Claude Code

)

A task without a project but with a date is not an Inbox task, so dropping
it on the sidebar's Inbox wrote nothing, and a dated task dropped there from
a project kept its date and landed in Today. Every move to the Inbox (the
sidebar drop, the project picker's No project, the inline project field,
title edits, bulk Move to the Inbox) now clears the project and the schedule
in one batch with Undo; a repeating task keeps its date and the toast says
why. The task panel and Today/Upcoming grouped by project say "No project"
for such tasks instead of "Inbox".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0187cnkXBm72ZSggGvrvUMKW
…w of #2202)

- The list's edit bar and ProjectPickerField no longer swallow "No project"
  picked on a dated task without a project (pickMoves, repickNone).
- Groups of tasks without a project read "Inbox" only when all are Inbox
  tasks, else "No project": saved views, Today and Upcoming, Someday,
  Anytime, labels, Assigned to me and the Completed logbook.
- A repeating task keeps only its do-on date (start and sector are
  cleared); toasts name it or give the count of topmost repeating tasks,
  and the bulk review's result says how many stay scheduled.
- An unscheduled task writes nothing; spec deltas for manual-ordering,
  start-dates and web-app; no title-edit path claimed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0187cnkXBm72ZSggGvrvUMKW
…re-review of #2202)

- Toasts use =1 for the named form and each language's plural categories
  for counts (ja/zh count, ru one is 21 too); all 12 catalogs; tested
  in ja and ru at 1, 5 and 21.
- A repeating task keeps its whole schedule and only loses its project.
- A move to another workspace's Inbox no longer clears dates.
- Drops into a "No project" group name that group's heading in the toast.
- Bulk Move to the Inbox of repeating tasks without a project only shows
  the note instead of an empty review.
- Spec delta, design and tasks follow; groupTasks doc back in place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0187cnkXBm72ZSggGvrvUMKW
A task of a project moved to another workspace's "No project" from the
task panel no longer has its schedule cleared: only a move to the Inbox
of the current workspace unschedules. Test added; the bulk review
handler is split over a few lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0187cnkXBm72ZSggGvrvUMKW
project-organization (Drop a task on a project, Move to the Inbox),
manual-ordering, start-dates and web-app now carry the change; it moves
to openspec/changes/archive/2026-11-28-inbox-drop-unplaces.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0187cnkXBm72ZSggGvrvUMKW
@pixari
pixari marked this pull request as ready for review November 28, 2026 13:39
@pixari
pixari enabled auto-merge November 28, 2026 13:39
@pixari
pixari added this pull request to the merge queue Nov 28, 2026
Any commits made after this event will not be merged.
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 28, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0187cnkXBm72ZSggGvrvUMKW
@pixari
pixari enabled auto-merge November 28, 2026 16:33
@pixari
pixari added this pull request to the merge queue Nov 28, 2026
Any commits made after this event will not be merged.
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 28, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0187cnkXBm72ZSggGvrvUMKW
@pixari
pixari enabled auto-merge November 28, 2026 17:46
@pixari
pixari added this pull request to the merge queue Nov 28, 2026
Any commits made after this event will not be merged.

This branch has not been deployed

No deployments
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.

New tasks not always appearing in inbox, and tasks can't be moved back to inbox

2 participants