Skip to content

feat: Make Event Saving, Draft Mode, Publishing Clearer #4942

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

Closed
wants to merge 38 commits into from
Closed

feat: Make Event Saving, Draft Mode, Publishing Clearer #4942

wants to merge 38 commits into from

Conversation

maze-runnar
Copy link
Contributor

@maze-runnar maze-runnar commented Sep 2, 2020

Fixes #4673

Checklist

  • I have read the Contribution & Best practices Guide.
  • My branch is up-to-date with the Upstream development branch.
  • The acceptance, integration, unit tests and linter pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

@vercel
Copy link

vercel bot commented Sep 2, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/eventyay/open-event-frontend/655ziwvf5
✅ Preview: https://open-event-frontend-git-fork-maze-runnar-patch-2.eventyay.vercel.app

@maze-runnar
Copy link
Contributor Author

@iamareebjamal I have currently made changes for only first step wizard, if these changes are ok then I will proceed.

@maze-runnar maze-runnar changed the title enh: Make Event Saving, Draft Mode, Publishing Clearer WIP: Make Event Saving, Draft Mode, Publishing Clearer Sep 2, 2020
@mariobehling
Copy link
Member

Thanks!

For consistency please keep Publish/View/Preview buttons in the same order, shape, spacing as on event dashboard.

Compare e.g.
Screenshot from 2020-09-02 18-02-41

@codecov
Copy link

codecov bot commented Sep 2, 2020

Codecov Report

Merging #4942 into development will decrease coverage by 0.00%.
The diff coverage is 8.69%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #4942      +/-   ##
===============================================
- Coverage        22.82%   22.82%   -0.01%     
===============================================
  Files              485      485              
  Lines             5148     5170      +22     
  Branches            21       21              
===============================================
+ Hits              1175     1180       +5     
- Misses            3969     3986      +17     
  Partials             4        4              
Impacted Files Coverage Δ
app/components/forms/wizard/attendee-step.js 0.00% <0.00%> (ø)
app/components/forms/wizard/other-details-step.js 0.00% <0.00%> (ø)
.../components/forms/wizard/sessions-speakers-step.js 0.00% <0.00%> (ø)
app/components/forms/wizard/sponsors-step.js 0.00% <0.00%> (ø)
app/mixins/event-wizard.js 1.08% <0.00%> (-0.05%) ⬇️
app/components/forms/wizard/basic-details-step.js 20.83% <100.00%> (+2.26%) ⬆️
app/components/tabbed-navigation.js 53.33% <0.00%> (+20.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 112b8b3...7c75a5e. Read the comment docs.

@maze-runnar
Copy link
Contributor Author

adding preiew url on this page is giving error and blocking from publishing events.

@maze-runnar
Copy link
Contributor Author

Screenshot from 2020-09-02 22-56-07
Screenshot from 2020-09-02 22-55-48

@maze-runnar
Copy link
Contributor Author

adding cancel button without creating an event is not working, it can be added from the second wizard step or when user is not editing event first time.

@maze-runnar
Copy link
Contributor Author

@iamareebjamal I need help with this issue, like what should be the approach, is my approach right or any other efficient way?
and also

adding cancel button without creating an event is not working, it can be added from the second wizard step or when user is not editing event first time.

@maze-runnar
Copy link
Contributor Author

we can add a cancel and preview button once event is saved or published, but no way to know that event is saved at least once. can I add these buttons when event.state == "published"

@mariobehling
Copy link
Member

@iamareebjamal I need help with this issue, like what should be the approach, is my approach right or any other efficient way?
and also

adding cancel button without creating an event is not working, it can be added from the second wizard step or when user is not editing event first time.

Yes, that is expected. This is why the option in this case should be a "Discard" button. Eventbrite handles this in the same way. As long as an event is not "Saved as Draft" there can be no preview and it cannot be cancelled. Any information can only be discarded as long as the event is not saved.

@iamareebjamal
Copy link
Member

Like I mentioned in the issue, event.id is null for unsaved events

@vercel vercel bot temporarily deployed to Preview September 3, 2020 03:16 Inactive
@maze-runnar
Copy link
Contributor Author

it's working now, thanks @iamareebjamal
Screenshot from 2020-09-03 08-49-06
Screenshot from 2020-09-03 08-48-57
Screenshot from 2020-09-03 08-50-27

@maze-runnar
Copy link
Contributor Author

Do i need to ad this in every wizard step, or it will be only in first step?

@maze-runnar maze-runnar changed the title WIP: Make Event Saving, Draft Mode, Publishing Clearer feat: Make Event Saving, Draft Mode, Publishing Clearer Sep 3, 2020
@auto-label auto-label bot added the feature label Sep 3, 2020
@vercel vercel bot temporarily deployed to Preview September 3, 2020 06:21 Inactive
@vercel vercel bot temporarily deployed to Preview September 3, 2020 06:22 Inactive
Co-authored-by: Areeb Jamal <jamal.areeb@gmail.com>
@lgtm-com
Copy link

lgtm-com bot commented Sep 3, 2020

This pull request introduces 1 alert when merging 3dfe4d2 into 112b8b3 - view on LGTM.com

new alerts:

  • 1 for Syntax error

@iamareebjamal
Copy link
Member

@maze-runnar Update?

@vercel vercel bot temporarily deployed to Preview September 3, 2020 15:49 Inactive
@vercel vercel bot temporarily deployed to Preview September 3, 2020 15:50 Inactive
@lgtm-com
Copy link

lgtm-com bot commented Sep 3, 2020

This pull request introduces 1 alert when merging a218fda into 323c503 - view on LGTM.com

new alerts:

  • 1 for Syntax error

@@ -39,6 +39,10 @@ export default Component.extend(FormMixin, EventWizardMixin, {
return !!this.data.event.codeOfConduct;
}),

ticketsPresent: computed('data.event.tickets.@each', function() {
return this.data.event.tickets.length > 0;
}),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is present in all 3 components

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where i should put it?

Copy link
Contributor Author

@maze-runnar maze-runnar Sep 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can I put it in event-wizard in mixins? Will it work from there for all these components?

@iamareebjamal
Copy link
Member

@maze-runnar Your repo is deleted. I can't pull in changes to test

@maze-runnar
Copy link
Contributor Author

@maze-runnar Your repo is deleted. I can't pull in changes to test

can't it be tested on deployment URL please, or I have to create a new PR.

@iamareebjamal
Copy link
Member

I have to make changes and I can't do that unless I pull te changes

@maze-runnar
Copy link
Contributor Author

I have to make changes and I can't do that unless I pull te changes

ok so I will create a new PR.

@maze-runnar
Copy link
Contributor Author

go to #5011

@maze-runnar maze-runnar closed this Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wizard: Make Event Saving, Draft Mode, Publishing Clearer
3 participants