Commit Graph

1164 Commits

Author SHA1 Message Date
Gary Pendergast 9dd44e18de
FIX: Decrease height of the calendar scroller. (#709)
When a calendar has enough entries that it needs to scroll within its container, it can't quite scroll far enough, causing the last row to be slightly cut off.

This fix tweaks the size of the scroll container to ensure the last row is fully visible.
2025-03-24 11:46:19 +11:00
Osama Sayegh c1031224a5
Add upcoming Saudi holidays (Eid Al Fitr) (#707)
The 30th of March to the 1st of April of 2025 is a public holiday in Saudi Arabia as per https://holidayapi.com/countries/sa/2025.
2025-03-19 21:59:42 +03:00
David Taylor 335561fc05
DEV: Revert colors.scss changes (#705)
Fails with `"Error: @use rules must be written before any other rules"`

Followup to fc3f4071ff
2025-03-17 12:58:06 +00:00
Jarek Radosz fc3f4071ff
DEV: Update linting (#704) 2025-03-17 10:55:49 +00:00
David Taylor c8934ed60d
Revert "DEV: Update linting (#701)" (#702)
This reverts commit 2a97c179c4.

Causing problems with color-definitions compilation
2025-03-13 16:48:36 +00:00
Jarek Radosz 2a97c179c4
DEV: Update linting (#701) 2025-03-13 15:07:46 +00:00
Jordan Vidrine 06e0945394
remove max width: (#699) 2025-03-10 11:14:40 -05:00
Alan Guo Xiang Tan 1c61e4324f
PERF: Fix N+1 problem on `DiscoursePostEvent::EventsController#index` (#698) 2025-03-10 15:27:55 +08:00
Jordan Vidrine 9739c9f861
fix: border-radius fix (#696) 2025-02-27 20:43:41 +01:00
communiteq 1819e5d1ad
Fix for inconsistent first-day-of-the-week display. (#689)
There are three places in this plugin where FullCalendar is set up.

In one of these three the parameter firstDay: 1 is passed, in the other two it's not.
This leads to an inconsistency where the Upcoming Events calendar begins on Sunday, whereas the topic calendars start on Monday.
(See https://meta.discourse.org/t/choose-first-day-of-the-week-on-upcoming-events-calendar/307785/5)

Ideally this would be taken from the users (browser) preferences, but since
[all other places in core](https://github.com/search?q=repo%3Adiscourse%2Fdiscourse%20firstDay&type=code)
hard code it to firstDay: 1 as well, this small patch at least adds some consistency.

---------

Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
2025-02-27 20:43:23 +01:00
MarineBaron 634e232e5f
FEATURE: add plugin outlet in modal/post-event-builder (#693) 2025-02-27 20:34:12 +01:00
Jordan Vidrine 89f6b48bf6
Update discourse-post-event.scss (#695) 2025-02-25 15:28:48 -06:00
Jarek Radosz 52da58126e
DEV: Update license (#694) 2025-02-24 11:20:49 +08:00
Discourse Translator Bot af2c250ada
Update translations (#692) 2025-02-18 14:51:42 +01:00
Gabriel Grubba 30381025aa
FEATURE: Add value transformer for showing participants in the event more menu (#687)
* FEATURE: Add value transformer for showing participants in the event more menu

Plugins can add a value transformer to show participants in the event more menu. This is useful for plugins that want to show participants in the event more menu.

* DEV: Add testing to the more-menu value transformer

lint more-menu-test.gjs

* DEV: lint

* DEV: move to `withPluginApi`

* DEV: removed unnecessary variables from test

* DEV: lint

* Update test/javascripts/integration/components/more-menu-test.gjs

Co-authored-by: Sérgio Saquetim <1108771+megothss@users.noreply.github.com>

* Update assets/javascripts/discourse/components/discourse-post-event/more-menu.gjs

Co-authored-by: Sérgio Saquetim <1108771+megothss@users.noreply.github.com>

* Update assets/javascripts/discourse/pre-initializers/transformers.js

Co-authored-by: Sérgio Saquetim <1108771+megothss@users.noreply.github.com>

* DEV: update test to use mocked users

---------

Co-authored-by: Sérgio Saquetim <1108771+megothss@users.noreply.github.com>
2025-02-18 08:44:54 -03:00
dependabot[bot] 48841ca40a
bump rack from 3.1.8 to 3.1.10 (#691)
---
updated-dependencies:
- dependency-name: rack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-12 22:18:37 +01:00
Arpit Jalan ece387e429
FIX: do not show 'send pm' button to the user who created the event (#690) 2025-02-12 18:31:59 +05:30
Bianca Nenciu 72aa6e1a9b
FIX: Allow events belonging to deleted users to be destroyed (#688)
`DiscourseCalendar::CreateHolidayEvents` periodically deletes holiday
events to recreate updated ones. If one of the events belonged to a user
that has been destroyed and if `enable_user_status` was enabled, the
`after_destroy` hook would raise an exception.
2025-02-10 19:16:27 +02:00
David Taylor db040749b2
DEV: Bump dependencies and fix linting (#685) 2025-02-06 17:43:59 +01:00
David Taylor 6cd250dc10
DEV: Pin version for Discourse <3.5.0.beta1-dev (#684) 2025-02-05 19:59:09 +01:00
Juan David Martínez Cubillos fdf3ad9277
DEV: Add DiscourseEvent triggers to Invitee creation and update (#683)
* DEV: Add DiscourseEvent triggers to Invitee creation and update

* undid removed code

* remove not longer used file

* change trigger name
2025-01-24 12:03:46 -05:00
Discourse Translator Bot e5dee743e1
Update translations (#682) 2025-01-21 15:54:55 +01:00
Joffrey JAFFEUX cb4b6f681c
DEV: schedule is un-necessary (#681) 2025-01-21 13:35:19 +01:00
Kelv 4eaa701133
DEV: remove fa- prefix from icon names and update deprecated names for times and undo (#680) 2025-01-17 04:56:25 +08:00
Jordan Vidrine 3007975b95
UX: Do not show participants in admin drop down menu for standalone events (#679) 2025-01-14 19:28:06 -06:00
Renato Atilio 76d8b9a602
FIX: row height on the upcoming events calendar (#677) 2025-01-08 14:31:45 -03:00
Renato Atilio 3c833c99e3
FIX: recurring events not displayed on /upcoming-events (#676)
When we introduced the DiscoursePostEventEvent model and the API service, the recurrent events stopped working as their logic still relied on the old naming convention, upcoming_dates.

This PR changes the addRecurrentEvents logic to work with and to create DiscoursePostEventEvents for each of the upcomingDates, and changes the logic on the Category calendar to also work with the DiscoursePostEventEvent instance instead of the plain object, as well as re-using the API service to fetch the events.

The function passed to onPageChange was also changed to async/await with some minor changes for clarity.
2025-01-08 08:23:24 -03:00
Alan Guo Xiang Tan 764fd67b5e
DEV: Update Public Holidays for Singapore 2025 (#675)
Dates are referenced from https://www.mom.gov.sg/newsroom/press-releases/2024/0805-public-holidays-for-2025
2025-01-06 17:00:32 +08:00
Discourse Translator Bot 2a1bc44f96
Update translations (#673) 2025-01-03 14:01:54 +01:00
Arpit Jalan 73502dd180
Add India holidays for 2025 (#674) 2025-01-03 13:12:41 +05:30
Jordan Vidrine d72d84f47c
UX: Remove going indicator for standalone events (#672) 2024-12-24 10:13:08 -06:00
Joffrey JAFFEUX 46c93b81f0
FIX: correctly apply local dates on event dates (#671)
The next ensures `this.htmlDates` has correctly been set and a render is on going which is going to be awaited by the schedule render. Before this fix `querySelectorAll` could return an empty nodes list as the dates were not rendered yet.

Note next shouldn't have this effect here, so it's either a false positive or another side effect we were not expecting.
2024-12-23 13:02:05 +01:00
David Taylor 0d13b05695
DEV: Force enable glimmer topic list in specs (#670)
Otherwise it'll fail if some other incompatible plugin is installed at the same time
2024-12-19 17:30:31 +00:00
David Taylor 602db39265
DEV: Update specs for core change (#669)
https://github.com/discourse/discourse/pull/30375
2024-12-19 17:17:41 +00:00
Discourse Translator Bot 13c68a5c94
Update translations (#668) 2024-12-18 15:19:27 +01:00
benj d532eedffb
updates to qunit best practices (#665)
* updates to qunit best practices

* more q unit adjustments

* Update test/javascripts/integration/components/upcoming-events-list-test.gjs

Co-authored-by: Jarek Radosz <jradosz@gmail.com>

---------

Co-authored-by: Jarek Radosz <jradosz@gmail.com>
2024-12-17 09:55:15 -06:00
Discourse Translator Bot dce0c7e883
Update translations (#667) 2024-12-10 20:16:10 +01:00
Joffrey JAFFEUX df7e7a9098
FIX: ensures bulk-invite is working properly (#666)
There was two bugs:
- naming of properties were incorrect s/is_private/isPrivate and s/is_public/isPublic
- a previous refactoring has used `=` for setter when it's an `EmberObject` and `set` should be used

This commit also adds a spec and page objects to ensure this modal is working as expected.
2024-12-10 14:57:46 +01:00
Kelv 6a57ab5aa1
DEV: Update more deprecated Font Awesome icon names (#662) 2024-12-06 20:45:01 +01:00
Discourse Translator Bot e01c8016b4
Update translations (#664) 2024-12-06 18:04:49 +01:00
Jordan Vidrine 64c815bab8
UI: Right sidebar UI (#657) 2024-12-05 16:51:14 -06:00
Jordan Vidrine d967cb18f9
UX: Render invitees count (#663) 2024-12-05 16:22:09 -06:00
Discourse Translator Bot 9dd361fbaa
Update translations (#659) 2024-12-04 11:58:55 +01:00
Kelv a82cce2a65
DEV: Update deprecated Font Awesome icon names (#661) 2024-12-04 02:43:08 +01:00
Jordan Vidrine 5f6942c1f3
UX: Post event tweaks (#660) 2024-12-03 17:27:06 -06:00
benj 5cd3452c3b
FEATURE: Allow users to set a custom title to sidebar calendar (#649)
* Allows users to set a custom title to sidebar calendar

Co-authored-by: Jarek Radosz <jradosz@gmail.com>
2024-12-03 11:42:25 -06:00
Jordan Vidrine 725ae51373
UX: Events UI Edits (#641)
This PR restyles the current events post UI:

Minimize size of invitee avatars
move CTA buttons to bottom
remove invitee header & show more button (show more is in ellipses drop down)
restyle border
restyle month & date size & spacing
increase font size for title
add "0 going" placeholder to prevent jumpiness when invitees are rendered

---------

Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
2024-12-03 18:34:34 +01:00
Jordan Vidrine d75e3161fc
FIX: Render component on all routes (#655) 2024-12-02 17:03:16 -06:00
Jarek Radosz 026d755c78
DEV: Use `topic-list-header-sortable-column` transformer (#651) 2024-12-02 14:40:53 +01:00
David Taylor b8d50e9675
DEV: Update modifyClass calls to native class syntax (#656) 2024-12-02 13:22:35 +00:00