Skip to content

Let schedule entries be highlighted and carry a join link - #1051

Open
robzolkos wants to merge 2 commits into
mainfrom
cli/schedule-highlight-join-link-10476950659
Open

robzolkos wants to merge 2 commits into
mainfrom
cli/schedule-highlight-join-link-10476950659

Conversation

@robzolkos

@robzolkos robzolkos commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • schedule create and schedule update take --highlight and --join-url, covering the SDK's highlighted and url fields on CreateScheduleEntry and the update/replace path.
  • update sends neither unless asked, so Basecamp keeps the entry's current highlight and join link (both are preserved on omission by the full-replace PUT). --no-highlight or --highlight=false removes the highlight. --no-join-url or --join-url "" removes the link. Using both forms of the same flag at once is a usage error, and nothing is sent.
  • The join link goes out as url and reads back as join_url, as the SDK documents. The response's url is still the entry's own API URL. show output (JSON and human) already carries join_url and highlighted. New tests now lock that in.
  • On create, an empty --join-url is left out, since a new entry has no link to clear.

Draft status is in #1019 (schedule create --draft), so this PR leaves it out. The two touch neighbouring lines in schedule.go and .surface, so whichever merges second needs a trivial rebase.

Part of the Basecamp card "[CLI] Schedule entries: highlight, join link and draft status".

Verification

  • New request-body tests for create and update failed before the change (unknown flag) and pass now. They cover set, explicit false/empty, the --no-* forms, omission (no highlighted or url key on an unrelated update), conflicts, and that join_url is never sent.
  • Full local bin/ci passed on this commit.
  • Not runtime-verified against a local bc3. The isolated dev server needs bin/setup in the shared bc3 checkout first, and that was out of scope here.

Summary by cubic

Adds --highlight and --join-url flags to schedule create and schedule update so schedule entries can be highlighted and carry a join link.

  • On update, neither field is sent unless asked for, so Basecamp preserves the entry's current highlight and link; --no-highlight, --no-join-url, and --join-url "" remove them.
  • The join link is sent as url and reads back as join_url; show output already exposes both.
  • On create, an empty --join-url is omitted since a new entry has no link to clear.
  • Using both forms of the same flag at once is a usage error and nothing is sent, including when the --no-* form is given an explicit false.

Written for commit 623df87. Summary will update on new commits.

View guided diff Turn on auto-fix

schedule create and update take --highlight and --join-url. Update sends
neither unless asked, so Basecamp keeps what the entry has; --no-highlight,
--no-join-url or --join-url "" remove them. The join link goes out as url
and reads back as join_url, as the SDK documents.
@robzolkos
robzolkos requested a review from a team as a code owner November 22, 2026 04:42
Copilot AI balanced review requested due to automatic review settings November 22, 2026 04:42
@github-actions github-actions Bot added commands CLI command implementations tests Tests (unit and e2e) docs labels Nov 22, 2026

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.

🟡 Changes recommended

Conflict checks miss explicitly supplied false values for --no-highlight and --no-join-url, allowing conflicting flags to write changes instead of returning the promised usage error.

1 open issue
What changed in this PR

Adds schedule-entry highlight and join-link controls to the CLI, exposing existing SDK fields without changing unrelated values during updates. Draft support remains separate.

Changes:

  • Adds --highlight and --join-url to create and update, plus removal flags for update.
  • Adds request-body and output tests for setting, clearing, omission, conflicts, and read-back fields.
  • Updates API coverage notes and the CLI surface snapshot.

[!TIP]
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

File Description
internal/​commands/​schedule.go Adds flags, validation, help examples, and SDK request fields.
internal/​commands/​schedule_highlight_test.go Tests write behavior and JSON/Markdown output.
API-COVERAGE.md Documents supported fields and clearing behavior.
.surface Records the new schedule command flags.

Review effort: Balanced

Comment thread internal/commands/schedule.go Resolved
--highlight with --no-highlight=false, and --join-url with
--no-join-url=false, slipped past the conflict check, which read the
--no- flag's value rather than whether it was given.
Copilot AI balanced review requested due to automatic review settings November 22, 2026 04:59

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.

🟢 Approved

No active review issues remain for the schedule highlighting and join-link changes.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

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

commands CLI command implementations docs tests Tests (unit and e2e)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants