Skip to content

Online project tab: what to show when offline #186

Description

@Jing-yilin

Part of the on-demand projects plan (examples no longer bundled; opening a community project or example shows it online at superproto.dev/p/<id>/<name> in an app tab, and Duplicate downloads it).

For now: the online tab is a plain iframe of that URL. Offline, it shows whatever the embedded browser shows for a failed load. No special handling.

Later, pick one:

  • Show a "You're offline" state in the tab, with Duplicate offered only if the project is already in the sp fetch cache (~/.cache/super-prototyping/projects/<id>/).
  • Or fall back to the cached copy, read-only, when one exists.

Neither is needed to ship the unbundling; revisit when someone hits it.

🤖 Generated with Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions