Repository navigation
Tasks panel: choose the folder a new task goes in - #59
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1da7041163
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| // A folder deleted since it was chosen reads as Personal. | ||
| const base = folderFor(chosen, projects)?.id ?? null | ||
| const folderId = parsed.folderId ?? base | ||
| const typed = !!parsed.folderId && parsed.folderId !== base |
There was a problem hiding this comment.
Show recognition when the typed folder matches the selected folder
When the remembered/selected folder is already Acme and the owner types Call #acme, parsed.folderId === base makes typed false. The parser still strips #acme from the saved title, but the folder chip is filtered out and the button is not tinted or labelled “from the title,” so the owner receives no indication that visible text will be removed. Treat any parsed folder hint as typed, even when it resolves to the current folder.
Useful? React with 👍 / 👎.
| from `GET /api/todos/sheet` already filed: its own filing, else the sheet's default | ||
| folder (`docs/task-sheet.md`). Deleting a folder moves its tasks up to its project, | ||
| deleting a project makes them Personal, as with its chats. | ||
| - **Adding.** The "Add a task…" line at the top ends in a folder button: any project or |
There was a problem hiding this comment.
Update AGENTS.md with the new add-task behavior
This documents and implements a new Tasks-panel feature, but the Tasks panel entry in the repository operating manual still omits the selectable and remembered quick-add folder behavior. Update that entry in the same change so the repository map remains accurate as explicitly required.
AGENTS.md reference: AGENTS.md:L10-L12
Useful? React with 👍 / 👎.
| requestAnimationFrame(() => { | ||
| const at = document.activeElement | ||
| if (!at || at === document.body) input.current?.focus() | ||
| }) |
There was a problem hiding this comment.
Wait for a newly created folder before refocusing the task
When the owner creates a new folder from this picker, FolderPicker.make waits for createProject before calling onPick, but ComboPicker.choose closes the picker immediately without awaiting that action. This callback then refocuses the task field while its chosen value is still the previous folder, so pressing Enter promptly after creating the folder submits the task to the old folder; only later does the new folder become selected. Keep the add line pending until folder creation and onPick finish, or otherwise prevent submission during that interval.
Useful? React with 👍 / 👎.
Published from the private repository by oss-sync. - Tasks panel: choose the folder a new task goes in 6 files changed, 355 insertions(+), 42 deletions(-)
1da7041 to
1233f27
Compare
Published from the private repository by oss-sync.
6 files changed, 355 insertions(+), 42 deletions(-)