Commit Graph

407 Commits

Author SHA1 Message Date
jjaffeux e024729322 FIX: always force tl0 for public 2020-08-10 23:55:30 +02:00
jjaffeux 4f72f0f997 FIX: client.en text for bulk invite description was incorrect 2020-08-10 23:49:21 +02:00
jjaffeux ad57efb6fe REFACTOR: makes reminders to be in raw 2020-08-10 23:38:04 +02:00
jjaffeux 227327b395 Merge branch 'master' of github.com:discourse/discourse-calendar 2020-08-10 16:02:25 +02:00
jjaffeux da91f7417d FEATURE: allows to set reminder
Note that reminders; as custom fields, are only editable on created event and not when creating it.
2020-08-10 16:02:12 +02:00
jjaffeux b359e9a23f FIX: ensures we can close event before it starts 2020-08-10 15:47:34 +02:00
David Taylor 6f06bc8ba3
DEV: Use plugin API to amend Post class (#57)
This ensures that the patch is reloaded automatically during development, and should stop the random `NoMethodError (undefined method `group_timezones' for #<Post>` errors in development
2020-08-10 13:10:41 +01:00
jjaffeux 5c5ffdaaab FEATURE: allows to remove invitees from the modal listing them 2020-08-09 13:41:10 +02:00
jjaffeux 4e5fad6b4f FEATURE: inline bulk invite 2020-08-09 10:01:21 +02:00
jjaffeux 519f52238e FEATURE: allows to manually close an event 2020-08-07 21:43:55 +02:00
jjaffeux 6754bdfc8b FEATURE: adds support for custom fields on event
Custom fields are create in the site settings of the event plugin. Once at least one custom field is created, a new form will appear in each event UI. These custom fields are passed when DIscourseEvent triggers of the plugin are called, allowing you to pass custom data of the even to other plugins.
2020-08-07 17:50:15 +02:00
Penar Musaraj bf31bb359c
DEV: Use CSS custom properties for complex color variations 2020-08-06 10:27:25 -04:00
Guo Xiang Tan c17bbf57d1
DEV: Avoid dropping the table for now in case migration goes wrong. 2020-08-06 09:06:08 +08:00
David Taylor 4b540f143d
FIX: Redo migrations such that tables are dropped in a safe manner (#56)
This is a reimplementation of 17b0147c which ensures the new table has the correct indexes, defaults and sequences

Co-authored-by: Alan Guo Xiang Tan <gxtan1990@gmail.com>
Co-authored-by: Daniel Waterworth <me@danielwaterworth.com>
2020-08-06 09:05:17 +08:00
David Taylor b82b80fb22
Revert "FIX: Redo migrations such that tables are dropped in a safe manner. (#55)"
This method of creating a table does not include any indexes, so we need to create them manually. Reverting temporarily.

This reverts commit 17b0147ccb.
2020-08-05 19:21:03 +01:00
Alan Guo Xiang Tan 17b0147ccb
FIX: Redo migrations such that tables are dropped in a safe manner. (#55) 2020-08-05 18:16:23 +01:00
jjaffeux 0ed4fedcee FIX: display event builder in PMs 2020-08-05 14:57:33 +02:00
jjaffeux ed37c5bcc7 FIX: directly check on post if we have an event
This is cleaner and also avoids a 404 when no event is found
2020-08-04 21:06:02 +02:00
jjaffeux 214899ea9a FEATURE: notify going invitees of edits on OP during event 2020-08-04 16:11:58 +02:00
jjaffeux 84198a75c5 FIX: class resolution was missing namespace 2020-08-04 14:41:40 +02:00
jjaffeux bdf4942ee1 DEV: triggers DiscourseEvents when an event starts/ends 2020-08-04 14:25:00 +02:00
jjaffeux 6ef6585b43 Merge branch 'master' of github.com:discourse/discourse-calendar 2020-08-04 08:39:22 +02:00
jjaffeux a29b7ab270 FEATURE: syncs topic tracking with attendance 2020-08-04 08:39:19 +02:00
Penar Musaraj 3896e4dbba
Update SCSS color variable to CSS custom property 2020-08-03 23:40:24 -04:00
Penar Musaraj d67b2c63c9
DEV: Fix specs 2020-08-03 21:15:38 -04:00
Penar Musaraj 5c8b100ccb
DEV: Use CSS custom properties for colors in SCSS
Prepares the plugin for an upcoming change in core while maintaining
backwards compatiblity.

This doesn't cover all cases, I am working on a fix for the few complex
variables used in discourse-calendar.scss.
2020-08-03 13:27:00 -04:00
jjaffeux 5e396de936 removes debugging code 2020-08-03 16:28:33 +02:00
jjaffeux 3f3fb2f1e0 DEV: proper namespacing 2020-08-03 16:11:00 +02:00
Joffrey JAFFEUX 1451a65f54
FEATURE: allows to bulk invite into events (#54) 2020-08-03 15:47:01 +02:00
Sam Saffron 1e993a5dfa
DEV: lint file
RawHtml no longer used in this file
2020-08-03 17:19:17 +10:00
Joffrey JAFFEUX c6b531d741
FEATURE: allows to add a url to an event (#52) 2020-08-03 08:58:52 +02:00
jjaffeux f4738ca442 better examples names 2020-07-30 22:27:39 +02:00
Kris 516d2e10da Icon alignment fix, see 6da90af in core 2020-07-29 22:40:24 -04:00
Dan Ungureanu a34f410cd7
DEV: 'expired' and 'not_expired' scopes must cover all events 2020-07-29 13:03:49 +03:00
Dan Ungureanu c224449cd1
DEV: Add 'expired' and 'include_subcategories' filters to EventFinder 2020-07-29 13:03:30 +03:00
Krzysztof Kotlarek 88842e12df FIX: check if allow_staff_user_custom_field exisits 2020-07-27 12:00:51 +10:00
Robin Ward 00cbecc5a4 FIX: The route is called `/u/` now not `/users` 2020-07-23 15:53:05 -04:00
dependabot[bot] ea1139991a
Build(deps): Bump lodash from 4.17.15 to 4.17.19 (#50)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-20 12:01:00 -04:00
Krzysztof Kotlarek 8ffd5e0b79 FIX: compatibility after allowlist rewording in Discourse 2020-07-15 09:28:44 +10:00
Mark VanLandingham f3bd64c992
FIX: Error when users_on_holiday is undefined (#49) 2020-07-08 16:00:59 -05:00
Robin Ward f751c8fde5 FIX: Deprecation 2020-07-08 10:25:25 -04:00
Bianca Nenciu 097a959d64 DEV: Fix lint 2020-07-07 17:48:50 +03:00
Bianca Nenciu 7b4f9895c0
FIX: Show holiday flair in user directory (#46) 2020-07-07 17:25:57 +03:00
Bernhard Suttner 66beb075f6
typo (#48) 2020-07-07 09:47:21 -04:00
Mark VanLandingham b66d48ea20
Import getURL to fix deprecation warnings (#47) 2020-07-06 09:26:47 -05:00
David Taylor 21ae67c873
FIX: Holiday icon on mentions with non-lowercase usernames
Profile urls are always constructed using the lowercase username, so we need to use the lowercase username to look them up in the cooked html.
2020-06-22 15:28:55 +01:00
Dan Ungureanu f81dbca358
FIX: Add overrides for non-standard country codes used by holidays gem 2020-06-18 13:35:54 +03:00
Dan Ungureanu 65f7c4e315
FIX: Order regions by name 2020-06-18 13:30:04 +03:00
Dan Ungureanu 0e36e420c7
DEV: Update definitions 2020-06-18 13:29:50 +03:00
Dan Ungureanu 922e445e80
DEV: Fix lint 2020-06-18 12:17:13 +03:00