alter.email icon indicating copy to clipboard operation
alter.email copied to clipboard

Show a Before and After view of the raw code and rendered code

Open jkupczak opened this issue 4 years ago • 3 comments

Considering all of the transforming that's going on here there's a chance of unforseen/unwanted changes. I think showing the user their original raw code and rendered code side-by-side with the transformed code could help people identify issues with their selections.

jkupczak avatar Sep 30 '19 22:09 jkupczak

So right now we're showing:

Left pane Right pane
Original Source Transformed Source Transformed Preview

I'm not sure I understand how you suggest it should be instead, can you please elaborate/rephrase?

cossssmin avatar Oct 01 '19 06:10 cossssmin

I was thinking...

Left pane Right pane
Original Source Original Preview Transformed Source Transformed Preview

image

I was also thinking of a "Compare Previews" button that would:

  • toggle both of these views to ON,
  • match the scroll position,
  • and sync the scrolling so that you can scroll down to view the bottom of one email and the other email will scroll to match it.

Comparing mobile view versus mobile view might require us to rethink the center divider's functionality in this state. Or optionally just include another button for toggling container width for both views.

jkupczak avatar Oct 01 '19 15:10 jkupczak

Oh, right! Yeah, I'm on board with that 👍

I wouldn't add a button to toggle these on though, I want the UI to be as clean as possible. Users can simply click the tabs.

Scroll is very likely to be reset by previous actions anyway, so I wouldn't bother matching scroll position on tab change; instead, scrolling one preview tab would sync scroll with the other, which would basically do the same thing - just only when user interacts.

Regarding mobile previews, I am thinking of a dropdown in the preview tab, where you select a screen size. Selecting a size would simply change the iframe width.

I imagine something like this:

image

The dropdown would show up only if the tab is already active.

I also wouldn't sync iframe size change between the previews initially - that can be an option later down the road, in a Settings area (where we can also provide option persistance controls, as mentioned in #5).

cossssmin avatar Oct 02 '19 09:10 cossssmin