<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slightly-better-surveys/site/index.html, branch main</title>
<subtitle>slightly better web-based surveys than elsewhere (even encrypted!)
</subtitle>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/slightly-better-surveys/'/>
<entry>
<title>add date answer space</title>
<updated>2021-04-12T16:07:41+00:00</updated>
<author>
<name>stuebinm</name>
</author>
<published>2021-04-12T16:07:41+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/slightly-better-surveys/commit/?id=5596ebcbad7721f767972c3143f8e5be1ba8fc09'/>
<id>5596ebcbad7721f767972c3143f8e5be1ba8fc09</id>
<content type='text'>
for now, this is just a simple date picker done via the html input type
"date". Unfortunately, that's not supported by Safari, so the rust util
now prints out a warning if it's used.

I'm not sure if there's any other reasonable option which would go
around this that's not "using a web framework" or "hacking a fallback
date picker which just consists of a couple of combo boxes".
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
for now, this is just a simple date picker done via the html input type
"date". Unfortunately, that's not supported by Safari, so the rust util
now prints out a warning if it's used.

I'm not sure if there's any other reasonable option which would go
around this that's not "using a web framework" or "hacking a fallback
date picker which just consists of a couple of combo boxes".
</pre>
</div>
</content>
</entry>
<entry>
<title>site: use errormsg function for general survey errors</title>
<updated>2021-04-12T15:05:19+00:00</updated>
<author>
<name>stuebinm</name>
</author>
<published>2021-04-12T14:56:08+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/slightly-better-surveys/commit/?id=6b892239f80e8523e02d7348e5483e9a7aea58ee'/>
<id>6b892239f80e8523e02d7348e5483e9a7aea58ee</id>
<content type='text'>
the previous commit introduced handling error messages using a
"setErrormsg" function. This is now also used for the general error
messages which may show up at the bottom of surveys.

However, since js and async things are weird, the code there is still a
long repetitive mess which can't really be cut down further.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
the previous commit introduced handling error messages using a
"setErrormsg" function. This is now also used for the general error
messages which may show up at the bottom of surveys.

However, since js and async things are weird, the code there is still a
long repetitive mess which can't really be cut down further.
</pre>
</div>
</content>
</entry>
<entry>
<title>site: show hint for unselected radio buttons</title>
<updated>2021-04-12T14:50:20+00:00</updated>
<author>
<name>stuebinm</name>
</author>
<published>2021-04-12T14:50:20+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/slightly-better-surveys/commit/?id=15d7a47bea2815d4852c62984b256d658e8b3742'/>
<id>15d7a47bea2815d4852c62984b256d658e8b3742</id>
<content type='text'>
In surveys containing radio buttons, there will now be a nice little
hint directly beneath them if none were selected when attempting to
submit (in addition to the relatively nondescript "not all required
questions were filled in"-hint at the bottom of the form)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In surveys containing radio buttons, there will now be a nice little
hint directly beneath them if none were selected when attempting to
submit (in addition to the relatively nondescript "not all required
questions were filled in"-hint at the bottom of the form)
</pre>
</div>
</content>
</entry>
<entry>
<title>site: fix locale detection</title>
<updated>2021-04-12T14:21:53+00:00</updated>
<author>
<name>stuebinm</name>
</author>
<published>2021-04-12T14:21:53+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/slightly-better-surveys/commit/?id=f02af23dd7f478a86c0522d1f4c3d924df06f3f0'/>
<id>f02af23dd7f478a86c0522d1f4c3d924df06f3f0</id>
<content type='text'>
(it mistakenly set the locale to undefined before)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(it mistakenly set the locale to undefined before)
</pre>
</div>
</content>
</entry>
<entry>
<title>site: attempt to guess default language</title>
<updated>2021-04-08T16:32:33+00:00</updated>
<author>
<name>stuebinm</name>
</author>
<published>2021-04-08T16:06:58+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/slightly-better-surveys/commit/?id=1c5b1e38820f411563efb265b18c4cba6c518074'/>
<id>1c5b1e38820f411563efb265b18c4cba6c518074</id>
<content type='text'>
(from the browser's preferences set via navigator.language and
navigator.languages)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(from the browser's preferences set via navigator.language and
navigator.languages)
</pre>
</div>
</content>
</entry>
<entry>
<title>add translation logic, locales for en and de</title>
<updated>2021-04-08T15:53:10+00:00</updated>
<author>
<name>stuebinm</name>
</author>
<published>2021-04-08T15:44:53+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/slightly-better-surveys/commit/?id=3890d8ac88b2fdfa7b54d433e8e2edf2164be6f0'/>
<id>3890d8ac88b2fdfa7b54d433e8e2edf2164be6f0</id>
<content type='text'>
This adds a basic "replace fixed keys"-approach to translating the UI of
surveys. So far this works great, but for complex things it may fail for
some languages — for now I'll just  try to take care not to add any
output that puts things in the middle of sentences, which I think should
work for a simple survey thing.

The default language is still english, which is important as the
language is declared withing a survey config — i.e. if loading it fails,
it cannot be applied, and the "enter passphrase" dialog can also not
change based on locales. This could possibly be fixed by adding an
unencrypted "header" to the encrypted configs, but for now I'm not sure
if that makes a lot of sense — it may be easier to just guess based on
the browser's settings, and otherwise fall back to some specified
default language.

The "thanks for your answers"-page also has no translation so far.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This adds a basic "replace fixed keys"-approach to translating the UI of
surveys. So far this works great, but for complex things it may fail for
some languages — for now I'll just  try to take care not to add any
output that puts things in the middle of sentences, which I think should
work for a simple survey thing.

The default language is still english, which is important as the
language is declared withing a survey config — i.e. if loading it fails,
it cannot be applied, and the "enter passphrase" dialog can also not
change based on locales. This could possibly be fixed by adding an
unencrypted "header" to the encrypted configs, but for now I'm not sure
if that makes a lot of sense — it may be easier to just guess based on
the browser's settings, and otherwise fall back to some specified
default language.

The "thanks for your answers"-page also has no translation so far.
</pre>
</div>
</content>
</entry>
<entry>
<title>site: implement accessibility hints of WAVE</title>
<updated>2021-04-08T13:28:40+00:00</updated>
<author>
<name>stuebinm</name>
</author>
<published>2021-04-08T13:28:40+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/slightly-better-surveys/commit/?id=215ca162c2c767df56a4802ed7edde7fd5e7fbd0'/>
<id>215ca162c2c767df56a4802ed7edde7fd5e7fbd0</id>
<content type='text'>
This implements some accessibility guidelines, as hinted at by WAVE [1]:
 - labels for textareas
 - fieldsets for multiple-choice answers

One thing that's still missing is a set language, which I guess will be
best implemented together with an actual language switcher.

[1] https://wave.webaim.org/
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This implements some accessibility guidelines, as hinted at by WAVE [1]:
 - labels for textareas
 - fieldsets for multiple-choice answers

One thing that's still missing is a set language, which I guess will be
best implemented together with an actual language switcher.

[1] https://wave.webaim.org/
</pre>
</div>
</content>
</entry>
<entry>
<title>site: better html attributes</title>
<updated>2021-04-08T13:26:18+00:00</updated>
<author>
<name>stuebinm</name>
</author>
<published>2021-04-08T13:24:46+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/slightly-better-surveys/commit/?id=b44b99592c7faf0e1984875ec5bf03be09e83f5d'/>
<id>b44b99592c7faf0e1984875ec5bf03be09e83f5d</id>
<content type='text'>
(i.e. defined charset &amp; a main tag)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(i.e. defined charset &amp; a main tag)
</pre>
</div>
</content>
</entry>
<entry>
<title>site: better error messages</title>
<updated>2021-04-07T22:08:47+00:00</updated>
<author>
<name>stuebinm</name>
</author>
<published>2021-04-07T22:08:47+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/slightly-better-surveys/commit/?id=c255269db0c739400b62d4c4041e3238b1045d22'/>
<id>c255269db0c739400b62d4c4041e3238b1045d22</id>
<content type='text'>
this includes styling error messages red, and displaying error messages
in case not all answers were answered as required (for now, this just
means that not selecting any option in radio buttons is disallowed in
general, as so far there are no corresponding config fields).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
this includes styling error messages red, and displaying error messages
in case not all answers were answered as required (for now, this just
means that not selecting any option in radio buttons is disallowed in
general, as so far there are no corresponding config fields).
</pre>
</div>
</content>
</entry>
<entry>
<title>site: better error messages</title>
<updated>2021-04-07T21:02:49+00:00</updated>
<author>
<name>stuebinm</name>
</author>
<published>2021-04-07T21:02:49+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/slightly-better-surveys/commit/?id=52698489480e4803960ce29765979e687ff81ff0'/>
<id>52698489480e4803960ce29765979e687ff81ff0</id>
<content type='text'>
this includes deduplicating some code, and attempts at error messages
for files which could not be parsed as json but aren't actually valid
age-encrypted files (there doesn't seem to be some easy way to validate
that these files are valid age files without knowing the key).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
this includes deduplicating some code, and attempts at error messages
for files which could not be parsed as json but aren't actually valid
age-encrypted files (there doesn't seem to be some easy way to validate
that these files are valid age files without knowing the key).
</pre>
</div>
</content>
</entry>
</feed>
