Skip to content

fix(companion): event type links for org user#5

Open
tomerqodo wants to merge 7 commits intocursor_full_base_fixcompanion_event_type_links_for_org_user_pr5from
cursor_full_head_fixcompanion_event_type_links_for_org_user_pr5
Open

fix(companion): event type links for org user#5
tomerqodo wants to merge 7 commits intocursor_full_base_fixcompanion_event_type_links_for_org_user_pr5from
cursor_full_head_fixcompanion_event_type_links_for_org_user_pr5

Conversation

@tomerqodo
Copy link
Copy Markdown

@tomerqodo tomerqodo commented Jan 25, 2026

Benchmark PR from agentic-review-benchmarks#5


Note

Updates link handling to rely on API-provided bookingUrl instead of constructing URLs, and polishes several UI elements.

  • Replace link construction with bookingUrl for preview/copy/share in event type detail, lists, iOS/web screens, and browser extension; add bookingUrl to EventType types and plumb through components; remove buildEventTypeLink and related usage; guard actions when bookingUrl is missing
  • BasicsTab URL field now derives its display prefix from bookingUrl
  • Browser extension (content/LinkedIn): prefer bookingUrl in menus, copy/insert, and preview actions; update cached/type shapes accordingly
  • UI tweaks: change accent colors from blue to black, align pressable/switch containers, and remove some header borders

Written by Cursor Bugbot for commit 161a777. Configure here.

dhairyashiil and others added 7 commits January 25, 2026 12:01
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 <>
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

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

Choose a reason for hiding this comment

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

Booking URL state never populated from fetched event type

High Severity

The bookingUrl state is initialized as an empty string but is never set from eventType.bookingUrl in applyEventTypeData. This causes handlePreview and handleCopyLink to always show "Booking URL not available. Please save the event type first" even when the event type has a valid bookingUrl from the API.

Additional Locations (1)

Fix in Cursor Fix in Web

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.

2 participants