Repository navigation
feat: add the Taskflow panel with Flo, plus lint, type and version checks - #13
Merged
Merged
Conversation
A second plugin in the marketplace, under panel/. /taskflow opens a pane listing every plan's task progress, active tasks, open questions and pull requests with links, with keys for /next-task, refresh, and deleting a plan folder after a confirmation. Plans are read from the git root's projectsDir.
The pane no longer ships as a separate taskflow-panel plugin. Its module loads from the main plugin's hooks.json, and its code is split into data, domain and ui folders.
Flo is now the portfolio robot's head in its own colors. Each terminal row holds two pixel rows, and the eyes change with the plan's mood.
The pane opens on a card per plan: title, progress, the task in progress, pull requests opened and open questions. A card's title or its digit opens the plan's detail page, where each pull request shows its branch and the worktree that has it checked out.
Adds a tsconfig with the plugin compiler settings, JSX through h and no DOM. Claude Code's plugin API types are copied into .claude-plugin/types/ locally and kept out of git, since each Claude Code version writes its own.
Single quotes, no semicolons, 120 columns. Quoted keys stay quoted, so the state key in types/index.d.ts keeps the shape sync.sh renames.
pane.tsx is the container: it reads the plugin state, picks the view and hands each component its data and handlers. The components take the surface's elements as a ui prop, since none of them is global. Flo now heads every view, its mood following the rows it is shown.
On the first load, a timer moves a three-pixel arc around a ring where Flo's eyes sit, one pixel every 100 ms. Refreshes keep showing the board. The half-block drawing moves into MascotSprite, shared by the mood header and the loader.
A row of buttons above Flo picks Auto, which follows the plan, or one of idle, working, blocked, asking, done and loading. The pane draws the header once, above every view.
Working glances and blinks, idle dozes, blocked flashes red, asking looks up while the antenna blinks, done blinks with green eyes. One clock, started with the session, advances every animation, the loading spinner included, in place of the per-use timers.
The components move into atomic-design folders: atoms for ProgressBar and MascotSprite, molecules for Mascot, Loading, PlanCard and PullRequestItem, organisms for MascotHeader, PlanList and PlanDetail. The pane's view switch becomes PaneContent, which gets its handlers as actions built in renderPane, since the engine refuses $ as a prop.
On the plan list, Flo's status counts the plans, how many are active (a task started, not every task done), the tasks in progress, blocked tasks and open questions. On a plan's page it names the plan's folder, its progress and the task that matters now. This replaces the mood line.
The plan page's status shows tasks done with a progress bar and percentage under the headline, in place of "nothing in progress", and the title and bar block below the header is gone. Button labels put the shortcut last, as in "← Plans (b)" and "Refresh (r)".
Each active task is a TaskItem: the status icon in its own column, then the id, status and owner on one line and the summary below. A long summary wraps under the task's text instead of back under the icon.
Each pull request shows its branch, then " - #490" linking to it once opened. One not opened yet is drawn light gray. The worktree line stays, only when the branch is checked out.
The pane's root takes at least the body's rows, and a spacer on the plan page takes the room left, so Next task and Delete workspace sit at the bottom. A page taller than the pane keeps them after its content.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tscrun by a Husky pre-commit hook, plus a check that the staged plugin version is above the default branch's. A.husky/pre-pushwrapper keeps running a local, untracked.git/hooks/pre-push.Test plan
npm run check(lint, format, type check, version check) passesclaude plugin test .: 13 passclaude plugin validate .passesorigin/main's