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

fixes insert step functionality #1266

Merged
merged 4 commits into from
Oct 28, 2019
Merged

fixes insert step functionality #1266

merged 4 commits into from
Oct 28, 2019

Conversation

keshav234156
Copy link
Member

@keshav234156 keshav234156 commented Oct 1, 2019

Fixes #1261
20191001165455-4fcb4dbd00 gif-2-mp4 com

Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!

  • tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR -- or run tests locally with npm test
  • code is in uniquely-named feature branch and has no merge conflicts
  • PR is descriptively titled
  • ask @publiclab/is-reviewers for help, in a comment below
  • Insert-step functionality is working correct as expected.

We're happy to help you get this ready -- don't be afraid to ask for help, and don't be discouraged if your tests fail at first!

If tests do fail, click on the red X to learn why by reading the logs.

Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Please make sure to get at least two reviews before asking for merging the PR as that would make the PR more reliable on our part
Thanks!

@codecov
Copy link

codecov bot commented Oct 1, 2019

Codecov Report

Merging #1266 into main will increase coverage by 0.19%.
The diff coverage is 12.5%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1266      +/-   ##
==========================================
+ Coverage   32.07%   32.26%   +0.19%     
==========================================
  Files         107      107              
  Lines        1986     1971      -15     
  Branches      296      292       -4     
==========================================
- Hits          637      636       -1     
+ Misses       1349     1335      -14
Impacted Files Coverage Δ
examples/lib/intermediateHtmlStepUi.js 11.36% <12.5%> (+1.19%) ⬆️

@keshav234156
Copy link
Member Author

@jywarren @harshkhandeparkar can you please review this PR!!!

@harshkhandeparkar
Copy link
Member

Do you know why this is happening?
insert-bug

@keshav234156
Copy link
Member Author

@harshkhandeparkar could you please tell the step to reproduce the above

@harshkhandeparkar
Copy link
Member

Add a few steps, insert any step and try collapsing the dropdowns.

@keshav234156
Copy link
Member Author

there might be some error here that is causing this behavior

$step('.toggle').on('click', () => {

This behaviour is shown in beta version as well.So don't think that it has been caused by this PR.There are lots of other error in examples/lib/defaultHtmlStepUi.js,Will open a issue for same

@harshkhandeparkar
Copy link
Member

ok. ty.

@keshav234156
Copy link
Member Author

@jywarren can you please review this PR!!!

if (insertStepSelect.val() == 'none') return;

var newStepName = insertStepSelect.val();
function insert(id, $step, newStepName) {
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 looking good -- do you think we could make the name here more specific? Like, insert what? Insert step, right?

Thank you!!!

Copy link
Member Author

Choose a reason for hiding this comment

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

@jywarren was thinking the same but insertstep was already defined in line 77,so left as it is

@vaibhavmatta vaibhavmatta self-requested a review October 27, 2019 20:20
@jywarren
Copy link
Member

Thanks for the review @vaibhavmatta have you tested this locally and confirmed the fix? Thanks all!

@vaibhavmatta
Copy link

@jywarren Yes!! Though I tested it for the first time, but it worked fine for me. THANKS

@jywarren jywarren merged commit b1600af into publiclab:main Oct 28, 2019
@jywarren
Copy link
Member

Great, thanks all!!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bugs in insert step functionality
4 participants