SEL-Columbia / dokomoforms

Dokomo どこも Forms is a mobile data collection technology that doesn't suck.
http://dokomoforms.org
GNU General Public License v3.0
22 stars 23 forks source link

Adds 'admin surveys' to user admin modal. #168

Closed jmwohl closed 8 years ago

jmwohl commented 8 years ago

@vr2262 Also a couple tests for Settings... one fails now, not sure the best way to fix it (see comment in test) Thoughts?

vr2262 commented 8 years ago

@jmwohl looking into it...

vr2262 commented 8 years ago

@jmwohl What's the issue with simply checking that the API token field is not empty? Seems good enough to me...

jmwohl commented 8 years ago

Yeah, that check should be sufficient, I just couldn't get it to work... it makes an ajax call, so it needs to wait until it populates, and I wasn't sure how to do that.

On Thu, Oct 1, 2015 at 12:44 PM, Viktor Roytman notifications@github.com wrote:

@jmwohl https://github.com/jmwohl What's the issue with simply checking that the API token field is not empty? Seems good enough to me...

— Reply to this email directly or view it on GitHub https://github.com/SEL-Columbia/dokomoforms/pull/168#issuecomment-144783262 .

Jonathan Wohl (608)-772-9645

vr2262 commented 8 years ago

Oh... eh, a sleep should be fine...

vr2262 commented 8 years ago

Woah... turns out this test found a bug (sort of...). By default xvfb-run creates a window with mysterious dimensions. Here's the screenshot:

bad

The user dropdown isn't visible, which means it's not clickable.

At this point we can either make a CSS change (the "right" thing to do) or pass an argument to xvfb-run so that it has sensible window dimensions.

vr2262 commented 8 years ago

@jmwohl This display issue is the only problem with the tests now.

jmwohl commented 8 years ago

It would be quite a hassle to make the admin area responsive, so I'd vote for setting a bigger screen size for the tests for now if that's easy. If we want to support smaller screens we can make it a story.

On Oct 1, 2015, at 2:06 PM, Viktor Roytman notifications@github.com wrote:

@jmwohl https://github.com/jmwohl This display issue is the only problem with the tests now.

— Reply to this email directly or view it on GitHub https://github.com/SEL-Columbia/dokomoforms/pull/168#issuecomment-144803192 .

vr2262 commented 8 years ago

In the long run it would be nice to be able to view survey stats on your phone, but it is a lot of work. Please add a story for it.

For now, I'll make the xvfb change.

vr2262 commented 8 years ago

OK. Assuming the test passes on Travis, this pull request should be good to go.