Commit graph

2110 commits

Author SHA1 Message Date
Andrew Kvalheim
c403247b79 Restore detailed event form for admins
In #2987 the detailed view of the event form was inadvertently lost,
presumably due to #2975 masking the problem.
2023-05-01 18:34:51 -07:00
Andrew Kvalheim
ada8d5a68c Add missing form labels
Lost during 81853d1
2023-05-01 18:33:16 -07:00
Henne Vogelsang
749115e507
Merge pull request #3090 from AndrewKvalheim/api-time-zone
Correct time zone of API dates
2023-04-19 13:36:12 +02:00
Henne Vogelsang
f533dd6d38
Merge pull request #3093 from differentreality/remove_datepicker_limits
Remove datepicker date limits
2023-04-19 13:29:05 +02:00
Henne Vogelsang
ef8863298e
Merge pull request #3094 from differentreality/2738_history_changes_deleted_models
Fix version history for deleted models
2023-04-19 13:28:17 +02:00
Henne Vogelsang
04b45adbe5
Merge pull request #3096 from AndrewKvalheim/api-urls
Add URLs to API responses
2023-04-19 13:26:44 +02:00
Henne Vogelsang
86b8990d71
Merge pull request #3130 from AndrewKvalheim/vote-cache-expiration
Expire voting fragment caches
2023-04-19 13:23:05 +02:00
Henne Vogelsang
8b909a95c9
Merge pull request #3131 from AndrewKvalheim/nofollow
Set `nofollow` on user-generated links
2023-04-19 13:19:34 +02:00
Henne Vogelsang
3aaf86076f
Merge pull request #3133 from AndrewKvalheim/thead-tr
Correct invalid table markup
2023-04-19 13:14:34 +02:00
Henne Vogelsang
4cb0147799
Merge pull request #3135 from AndrewKvalheim/send-to-whom
Clarify to whom emails will be sent
2023-04-19 13:13:29 +02:00
Henne Vogelsang
ddeb8bd776
Merge pull request #3139 from AndrewKvalheim/font-awesome-spill
Move text out of Font Awesome icons
2023-04-19 13:12:47 +02:00
Andrew Kvalheim
cdee712d07 Display track description on proposal form
Tracks are otherwise undocumented for CfP respondents.
2023-03-11 13:51:02 -08:00
Andrew Kvalheim
6ed1725b01 Server-side render initial visibility of select help text
Resolves failure to display initial help text of difficulty level.
2023-03-11 13:50:51 -08:00
Andrew Kvalheim
741c188260 Move text out of Font Awesome icons
Font Awesome icon elements are intended to be empty. Extending the icon
elements around adjacent text caused the text to be displayed in an
irregular font.
2023-03-10 14:17:46 -08:00
Andrew Kvalheim
1e97b391c2 Clarify to whom emails will be sent 2023-03-08 17:18:51 -08:00
Andrew Kvalheim
1f31c1c80d Correct invalid table markup
- Add required <tr> within <thead>
  - Add implicit <tbody> after <thead>
2023-03-04 14:33:08 -08:00
Andrew Kvalheim
e01fd2d721 Add URLs to API responses
Resolves inability of API consumers to provide links to OSEM.
2023-03-04 10:15:56 -08:00
Andrew Kvalheim
80d7ac545c Set nofollow on links in Markdown content
To disincentivize spamdexing, links in user-generated content should be
disavowed by annotation with `rel="nofollow"` attributes:

  - https://en.wikipedia.org/wiki/Nofollow

Automated spam has already targeted OSEM in the wild:

  - https://github.com/SeaGL/organization/issues/274

Ideally link annotation would be performed during Markdown rendering or
a single sanitization pass, but this is currently an unresolved issue:

  - https://github.com/vmg/redcarpet/issues/720
2023-03-03 17:16:53 -08:00
Andrew Kvalheim
04f6a73d73 Add user to cache dependencies of event proposal tab
When fragment caching is enabled—

    --- a/config/environments/test.rb
    +++ b/config/environments/test.rb
    @@ -27 +26,0 @@
    -  config.action_controller.perform_caching = false
    @@ -29 +27,0 @@
    -  config.cache_store = :null_store

—the test of voting fails with:

    expected to find visible css ".rating.bright" … 0 times, found 3 matches
    expected to find visible css ".rating:not(.bright)" … 5 times, found 2 matches
    # ./spec/features/voting_spec.rb:21
    # ./spec/features/voting_spec.rb:21
    # ./spec/features/voting_spec.rb:57

i.e. the vote displayed in the event proposal tab is another user’s
vote, because the fragment’s cache dependencies don’t include the
current user.

resolves #2767
2023-03-01 11:52:16 -08:00
Andrew Kvalheim
1563881153 Add user to cache dependencies of vote in events index
When fragment caching is enabled—

    --- a/config/environments/test.rb
    +++ b/config/environments/test.rb
    @@ -27 +26,0 @@
    -  config.action_controller.perform_caching = false
    @@ -29 +27,0 @@
    -  config.cache_store = :null_store

—the test of voting fails with:

    expected to find text "Not rated" in "…You voted: 3/5…"
    # ./spec/features/voting_spec.rb:15
    # ./spec/features/voting_spec.rb:13
    # ./spec/features/voting_spec.rb:57

i.e. the vote displayed on the event index is another user’s vote,
because the fragment’s cache dependencies don’t include the current
user.

re #2767
2023-03-01 11:43:50 -08:00
Andrew Kvalheim
17366c6eab Update events when rated
When fragment caching is enabled—

    --- a/config/environments/test.rb
    +++ b/config/environments/test.rb
    @@ -27 +26,0 @@
    -  config.action_controller.perform_caching = false
    @@ -29 +27,0 @@
    -  config.cache_store = :null_store

