-
Notifications
You must be signed in to change notification settings - Fork 210
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
contrast slider and apply buttons broken in main branch UI #1238
Comments
Probably we can go with react and start remaking everything. Including the tests from the start. What do you say @jywarren @publiclab/is-reviewers ? |
I'd love to be a part of the remake! Very interesting! @jywarren, since we are considering a rebuild, could this be the refactor we were talking about (for the asynchronous aspects of IS)? |
This issue is only talking about the UI part which is totally broken right
now.
…On Fri, 30 Aug, 2019, 3:13 AM Pranshu Srivastava, ***@***.***> wrote:
I'd love to be a part of the remake! Very interesting! @jywarren
<https://github.com/jywarren>, since we are considering a rebuild, could
this be the refactor we were talking about (for the asynchronous aspects of
IS)?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1238?email_source=notifications&email_token=AIJI5HYQKUR2TX2AB6V66D3QHA7JRA5CNFSM4ISEZJFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5P5JKY#issuecomment-526374059>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIJI5H3QMZYGGTOOW7HWNR3QHA7JRANCNFSM4ISEZJFA>
.
|
I have a lot of experience in react. I have built full websites with it.
Backend, animations with react spring etc. I think will start the project
in my repo. I will let others know when the basic project is ready.
…On Fri, 30 Aug, 2019, 8:41 AM M K, ***@***.***> wrote:
This issue is only talking about the UI part which is totally broken right
now.
On Fri, 30 Aug, 2019, 3:13 AM Pranshu Srivastava, <
***@***.***> wrote:
> I'd love to be a part of the remake! Very interesting! @jywarren
> <https://github.com/jywarren>, since we are considering a rebuild, could
> this be the refactor we were talking about (for the asynchronous aspects of
> IS)?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#1238?email_source=notifications&email_token=AIJI5HYQKUR2TX2AB6V66D3QHA7JRA5CNFSM4ISEZJFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5P5JKY#issuecomment-526374059>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AIJI5H3QMZYGGTOOW7HWNR3QHA7JRANCNFSM4ISEZJFA>
> .
>
|
@harshkhandeparkar link me with the repo. I will be helping you :) |
Sure
…On Fri, 30 Aug, 2019, 10:43 AM Harshith Pabbati, ***@***.***> wrote:
@harshkhandeparkar <https://github.com/HarshKhandeparkar> link me with
the repo. I will be helping you :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1238?email_source=notifications&email_token=AIJI5H4FHTZIPW5JIB55ULTQHCUAXA5CNFSM4ISEZJFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5QR2KA#issuecomment-526458152>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIJI5HYSOCQRFIGG2XOGAY3QHCUAXANCNFSM4ISEZJFA>
.
|
Hi all, I've changed the title. Thank you for catching this issue ❤️ However, I want to really emphasize that:
Thank you all for your support and contribution to the library. I really want to refocus on UI testing as our number 1 priority before any other projects are acted upon. I definitely share Harsh's concern about the cycle of UI bugs we have faced, and I think UI testing is the most important thing we can do to catch them! |
@jywarren I understand what you want to say. I think you didn't get why I said we should start with a new framework. This is so that we can make a new start. We could add tests along the way, from the start itself. A new UI would clean the code and protect it from future breakage. |
Thanks Harsh, i am just concerned that adding UI tests along the way is what we are already doing, but maybe not thoroughly enough, you know? What do you think of accelerating our UI testing work as our very top priority, as the thing that can most protect the code from breakage. This can lay important groundwork for a /new/ UI project, but that kind of project may be really substantial and we'll need UI tests to safely demonstrate that it is not introducing new bugs itself. I'm really excited about the potential for new projects like that, but I'm very cautious about pursuing them /before/ investing our time in UI testing, because that feels like how we got here in the first place. That's why i am very 🎉 for your number 2 point above. What do you think of that as a plan? |
Another benefit is that react takes care of the service worker and caches automatically. We just need to create a new clear cache btn. |
@jywarren I actually said that the two things can be done simultaneously. We can still develop this UI and the new one will be developed in one of my repos (as discussed above). We will slowly start using the new UI once it is ready. Until then, no need to worry, the main repo will not be affected. |
@rexagod @harshithpabbati the new repo is here https://github.com/HarshKhandeparkar/image-sequencer-ui. I will add you two as maintainers if you want. |
I have added the basic scaffolding so far. Now we can build upon it. @harshithpabbati @rexagod @jywarren @publiclab/is-reviewers |
Issue regarding this in my repo: https://github.com/HarshKhandeparkar/image-sequencer-ui/issues/2 |
Hi Harsh -- if you build a new UI, will the tests be applied here in this repository, and the new UI run against them? I left more notes in #1000 as well. Thank you! |
I will make sure that the new UI has all the necessary tests. The UI can be
tested in its own repo if we split the repos or a new sub-project can be
made inside the `examples/` which I won't recommend.
Instead, my plan is to use a separate UI repo as a github submodule in the
main repo.
…On Mon, 2 Sep, 2019, 1:29 AM Jeffrey Warren, ***@***.***> wrote:
Hi Harsh -- if you build a new UI, will the tests be applied here in this
repository, and the new UI run against them? I left more notes in #1000
<#1000> as well. Thank
you!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1238?email_source=notifications&email_token=AIJI5H3FYSBRFSU32KA2OHDQHQNINA5CNFSM4ISEZJFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5UJQ2A#issuecomment-526948456>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIJI5H73NUWXYMZSA53WCDLQHQNINANCNFSM4ISEZJFA>
.
|
Lol, I found a new bug. This is crazy. If you click on the step collapse btn and if you have multiple steps, clicking on the load-image step collapses something totally different. After some time, all the collapse btns break. |
I also agree with @jywarren that right now, UI testing should be our top priority and all those changes related to new UI frameworks should be our next priority. Secondly, I think using a UI framework like React does not guarantee that our UI doesn't break again. After that, I seriously believe that shifting to these can be a better option for us. CC: @jywarren @blurry-x-face |
Switching to React will make the code cleaner and manageable. If we are to
write tests now, we need to first fix the bugs(some of which are listed
here). The code is already very messy and fixing bugs is very difficult.
This is why I think we should already start developing a new UI
simultaneously so that we can switch to it asap.
…On Tue, 3 Sep, 2019, 1:56 AM Slytherin, ***@***.***> wrote:
I also agree with @jywarren <https://github.com/jywarren> that right now,
UI testing should be our top priority and all those changes related to new
UI frameworks should be our last priority.
Secondly, I think using a UI framework like React does not guarantee that
our UI doesn't break again.
Personally, I am also a react nanodegree graduate and the project, if goes
with react is a great opportunity, but at this point of time, the main
concern is getting each aspect of our library go smooth and I think we
should use our full force of developers in that.
After that, I seriously believe that shifting to these can be a better
option for us.
CC: @jywarren <https://github.com/jywarren> @blurry-x-face
<https://github.com/blurry-x-face>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1238?email_source=notifications&email_token=AIJI5HYA76M5BSYI2B5QRHDQHVZIZA5CNFSM4ISEZJFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5WQHAA#issuecomment-527238016>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIJI5H4JKBPC3YYHT5K2PZTQHVZIZANCNFSM4ISEZJFA>
.
|
Thanks all for your thoughts. I have almost gotten HTML Jasmine UI tests running here, but I think that to truly test them in the browser we need to start tracking dist files again, although we can def. leave them .gitignored. #1242 or is there another way to run the tests? Like, could we add a |
Can a grunt task run the tests? |
Yes, that's possible; you mean for better integration so we have like a
build, then test, task, and then a task which does those two?
…On Thu, Sep 5, 2019 at 4:30 AM Harsh Khandeparkar ***@***.***> wrote:
Can a grunt task run the tests?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1238?email_source=notifications&email_token=AAAF6JYPZVLS2NNSVFURI7LQIC7O7A5CNFSM4ISEZJFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD56JNWQ#issuecomment-528258778>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAF6J5KCOEDZJFBBU753KLQIC7O7ANCNFSM4ISEZJFA>
.
|
A grunt task which builds and then runs tests.
On Fri, 6 Sep, 2019, 3:26 AM Jeffrey Warren, <[email protected]>
wrote:
… Yes, that's possible; you mean for better integration so we have like a
build, then test, task, and then a task which does those two?
On Thu, Sep 5, 2019 at 4:30 AM Harsh Khandeparkar <
***@***.***>
wrote:
> Can a grunt task run the tests?
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <
#1238?email_source=notifications&email_token=AAAF6JYPZVLS2NNSVFURI7LQIC7O7A5CNFSM4ISEZJFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD56JNWQ#issuecomment-528258778
>,
> or mute the thread
> <
https://github.com/notifications/unsubscribe-auth/AAAF6J5KCOEDZJFBBU753KLQIC7O7ANCNFSM4ISEZJFA
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1238?email_source=notifications&email_token=AIJI5H5IKP7IOMZKY2CC6ITQIF6A5A5CNFSM4ISEZJFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6A6D4A#issuecomment-528605680>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIJI5H72WCG7LCPPDUHGHWTQIF6A5ANCNFSM4ISEZJFA>
.
|
@jywarren @publiclab/is-reviewers please have a look at https://github.com/HarshKhandeparkar/image-sequencer-ui/pull/5 |
I'm closing this now, in favor of the great progress we've made in Jest UI tests, and have copied relevant individual bug reports by @harshkhandeparkar into #1369 (comment) for follow-up with specific UI tests. Thanks! Specifically, the original reported issues were:
Confirmed these work in GitPod on latest #1695 release candidate, and moving any remaining ones to #1369. Thanks!!! |
The UI has broken again. 😞
NOTE: THE LIVE DEMO IS WORKING
Where/How to reproduce
The current beta site has this problem. (NOTE: The live demo is working fine)
OR
clone the repository and
npm start
Fix
Finally, after a month, the UI will break, again.
A much better, long-term solution
(this could be a big step): Use react or some other framework.:
Frameworks make the management of UI super easy. Testing UI in react is a piece of cake (due to jest)
Add as many tests as possible: Extensively testing the UI code will make sure that nothing will break in the future.
Clean up the old code: Using some framework will compel us to clean up the old UI code which is a big mess at this point.
Isolate UI from the main library: This is the biggest step so far, but has to be done. HAS TO BE. Currently, the UI doesn't even work on some browsers. The files are built using grunt which is old (webpack is much better) We'll have to include the library as a dependency in the UI code and isolate the two completely. We could also create a new repo for it(as most frameworks need this)
We can use es6: The newest features in JS(es6) can be used without worrying about browser compatibility. This will make the code cleaner and better.
How do we do this?
Since we have to start somewhere, sometime(before the UI breaks completely), we'll have to test this.
Someone could try this in their own repo and if the results are good enough, we can create a repo in the organization.
Until the new UI is completely developed, we will have to stick to the old one.
Once the new UI is complete, we could slowly switch to it by initially having both and then stopping updates to the old one.
Frameworks like react create a complete static build which can be directly inserted in the
examples/
folder for testing changes to the main library(local demo,npm start
). If an issue is found in the UI, a PR can be opened in the UI repo and subsequently once the issue has been completely fixed, the fix can be integrated into theexamples/
.This will allow for better maintenance of both the sections of this library. More than a single PR could be merged at once and everything will be manageable. The huge backlog of PRs will clear out.
Thank you!
Your help makes Public Lab better! We deeply appreciate your helping refine and improve this site.
To learn how to write really great issues, which increases the chances they'll be resolved, see:
https://publiclab.org/wiki/developers#Contributing+for+non-coders
The text was updated successfully, but these errors were encountered: