Commit Graph

11 Commits

Author SHA1 Message Date
Joffrey JAFFEUX d31933bf49
DEV: moves translatations under discourse_post_event (#627)
Various events in the life of this plugin have caused an over complicated key and duplicated keys. This commits attempts to regroup everything related to discourse_post_event under a top level `discourse_post_event` key, removes the `event_ui` level as it's not very clear, technically everything is UI. And finally attempts to remove the duplicates.
2024-10-23 14:06:09 +11:00
Krzysztof Kotlarek 1c5beb4432
DEV: merge discourse post event settings to calendar (#490)
Before, site settings were divided into `discourse calendar` and `discourse events`.

This PR is merging them. Also, translation were moved under `discourse_calendar` key.
2023-12-07 08:59:08 +11:00
David Taylor bb793f9cd8
DEV: Update test css selectors for core change (#481)
https://github.com/discourse/discourse/pull/23967
2023-11-15 09:55:31 +00:00
Isaac Janzen 21986cc399
DEV: Upgrade post-event-builder modal to Component API (#480) 2023-11-14 14:02:38 -07:00
Alan Guo Xiang Tan 1964912315
DEV: Switch to new `addComposerToolbarPopupMenuOption` plugin API (#460)
Why this change?

`api.addToolbarPopupMenuOptionsCallback` has been deprecated in 913fd3a7b3
2023-10-23 08:32:04 +08:00
Jarek Radosz e4d1e22a10
DEV: Update tests (#451)
Mostly qunit-dom usage.
2023-10-10 02:54:40 +02:00
Jarek Radosz 0e4b49d292
DEV: Add additional test for timezone switching during event creation
Test the case which has been resolved by core commit c9a6d9ac89

Co-authored-by: David Taylor <david@taylorhq.com>
2023-05-05 18:19:55 +01:00
Martin Brennan c48a07b51f
DEV: Fix JS tests to use default site settings (#332)
In preparation for core PR https://github.com/discourse/discourse/pull/18413
which changes JS to load default yml site settings, the
main one needing changes is that now the
allow_uncategorized_topics setting is false
by default, so we have to choose a category
first in many places.
2022-10-10 15:21:34 +10:00
Jarek Radosz af02b68af5
DEV: Make the flake easier to debug (#318) 2022-09-12 14:03:50 +02:00
Jarek Radosz 3c5e9f3e1d
DEV: Fix test flakyness (#305) 2022-07-26 03:18:09 +02:00
David Taylor 99ff402db2
FIX: Handle non-UTC events correctly (#299)
Previously we were storing a 'UTC' datetime in the database which was in fact a local datetime. That means that, every time it was accessed, consumers would have to ignore the "Z" suffix and parse it using the specified `timezone`.

Adding that kind of logic to every consumer would be very error-prone. Instead, this commit changes the implementation so that `original_start_time` and `original_end_time` are 'technically correct', truly-UTC timestamps. Consumers that need to obtain the original 'local' timestamp (e.g. recurrence) can do something like `original_start_time.in_timezone(timezone)`. Most consumers (e.g. notifications, event-countdown UI, etc.) don't care about the original timezone, and so they can now stick to using `original_start_time` without issue.

A number of specs are introduced to test timezone behaviour, including recurrence across daylight-saving transitions.

A migration will fix existing erroneous data in the database.

A number of JS fixes are also included, and a basic JS acceptance test is introduced.
2022-07-25 10:25:32 +01:00