jelhan
64a9dea5e7
refactor dates handling ( #137 )
...
* Remove dates ArrayProxy.
* Use moment template helpers.
* Pass timezone and locale directly to moment template helper to avoid issues.
2017-08-11 16:39:36 +02:00
jelhan
e99a2f13b8
Fix: chart options are overriden by poll options
...
Bug introduced by 1df562b352
.
2017-08-03 16:44:38 +02:00
jelhan
1df562b352
refactor {{poll-evaluation-chart}} and {{poll-evaluation-participants-table}} interfaces to make them less complex
2017-08-01 09:48:48 +02:00
jelhan
632c36eb12
updates dependencies and fixes property modified twice in a single render deprecations
2017-08-01 09:48:48 +02:00
jelhan
d76783c9cf
refactor form navigation to use a component
2016-09-23 19:39:31 +02:00
jelhan
d5705b2c3b
Fix: participation table header should not overflow container
...
Was introduced by this breaking change in jquery.floatThead:
3973eb523a
2016-08-30 11:10:05 +02:00
jelhan
545f3b0664
autofocus first form element
...
currently not working for date selection (calendar) since this one did not
support keyboard navigation
part of #94
2016-08-26 00:10:22 +02:00
jelhan
e735587c93
update floatThead and drop CSP unsafe-inline requirement
...
Closes #90
2016-08-23 11:43:58 +02:00
jelhan
d8db29ecd9
adds back button to create wizard
...
Part of #76
2016-08-21 00:38:44 +02:00
jelhan
6653da8ee4
Fix: CSP style-src: 'unsafe-inline' violation
...
Could get rid of `style-src: 'unsafe-inline'` after
https://github.com/mkoryak/floatThead/pull/321 has been merged
and made it's way in a new release.
Part of #90
2016-08-13 18:46:46 +02:00
jelhan
2a75db5304
Update to chartjs 2.x
...
enhancements:
* responsive charts
* native support for stacked bars
* CSP: script-src: unsafe-inline is not needed anymore #90
2016-08-12 23:09:43 +02:00
jelhan
92c2c353d8
Fix view deprecation by refactoring to component
2016-08-11 23:37:14 +02:00
jelhan
26b3dab102
update ember-suave and fix some coding style
2016-08-11 22:47:17 +02:00
jelhan
d8a014b677
Label (day) validation state should reflect validation states of all related input fields (times)
2016-08-01 21:35:06 +02:00
jelhan
145a4ea96a
Fix: reuse existing arrayproxy since otherwise it's not connected to model anymore
2016-07-27 23:06:54 +02:00
jelhan
724a995372
Fixes: invalid times should not be adopted on other days
2016-07-05 11:26:03 +02:00
jelhan
a28923ead2
refactor to use groupBy computed macro of ember-array-computed-macros instead of ember-group-by
2016-07-04 14:39:00 +02:00
jelhan
0c0dc44195
reactored to use array computed macros for cleaner code
2016-07-03 19:49:36 +02:00
jelhan
3c187886c1
remove unnecessary complexity
2016-06-27 13:04:20 +02:00
jelhan
9a21eb126a
Fix: submit if no day is selected
2016-06-27 12:49:40 +02:00
jelhan
7b2a9672f4
Fixes: Date in poll evaluation summary does not observe locale changes.
2016-06-20 20:48:48 +02:00
jelhan
a7e141828d
Fixes #89
2016-06-20 19:28:10 +02:00
jelhan
308b8fb367
preserve existing times if day selection is changed
2016-06-13 11:14:42 +02:00
jelhan
86a233fb02
Fix: do not delete a date if it's the last one for this day
...
Details: https://github.com/jelhan/croodle/issues/99#issuecomment-225140574
2016-06-10 20:59:02 +02:00
jelhan
bcccffacec
Fix: adopt times of first day if there aren't any times on first day
2016-06-09 12:27:51 +02:00
jelhan
2c11fe41bf
perserve validation state in create/options-datetime by avoiding rerender
2016-06-08 13:56:06 +02:00
jelhan
72513bf893
remove ember-form-master-2000
2016-06-06 01:19:24 +02:00
jelhan
5b8d59c00b
rewrite create/options-datetime with ember-bootstrap
...
ToDo left:
refactor `datetimes` property of `create-options-datetime` component to
not cause whole list to be updated. This is not only a performance issue
but also UX: e.g. validation state is lost when another item is added.
2016-06-06 01:19:24 +02:00
jelhan
3f84279b6a
create/options (findADate) label validation state reflect all options
2016-06-06 01:19:24 +02:00
jelhan
32f9c3e633
use ember-bootstrap in create/index, create/meta, create/settings
2016-06-06 01:19:23 +02:00
jelhan
c8847d4814
Fix: duplicates in options arrays
...
Occurs if another day is added to an option array already having times
2016-05-21 18:37:23 +02:00
jelhan
c9ef942c79
Fixes #84
2016-05-21 17:17:08 +02:00
jelhan
fba32d3590
Fix deprecation: using @each as a leaf node in a dependent key
...
http://emberjs.com/deprecations/v1.x/#toc_using-code-each-code-as-a-leaf-node-in-a-dependent-key
Also fixes coding style:
* use Ember.computed instead of {}.property()
* use Ember.observer instead of {}.observes()
2016-05-20 23:43:05 +02:00
jelhan
70f7879ee7
Fixes #55
2016-05-20 21:49:29 +02:00
jelhan
f3426b2a7d
support creating polls with only one option
...
There might be use cases and it simplifies validation a lot.
Also fixes this missing translation message mentioned in #84 :
> /create/options-datetime: There isn't any validation error shown when validation fails due to not enough times.
2016-04-15 11:21:26 +02:00
jelhan
e5c5198601
Fixes #85
2016-04-09 01:52:54 +02:00
jelhan
c240b712b6
Fixes #88
...
Also fixes test which was false positive and added some other tests.
2016-03-21 22:06:08 +01:00
jelhan
cb66fb18bc
Fix: Sort must return a signed number not a boolean
...
Chrome and Firefox are find with boolean but nodejs and edge are more strict.
2016-03-20 16:05:20 +01:00
jelhan
aa6483c4d1
Fixes #81
2016-03-20 15:31:24 +01:00
jelhan
255c6a97e8
Fixes #80
2016-03-18 13:27:34 +01:00
jelhan
e8b6776f9a
Fixes #79
2016-03-18 13:15:47 +01:00
jelhan
277d51e650
poll evaluation as stacked bar chart
2016-03-17 13:32:53 +01:00
jelhan
8ede03b604
Fix: Date was not shown if there were multiple best options
2016-02-22 23:42:01 +01:00
jelhan
b921632465
reimplement adopt times of first day (was: copy first line)
2016-02-16 04:02:59 +01:00
jelhan
0fd12adf65
move time selection to separate page again
2016-02-16 02:26:27 +01:00
jelhan
0e4fd114cb
some improvement on validations
2016-02-09 01:16:18 +01:00
jelhan
c53593d2cf
options must be unique
2016-02-08 23:46:30 +01:00
jelhan
611f15d574
just some code style fixes
2016-01-28 22:49:14 +01:00
jelhan
4937d9b27b
create-options-datetime is reimplemented; add / delete of options also works
...
main work seems to be done
2016-01-22 00:19:46 +01:00
jelhan
32106b7e79
Merge branch 'master' into rewrite-create-options
2016-01-20 03:19:28 +01:00
jelhan
e9a6f9ff41
fix some more JSCS code style errors
2016-01-20 03:19:10 +01:00
jelhan
ec3999bbc9
input datetimes
...
ToDo:
* integration test for options-create-datetime
* acceptance tests for poll find a date with times
* some translations
* ...
2016-01-20 02:52:21 +01:00
jelhan
bde6fb0728
Merge branch 'master' into rewrite-create-options
2016-01-19 06:02:12 +01:00
jelhan
8a88e3b9df
clean up: some examples from old, old ember app kit deleted
...
don't know how they could hide that long
2016-01-19 06:01:11 +01:00
jelhan
9cfcb6d27a
Merge branch 'master' into rewrite-create-options
2016-01-19 05:55:37 +01:00
jelhan
6ba930661e
add JSCS code style test and fix errors
2016-01-19 05:46:52 +01:00
jelhan
ce2a8c8e1f
done most things except date with times
...
also validation messages are missing
2016-01-19 04:56:51 +01:00
jelhan
db038b1e57
fix locale storage in cookie
2015-12-07 22:23:08 +01:00
jelhan
b33a2f84f2
fix jshint
2015-12-07 21:55:17 +01:00
jelhan
2ec58668b8
readd webshim polyfill for input[type=time]
...
needed by http://caniuse.com/#feat=input-datetime
was removed by 3563e41913
2015-12-07 21:51:07 +01:00
jelhan
20d3a29887
update dates on locale change
...
* upgraded ember-moment and use it application-wide service to set locale
* label on poll/participation now observes locale changes, but it's still hacky
* replace computed property on views poll by moment-format helper of ember-moment
2015-11-23 13:32:40 +01:00
jelhan
798527a4ae
refactor to be in line with https://github.com/Emerson/ember-form-master-2000/pull/38
2015-11-22 19:15:15 +01:00
jelhan
4c597352ad
update ember-from-master-2000
2015-11-20 23:02:35 +01:00
jelhan
c1dfa16eed
update ember-i18n
2015-11-20 02:18:19 +01:00
jelhan
f67381c6b9
remove ember-easy-form-extensions, finally
2015-11-19 21:51:49 +01:00
jelhan
3563e41913
time input as normal form instead of table
...
part of #76
replaces ember-easy-form-extensions and ember-validations by
ember-cp-validations and ember-form-master-2000
dropped webshim for input type time; should be readded to improve
user experience in browser which does not support this input field
yes (e.g. Internet Explorer, Edge, Firefox)
2015-11-19 21:16:32 +01:00
jelhan
335dfd8ff2
validate each input field on it's own
2015-11-17 00:30:24 +01:00
jelhan
ca387848ed
create/options input fields for make a poll with add / delete buttons
...
also rewritten using ember-cp-validations and ember-form-master-2000
2015-11-16 13:09:13 +01:00
jelhan
3706e88620
normal defaults and override them if necessary
2015-11-15 19:49:59 +01:00
jelhan
8cb8b9bf6a
fix jshint
2015-11-15 19:22:34 +01:00
jelhan
c3ee937936
showing errors after first input can get confusing since form field may
...
show errors while typing a correct value (e.g. for minimun length)
2015-11-15 19:19:33 +01:00
jelhan
de359576f5
fix: bootstrap layout
2015-11-15 17:03:55 +01:00
jelhan
01f9b6e61f
extract participation form from participants table and make it a bootstrap form
...
started replacing ember-easy-form-extensions by ember-form-master-2000
and ember-validations by ember-cp-validations
using ember-form-master-2000 in old 0.2 release cause newer releases does not work with ember 0.12
should move to ember 2.x as soon as possible
therefore ember-easy-form-extensions has to be dropped and ember-i18n been updated
part of #76
2015-11-12 15:52:14 +01:00
jelhan
475245d04f
evaluation summary as component
2015-11-03 12:57:41 +01:00
jelhan
7a241bd311
first steps to ember-cli
2014-10-30 21:44:22 +01:00
jelhan
b066b8806c
Starting to move to Ember App Kit
2014-07-06 17:37:54 +02:00