webscopeio/mailingui

Templates Part 1 Enhancing the Preview mode for sub directories

Closed this issue · 1 comments

We want to create categories for the templates. So far we may have three categories:

  • Events
  • Marketing
  • Newsletter

Therefore, I want to organize the src/emails directory like this:

  • src/emails/events
  • src/emails/marketing
  • src/emails/newsletter

On each of these directories I will have the emails that belong to that category. The idea is to enhance preview mode to handle these sub directories.

Open for proposals but here's what I expect to see on each page

On the route /preview

I want to see preview mode without any email selected, and with a text prompting the user to select a category. The file navigator should display the three categories (belonging to the actual folders found in the directory)

ON the route /preview/[category]

I want to see preview mode without any email selected, and with a text prompting the user to select an email. Similar to what we have now. The file navigator should display all the emails found in that directory

Please let me know if you have any questions

Leave all templates in a category called "general".