Skip to content

Conversation

@tomerqodo
Copy link

Benchmark PR from qodo-benchmark#706

dhairyashiil and others added 7 commits January 21, 2026 15:42
Addresses Cubic AI review feedback (confidence 9/10): The username was
hardcoded to 'username' but still used by BasicsTab as a fallback for
URL display when bookingUrl is unavailable. This restores the useEffect
that fetches the actual username from CalComAPIService.getUsername().

Co-Authored-By: unknown <>
@augmentcode
Copy link

augmentcode bot commented Jan 22, 2026

🤖 Augment PR Summary

Summary: Updates the Companion app and browser extension to use an API-provided bookingUrl for event type links (instead of constructing links from username + slug), improving link correctness for org/team users.

Changes:

  • Event type list (iOS + cross-platform): copy/share/preview actions now use eventType.bookingUrl with guardrails when missing
  • Event type detail: preview/copy actions updated to open/copy a booking URL, and bookingUrl is passed into the Basics tab
  • Event type list item components now display a URL derived from bookingUrl when available
  • Browser extension content scripts + LinkedIn integration prefer bookingUrl when opening/inserting booking links
  • Removes buildEventTypeLink from CalComAPIService and adds bookingUrl to the EventType type
  • UI polish: adjusts some icon/text colors and adds explicit flex alignment styles in a few places

Technical Notes: This relies on API V2 returning a full booking URL per event type; UI/extension behavior now depends on that field being present.

🤖 Was this summary useful? React with 👍 or 👎

Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

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

Review completed. 2 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

const [conferencingOptions, setConferencingOptions] = useState<ConferencingOption[]>([]);
const [conferencingLoading, setConferencingLoading] = useState(false);
const [eventTypeData, setEventTypeData] = useState<EventType | null>(null);
const [bookingUrl, setBookingUrl] = useState<string>("");
Copy link

Choose a reason for hiding this comment

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

bookingUrl is introduced as state here but never set anywhere (no setBookingUrl(...) usage), so handlePreview/handleCopyLink will always hit the "Booking URL not available" error path and BasicsTab will never receive the real URL.

Other Locations
  • companion/app/(tabs)/(event-types)/event-type-detail.tsx:949
  • companion/app/(tabs)/(event-types)/event-type-detail.tsx:957
  • companion/app/(tabs)/(event-types)/event-type-detail.tsx:1430

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎

const bookingUrl = `https://cal.com/${
eventType.users?.[0]?.username || "user"
}/${eventType.slug}`;
const bookingUrl =
Copy link

Choose a reason for hiding this comment

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

This copy-to-clipboard handler still hardcodes https://cal.com/{username}/{slug} and ignores eventType.bookingUrl, so org/team event type links can still be copied incorrectly even though other handlers in this file now prefer bookingUrl.

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎

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