Skip to content

Allow task with subtask as an option for pinned task lists#63

Merged
marlonmarcello merged 4 commits into
mainfrom
feature/allow-task-subtask-lists
Jun 30, 2026
Merged

Allow task with subtask as an option for pinned task lists#63
marlonmarcello merged 4 commits into
mainfrom
feature/allow-task-subtask-lists

Conversation

@liamegan

Copy link
Copy Markdown
Member

Summary

Problem: current implementation explicitly expects pinned task lists to be task lists (Teamwork API explicitly differentiates between task lists and tasks with subtasks, and the current implementation does not account for this).

Solution: update the implementation to allow pinned task lists to be either task lists or tasks with subtasks.

Type of Change

  • [×] Feature
  • Bug fix
  • Refactor
  • Documentation
  • Tooling / CI / release

Local Verification

  • [×] bun run fmt
  • [×] bun run lint
  • [×] bun run check
  • [×] bun run build

Release Impact

  • [×] No release impact
  • Changeset added in .changeset/
  • Updates CLI behavior
  • Updates install/update behavior
  • Updates build/release packaging
  • Breaking change

Problem: current implementation explicitly expects pinned task lists to be task lists
(Teamwork API explicitly differentiates between task lists and tasks with subtasks,
and the current implementation does not account for this).

Solution: update the implementation to allow pinned task lists to be either task
lists or tasks with subtasks.
@liamegan liamegan requested a review from a team as a code owner June 30, 2026 20:07
@changeset-bot

changeset-bot Bot commented Jun 30, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: c45ecd1

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Teamwork pinned task list implementation so a pinned ID can represent either a Teamwork task list or a single task whose subtasks should be displayed, aligning WTC behavior with Teamwork’s API distinctions.

Changes:

  • Refactors task response parsing to reuse a shared normalization function.
  • Adds support for fetching and normalizing a task’s subtasks, plus a helper that chooses between task-list tasks vs subtasks for a pinned ID.
  • Updates the generated project config template to document that pinned IDs may refer to task lists or tasks-with-subtasks.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/api/teamwork/task-list-tasks.ts Adds shared normalization + new subtasks and “task list or subtasks” fetch path for pinned IDs.
src/api/config/templates.ts Updates YAML template comment to document expanded pinned ID meaning.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/api/teamwork/task-list-tasks.ts
liamegan added 3 commits June 30, 2026 13:22
Problem: current implementation explicitly expects pinned task lists to be task lists
(Teamwork API explicitly differentiates between task lists and tasks with subtasks,
and the current implementation does not account for this).

Solution: update the implementation to allow pinned task lists to be either task
lists or tasks with subtasks.

- Resolving a direct conflict where both branches rewrote the
getTeamworkTaskListTasks function. Main updated the function to try/catch and
error on failure, while this update pulls the logic out into a shared
normalizeTeamworkTasks function.
@marlonmarcello marlonmarcello merged commit b439d52 into main Jun 30, 2026
5 checks passed
@marlonmarcello marlonmarcello deleted the feature/allow-task-subtask-lists branch June 30, 2026 23:03
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.

3 participants