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

Automatically generated navigation homepage #226

Open
antonymilne opened this issue Dec 18, 2023 · 0 comments
Open

Automatically generated navigation homepage #226

antonymilne opened this issue Dec 18, 2023 · 0 comments
Labels
Good first issue Good first issue for beginners Nice to have 🍒 Possible projects for a rainy day Status: Help Wanted 🙏 Issue/PR needs extra attention

Comments

@antonymilne
Copy link
Contributor

antonymilne commented Dec 18, 2023

The Homepage on https://vizro.mckinsey.com/ is currently written entirely manually but follows a very clear formula. Following #176 we now have a field Page.description and so all of the ingredients are in place with the exception of the page image. Somehow we should make it possible to automatically generate such a homepage. In theory this sounds pretty easy to do.

Major considerations

  • What would be the right user API for it? A new HomePage model that subclasses Page? A Homepage model that includes a Page model? Just some Python helper functions? We'd like to follow our paradigm of extensibility and customisability and enable something that's possible from YAML too 🤔
  • How does this all relate to Navigation and different ways of grouping pages in hierarchy?

Minor considerations

  • How does page image fit into this? Should we change these to Google material icons? Do we want a Page.image field that's also used in meta tags (originally existed in Updating Meta Tags #176 but removed)? Or to automatically pick up an image with filename page.id? Could we generate preview images of the pages automatically as discussed in final point of this comment and subsequent responses?
@antonymilne antonymilne added the Nice to have 🍒 Possible projects for a rainy day label Dec 18, 2023
@Joseph-Perkins Joseph-Perkins added Status: Help Wanted 🙏 Issue/PR needs extra attention Good first issue Good first issue for beginners labels Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good first issue Good first issue for beginners Nice to have 🍒 Possible projects for a rainy day Status: Help Wanted 🙏 Issue/PR needs extra attention
Projects
None yet
Development

No branches or pull requests

2 participants