Commit Graph

384 Commits

Author SHA1 Message Date
jjaffeux 24357ea6f1 DEV: tests toolbar behavior 2020-05-15 00:00:56 +02:00
Robin Ward d669fdc959
FIX: Was set to `en` when it should be `de` 2020-05-12 12:49:58 -04:00
Bernhard Suttner fe15bef879
Add german translation (#43) 2020-05-11 11:14:43 -04:00
jjaffeux ac4784bacb FIX: simplifies upcoming events page and prevents double rendering 2020-05-11 11:55:41 +02:00
jjaffeux 513185626a FIX: do not attempt to fetch pms when anonymous 2020-05-11 10:30:51 +02:00
jjaffeux 37cc8819d4 DEV: skip composer preview tests for now 2020-05-11 00:23:07 +02:00
jjaffeux b5c7910421 FIX: do not ensure logged in
Right are made at the routes level.
2020-05-11 00:05:17 +02:00
jjaffeux 4e31880f9c FIX: display post errors when deleting even if post empty 2020-05-10 22:11:41 +02:00
jjaffeux cced2c8c02 FIX: prevents error if the associated post has been destroyed 2020-05-10 17:42:14 +02:00
jjaffeux ea0dd41046 FIX: ensures we are updating the correct invitee 2020-05-10 17:27:44 +02:00
Joffrey JAFFEUX dca3145d47
FEATURE: displays an error in preview for more than one event (#42)
This commit also introduces client side tests, this plugin only had server side tests before.
2020-05-10 13:54:48 +02:00
Jarek Radosz cb81eb1235
REFACTOR: Fix Rails 6 scope deprecation warning (#41)
```
DEPRECATION WARNING: Class level methods will no longer
inherit scoping from `not_expired` in Rails 6.1.
To continue using the scoped relation, pass it into
the block directly. To instead access the full set of models,
as Rails 6.1 will, use
`DiscoursePostEvent::Event.default_scoped`.
(called from block in <class:Event> at
/home/runner/work/discourse/discourse/plugins/discourse-calendar/app/models/discourse_post_event/event.rb:44)
```

It's not a solution mentioned in the deprecation warning, but it's simpler, shorter, has one level of indentation less, doesn't create extra ActiveRecord objects, and uses a single Time instance.
2020-05-10 12:31:10 +02:00
jjaffeux ee57872366 UX: calendar_enabled should be in discourse_calendar settings 2020-05-07 11:01:54 +02:00
jjaffeux ede0e52923 DEV: Move to rubocop-discourse. 2020-05-06 17:56:08 +02:00
jjaffeux 436de401a9 FIX: do not show destroy post event button if event is not created 2020-05-04 11:38:26 +02:00
jjaffeux 4065f4ba3d UX: moves create event button to toolbar popup menu 2020-05-04 11:37:23 +02:00
jjaffeux 31a8524a80 FIX: hides dropdown if no actions available 2020-05-04 10:55:37 +02:00
jjaffeux 11ba398069 FIX: improves invitees query perf and prevents loading destroyed user
A destroyed user should destroy the associated invitee, but this an additional security.
2020-05-04 10:34:22 +02:00
jjaffeux b95380a1e8 FIX: ensures a destroyed user is correctly removed from invitees 2020-05-04 09:46:38 +02:00
jjaffeux 6c12b1862f FIX: ensures we have a user 2020-05-04 09:19:33 +02:00
jjaffeux c8438b5f68 FEATURE: displays events in mails 2020-05-03 22:38:01 +02:00
jjaffeux 1b1cd81f72 FIX: ensures the calendar is always loaded 2020-05-03 17:45:25 +02:00
jjaffeux 10b9ec09d8 FIX: correctly names going-button 2020-05-03 16:38:52 +02:00
Joffrey JAFFEUX 94868315c9
FEATURE: allows to export event invitees in a .csv file (#40) 2020-05-03 16:29:42 +02:00
jjaffeux cfb1a2e740 FIX: cleanly handle the case where local dates are not enabled 2020-05-03 16:28:53 +02:00
jjaffeux fdabeb07bc FIX: rename events-calendar to upcoming-events-calendar
This was causing a name clashing with discourse-envets.
2020-05-03 09:49:20 +02:00
jjaffeux 8ccc7f3d85 FIX: ensures post event works when no user is logged in 2020-05-02 10:20:25 +02:00
Krzysztof Kotlarek b70161f978 FIX: green specs with both Nokogiri::HTML and Nokogiri::HTML5 2020-05-01 03:40:47 +10:00
jjaffeux df1874f2f1 FIX: orders invitees list by status 2020-04-30 14:45:20 +02:00
jjaffeux 34d15bc3d0 UX: localize avatar flair title 2020-04-30 14:41:17 +02:00
jjaffeux 274902260b UI: larged widget dropdown item padding 2020-04-30 14:18:20 +02:00
jjaffeux 1723fe86c5 UI: ensures status and creator are perfectly aligned 2020-04-30 14:11:27 +02:00
Sam Saffron 97de973eb2
FIX: amend resetting of cache
We need to reset the column info cache for posts so we can run the update
2020-04-30 12:45:02 +10:00
Sam Saffron fcbab7559d
DEV: attempt to work around poison schema cache in migration
Ideally we should not have this code in migrations
2020-04-30 11:36:17 +10:00
jjaffeux 05dff813a0 UX: more readable mobile view 2020-04-30 00:07:28 +02:00
jjaffeux 99d0bb849d UX: temp fix for multiple dates on mobile 2020-04-29 23:53:51 +02:00
jjaffeux 6d6fd96d08 FIX: should be end class 2020-04-29 23:46:38 +02:00
jjaffeux 8e30287314 dead code 2020-04-29 23:39:30 +02:00
jjaffeux 9e4e3f3f28 FIX: should check on watchingInvitee 2020-04-29 21:44:49 +02:00
jjaffeux 0181b1474d FIX: handles when current user didnt set attendance yet 2020-04-29 21:36:10 +02:00
jjaffeux 6bcce74c2d UX: uses star everywhere to show interest 2020-04-29 21:30:43 +02:00
jjaffeux d0593f7621 UX: highlight when interested is chosen 2020-04-29 21:26:25 +02:00
jjaffeux cd0f7687db UX: hides dropdown icon while updating attendance 2020-04-29 21:23:42 +02:00
jjaffeux f1e22ac51e REFACTOR: this is now done globally 2020-04-29 21:19:32 +02:00
jjaffeux 24b92f2b33 dead code 2020-04-29 21:18:49 +02:00
jjaffeux 3df5127ef1 UX: prevents dropdown usage while setting attendance 2020-04-29 21:14:11 +02:00
jjaffeux 8f7188ed15 UX: replaces footer by a dropdown 2020-04-29 21:11:39 +02:00
jjaffeux 8685775824 UI: uses widget-dropdown and slightly changes update attendance UI 2020-04-29 20:10:49 +02:00
jjaffeux 95586dca90 UI: icon was using incorrect color 2020-04-29 18:11:11 +02:00
jjaffeux b7d30ad3bb UX: do not display invitees if we don't have any 2020-04-29 18:09:32 +02:00