Skip to content

Allow embedding Ameliorate in other sites #659

@keyserj

Description

@keyserj

Describe your issue

Some related apps may benefit from including Ameliorate in their experience, enabling precise discussion of some problems related to their app. But in these cases, those apps probably prefer not to have their users leave the flow/context of their app.

Example: Digital Democracy Project has a mobile app that embeds Kialo to provide bill summaries that citizens can engage with. Their website embeds Kialo too (if you click Show Kialo Discussion on a bill's page).

Solution you'd like

Allow other apps/sites to embed Ameliorate.

Notes:

Alternatives you've considered

No response

Additional context

Want to remove similar things from the app header for #603 too (though that actually wants "log in" removed as well)

Technical ideas and questions

thoughts:

  • probably embed via iframe
  • seems like URL navigation can be a security issue? but URLs can just open in a new tab, that's fine.
  • each iframe is a new browsing context so maybe test for performance concerns

questions

  • can the embedded site still use its cookies/localstorage the same as when not embedded?
    • seems like the ameliorate.app localstorage is separate from [different-top-level-domain]/ameliorate.app localstorage. so embedding the playground results in persistence based on the host site. this seems fine
  • does iframe function differently from webview, if this is used in a native mobile app?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestother appsfor integrating into other apps

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions