Growth · Feature state machine

Social Media Bridge

A captured photo moves from the camera preview through event tagging, multi-network posting, and post-publish management — Facebook, LinkedIn and X, with API keys that never leave the device.

State diagram

stateDiagram-v2
    [*] --> CameraOpen
    CameraOpen --> Captured : photo taken
    Captured --> PreviewEditing : posting preview dialogue
    PreviewEditing --> EventTagging : confirm location tag + share targets

    state EventTagging {
        [*] --> SelectExisting
        [*] --> EnterTitle
        [*] --> NameLater
    }

    EventTagging --> Posting : proceed
    Posting --> Posted : all selected networks succeed
    Posting --> PartiallyFailed : one or more networks fail

    Posted --> Recorded : link, coords, timestamp, title, tags stored
    Recorded --> Deleted : "Delete image" (per network)
    Recorded --> InfoEdited : "Edit info"
    Recorded --> EventReassigned : "Set event"
    InfoEdited --> Recorded
    EventReassigned --> Recorded

    Deleted --> [*]
    

States

StateMeaning
CameraOpen / CapturedModal camera preview, then a taken photo.
PreviewEditingThumbnail + frame preview; choose location tag and share targets.
EventTaggingPick a nearby event, name one, or defer with "Name later".
Posting / Posted / PartiallyFailedPublish attempt across selected networks and its outcome.
RecordedLong-lived state: link, coordinates, timestamp, title and tags kept.
Deleted / InfoEdited / EventReassignedPost-publish actions from the record's context menu.

Reading the diagram