utopia icon indicating copy to clipboard operation
utopia copied to clipboard

The Remix Starter Project (from projects page) doesn't show the Pages tab

Open maltenuhn opened this issue 9 months ago • 0 comments

Problem We now have the remix starter project with a few pages. It should help us and folks using Remix to easily show and test the remix-specific capabilities of Utopia, but it doesn't quite do that yet:

  1. the remix scene in the project is empty and non-navigable
  2. there is a non-remix scene with content - which distracts
  3. there's no pages tab

Image

Solution

  • [x] Make the default remix scene render content, and include a link so you can navigate
  • [x] Delete the non-remix scene in the project

The following was moved to #5451 :

  • [ ] Show the pages tab based on some condition (eg: @remix being imported and / or routes existing) that works in a project without a .utopia config file (e.g. @remix package being imported, routes existing etc)

If we need the config to populate that tab, use the following strategies to make that not the case

  • [ ] if 'add page' requires page template, disable the button if none such exists
  • [ ] if 'favorites' requires an entry in the Utopia config, make it work without it and then add the entry
  • [ ] if the whole tab contents still can't be shown, add a corresponding failure state into the tab, with instructions in <Subdued>, e.g. `

    To browse and edit pages here, you need to:

    1. Do thing 1 by doing a, b, c
    2. Do thing 2 by doing d,e,f
    3. Avoid doing thing 3

Finally, make the page creation button work in the default template

  • [ ] add an (empty) page template to the remix starter project

maltenuhn avatar Apr 27 '24 08:04 maltenuhn