-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Exporter: Dummy UI flow for export process #1126
Conversation
9c31a2e
to
28d5fdb
Compare
Would love to hear any feedback on the design @mrheston @rickybanister |
28d5fdb
to
d04e3ea
Compare
One thing we'll need to work out is how to make the download link disappear after some period, since the export file goes away eventually. If we're just going to poll for existence of the link, then the export process could probably just fire a job to remove the data we're polling for after some period. Probably we'll also want to remove that data upon initiation of a new export too, unless this is going to be something we can use to show multiple recent export files. I wonder if we should also make it clear that the export file will be emailed as well, or that it's ok to nav away and back to get the export file later. |
@dllh: Good point. Currently the link will disappear if the page is reloaded, so expired links will only be an issue if the page isn't reloaded within that timeframe. Although that's a valid concern especially for the desktop app that might go weeks between refreshes. Clicking the export button again currently removes the export information. |
Seems like something we can raise an issue for and not block this over. I think the same is true of my comment about setting expectations re email or navigating away. From my perspective, the design here is great, but we should probably get a thumbs up from an actual designer before moving forward. :) |
54ff052
to
7ca98fc
Compare
87ad1d8
to
4517a4c
Compare
There appears to be something off about the styling of the foldable card header. It seems you're using I believe the foldable card example simply puts the main text in a Not sure if it was meant to accommodate headings. cc @folletto |
also it would be nice if we could swap the arrow for the |
Actually, sorry for the confusing comment regarding h1 and h2— You can style those to be whatever you like, the component doesn't make any hard suggestions about it. In my design I used these for the header (regardless of the wrapping tag)
and
for the sub heading. |
Yeah. The component is neutral. It doesn't do any special styling in any way. :)
+1 |
4517a4c
to
207204a
Compare
207204a
to
9ff7838
Compare
77d7cf6
to
179c0e4
Compare
I noticed two small design things here:
This is looking really great though! |
@rickybanister, @folletto: I've just pushed a few changes to this PR in response to your feedback:
The screenshots in the description have been updated. |
@rickybanister: One thing I was thinking about since we switched to radio buttons is: After selecting one of the option 'Posts', 'Pages', or 'Feedback', how would you then go back to 'All' post types? |
Maybe the 'Export' button could be changed to say 'Export Complete Site', so that it's clear that the button won't take into account the settings below? |
How about |
ea559aa
to
f42921f
Compare
f42921f
to
c218481
Compare
I played with this a bit and it looked good to me, but it'd be good to get other eyes on the code. |
c218481
to
a4cc5e6
Compare
77a1804
to
6f9ec49
Compare
|
||
export function completeExport( downloadURL ) { | ||
notices.success( | ||
i18n.translate( 'Your export was successful! A download link has also been sent to your email' ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could use a period at the end of the sentence here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
@omarjackman please review this PR and let's try to get it landed. The code looks good to me, but I've spent a lot less time writing/reading Calypso code than I feel like is necessary for a thumbs up. |
// This will be replaced with polling to check when the export completes | ||
setTimeout( () => { | ||
dispatch( completeExport( '#', 'testing-2015-01-01.xml' ) ); | ||
//dispatch( failExport( 'The reason for failure would be displayed here' ) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would probably be a good place for a // TODO:
comment instead of the commented code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just here for convenience - since the API calls are not connected yet, uncommenting this line and commenting out the one above it will demonstrate what happens when an export fails.
This will be removed in #1359
@jordwest The code here looks solid to me however I haven't done much work with this new store logic to give a good review of it. Its a 👍 from me however I'd like to see someone else take a look at that portion. |
fe5deff
to
425c7af
Compare
Squashed commits: Exporter: Only allow one of Posts, Pages or Feedback to be selected Exporter: Improve styling of the text under Feedback heading to match design Exporter: Always show basic Export button, change text to clarify The button displayed above the advanced settings is now 'Export All', and is displayed even when the advanced settings are visible. Exporter: Change wording to suit the switch to radios
425c7af
to
780cb45
Compare
Exporter: Dummy UI flow for export process
Awaiting #500, #1670Blocks #1359
This PR implements the user interface functionality for the complete export process.
The original designs showed a popup notification upon completion, but this was decided against in favor of non-modal notices.
The content of the popup has instead been moved to aThe completion message now appears in a global notice with a button for download.CompactCard
displayed below the export settings.This non-modal notification will allow a user to navigate away from the export page and still receive a notice once the download file is ready.
FoldableCard
component instead ofCompactCard
FoldableCard
expand button with a gear icon (Awaiting FoldableCard: Allow custom action button icon #1670)Screenshots

## Export in Progress ### Basic Settings
### Advanced Settings
## Successful Export
## Failed Export