—the test of voting fails with:

    expected to find css ".rating.bright" … 3 times but there were no matches
    expected to find visible css ".rating:not(.bright)" … 2 times, found 5 matches
    # ./spec/features/voting_spec.rb:31
    # ./spec/features/voting_spec.rb:30
    # ./spec/features/voting_spec.rb:53

i.e. the rating displayed on the event index is not updated after
voting, because while the fragment’s cache dependencies include the
event, voting doesn’t update the event.

re #2767
2023-03-01 11:33:21 -08:00
Stella Rouzi
7fc848fe9c Fix version history for deleted models
Resolves #2738
2022-10-27 11:35:20 +03:00
Stella Rouzi
7b92754f29 Remove datepicker date limits 2022-10-19 16:24:48 +03:00
Andrew Kvalheim
6ce2e66f14 Correct time zone of API dates
Prior to this change, the API returned incorrect dates in UTC instead of
the conference time zone.
2022-09-28 13:22:15 -07:00
Andrew Kvalheim
397341a324 Use JSON date serializer
Effective API changes:

  - nil serializes to null, not empty string
  - dates serialize to IETF RFC 3339 with millisecond precision, not
    second precision surrounded by spaces
2022-09-28 09:34:01 -07:00
Andrew Kvalheim
57e9135287 Use CSS-compatible row IDs in datatables
In CSS IDs may not begin with a number:

  - https://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
2022-09-13 11:06:22 -07:00
Sasi Olin
45c57eb76e
Fix missing fa-stacked-icon function 2022-05-22 00:50:49 +02:00
Sasi Olin
f28f1fd9b3 Fix venue information city/country display 2022-05-20 16:25:38 +02:00
Sasi Olin
9fb26f880d Minor fixes 2022-05-20 16:09:31 +02:00
Henne Vogelsang
c052f59b0a
Merge pull request #3035 from hellcp/fontawesome6
Migrate to fontawesome 6
2022-05-20 14:25:56 +02:00
Sasi Olin
8326fb2c8b
Use the correct fonts for social media 2022-05-18 16:03:19 +02:00
Sasi Olin
882bc0807a Make the static analysis happy 2022-05-18 06:50:57 +02:00
Sasi Olin
45cf9249a9 Remove the fonts directory in the sprockets manifest 2022-05-18 06:41:53 +02:00
Sasi Olin
d31233c033 Migrate to fontawesome 6 2022-05-18 06:33:47 +02:00
Sasi Olin
1c4a02110f
Remove the slash between city and country name if either is empty 2022-05-18 04:18:00 +02:00
Henne Vogelsang
5fe2f1dfc3
Merge pull request #2987 from mkiroshdz/proposal-views-refactor
Refactor proposal forms
2022-05-16 12:11:14 +02:00
Henne Vogelsang
83c31ed50a
Merge pull request #2986 from openSUSE/depfu/update/rubocop-rspec-2.10.0
Update rubocop-rspec: 2.4.0 → 2.10.0 (minor)
2022-05-09 12:23:04 +02:00
mkiroshdz
88b55966cc Refactor proposal forms 2022-05-06 19:02:27 -05:00
Henne Vogelsang
36b23ce25d
Make use of ENV.fetch 2022-05-06 14:53:57 +02:00
Henne Vogelsang
c97d0a1a40
Fix selectize input defaults
Not pre-filling those with existing associations lead to them being
removed on any update.

Fixes #2988
2022-05-06 13:23:51 +02:00
Sasi Olin
7bbac4b599
Update app/views/conferences/_highlights.haml
Co-authored-by: Henne Vogelsang <hvogel@opensuse.org>
2022-04-19 13:16:50 +02:00
Sasi Olin
01bb991d46
Update app/views/conferences/_highlights.haml
Co-authored-by: Henne Vogelsang <hvogel@opensuse.org>
2022-04-19 13:16:45 +02:00
Sasi Olin
7f1162ea35
Don't include speaker information if it's nil 2022-04-16 15:04:27 +02:00
Henne Vogelsang
0839337551
Merge pull request #2974 from AndrewKvalheim/email-settings-labels
Minor corrections to the form labels in email settings
2022-03-29 15:20:51 +02:00
Henne Vogelsang
6601cb2b1e
Merge pull request #2973 from AndrewKvalheim/word-count-events
Remove excessive word counts
2022-03-29 15:19:42 +02:00
Henne Vogelsang
d471d9eb23
Merge pull request #2972 from AndrewKvalheim/ajax-datatables-rails-1_part-2
Update datatables for ajax-datatables-rails 1
2022-03-29 15:15:10 +02:00
Henne Vogelsang
c3dfd7645a
Merge pull request #2971 from AndrewKvalheim/chart-colors
Restore `colors` parameter of donut chart partial
2022-03-29 15:14:09 +02:00
Henne Vogelsang
85cae7d093
Merge pull request #2970 from AndrewKvalheim/safe_links_only
Correct use of Redcarpet’s `safe_links_only` flag
2022-03-29 15:11:58 +02:00
Andrew Kvalheim
9738d2990c Correct and complete form labels in email settings
Changes:

  - restoration of labels that were formerly generated by Formtastic
  - corrections to markup of HTML labels and Bootstrap form controls
  - minor copy editing
2022-03-21 15:34:04 -07:00
Andrew Kvalheim
9de2cba061 Remove excessive word counts
Resolves:

  - Duplicate event listeners are registered during every word count,
    increasing the number of word counts until the browser becomes
    unresponsive.
  - The word count is triggered multiple times on input due to listening
    to redundant events.
2022-03-18 20:52:33 -07:00