Skip to content

chore: remove the unused Today screen and other dead code - #211

Open
ayuxy027 wants to merge 4 commits into
CopilotKit:mainfrom
ayuxy027:chore/remove-dead-code
Open

ayuxy027 wants to merge 4 commits into
CopilotKit:mainfrom
ayuxy027:chore/remove-dead-code

Conversation

@ayuxy027

Copy link
Copy Markdown
Contributor

What this removes

Code that nothing uses anymore, so it doesn't have to be read, kept in sync or maintained:

  • The Today screen (about 315 lines in screens.tsx). It's never shown: the app sends the "today" section to Chat, and no file imports the screen. This has been the case since the first release. The redirect from "today" to Chat stays, so existing links still work. Three imports that only this screen used are removed with it.
  • ChatWork in agent-ui.tsx. Nothing renders it; tasks inside a chat are shown by thread-artifacts.tsx.
  • ExecutionBackend in the domain package. No code implements or uses it.
  • The toolCallId prop on DesktopToolCard. The card never reads it, but both places that show the card had to pass it.

Helpers these pieces shared with live code (TaskCard's compact mode, Mascot, the calendar date helpers) are still used elsewhere and are kept.

How I checked

  • Searched the whole repository for every removed name: nothing else refers to them.
  • pnpm lint, pnpm typecheck, pnpm test, pnpm build:server and pnpm build:web pass.
  • No behavior change, so no new tests.

Each removal is a separate commit, so any of them is easy to drop if you'd rather keep it.

TodayScreen is never rendered: the app opens Chat for the 'today' section and
no file imports the screen. Remove it and the imports only it used. The
'today' to Chat redirect stays for existing links.
Nothing renders ChatWork; tasks in a chat are shown by thread-artifacts.
The card never read it, but both callers had to pass it.

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.

1 participant