Let schedule entries be highlighted and carry a join link

RO
2d ago
+231-6

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.