Skip to content

[Phase 5] Per-Order HubSpot Sync Status on Order Detail Page #37

Description

@ViRUS-0-0

Description

Organisers often look up a specific order to check on it. Right now the order detail page has no indication of whether that order has been synced to HubSpot, when it last synced, or whether it failed. This issue adds a small HubSpot status box directly on the order detail page.

Tasks

  • Add a "HubSpot" section to the order detail page in the plugin's order detail signal/hook
  • The section shows: current sync status in plain language (e.g. "Synced", "Waiting to sync", "Failed — could not reach HubSpot"), and when it last synced successfully
  • Add a "Sync now" button that queues the sync task for that order immediately, regardless of whether auto-sync is on or off
  • The "Sync now" button is disabled with a tooltip if HubSpot is not connected for that event
  • If the order has never been synced and there is no sync record, show "Not synced yet" with a "Sync now" button
  • After clicking "Sync now", the button changes to "Queued" temporarily so the organiser knows something happened
  • Write tests checking: correct status shown for each state (pending, synced, failed, never synced), button disabled when not connected, clicking sync queues the task

Acceptance Criteria

  • Every order detail page shows the current HubSpot sync status for that order
  • "Sync now" works and gives immediate visual feedback
  • The button is disabled when HubSpot is not connected
  • The status reflects the actual sync record, not a hardcoded value

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions