Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Remix projects without Utopia config / routes #5451

Open
7 tasks
liady opened this issue May 1, 2024 · 0 comments
Open
7 tasks

Support Remix projects without Utopia config / routes #5451

liady opened this issue May 1, 2024 · 0 comments

Comments

@liady
Copy link
Contributor

liady commented May 1, 2024

A vanilla project with an added remix npm package should show the pages tab (continuation of #5410), even if there are no pages configured yet.

  • 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 that tab requires Utopia config to be shown, that shouldn't be the case and is faulty behaviour. Eliminate it:

  • if 'add page' requires page template:
    • disable the button if the template does not exist, or there is no reference to one
    • for the Remix starter project, create two templates and add them to the config
  • if Favorites requires an entry in the Utopia config, make it work without it and then add the entry (creating the config file if needed)

if the whole tab contents still can't be shown:

  • add a corresponding failure state into the tab: Pages are not available in this project. You can add pages support by adding routes via the file browser (docs)
  • If we have additional info about the reason, add it below the message
@maltenuhn maltenuhn changed the title Support Remix projects without Utopia config / routes BLOCKED Support Remix projects without Utopia config / routes May 1, 2024
@maltenuhn maltenuhn changed the title BLOCKED Support Remix projects without Utopia config / routes Support Remix projects without Utopia config / routes May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant