Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Briar Desktop Briar Desktop
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 222
    • Issues 222
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 18
    • Merge requests 18
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • briarbriar
  • Briar DesktopBriar Desktop
  • Merge requests
  • !61

Interactive previews of composable functions

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Mikolai Gütschow requested to merge interactive-preview into main Dec 01, 2021
  • Overview 3
  • Commits 1
  • Pipelines 3
  • Changes 3

As the preview embedded into IntelliJ is not working yet very stable, I tried to adapt @sebkur's approach of having additional entrypoints to specific screens for UI testing to the Compose world.

With this, adding a preview for a (set of) composable(s) is as easy as

fun main() = preview {
    ComposableComponent()
}

Also adding interactive elements to change the data model turned out to be very simple and convenient due to the declarative nature of Compose.

image

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: interactive-preview