0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-09 21:45:25 +08:00
discourse/plugins/discourse-calendar/spec/requests
Régis Hanol 2fb587c4fe
UX: Fix several event editor, builder, and calendar card issues (#41080)
Previously, the renewed calendar event UI had a number of rough edges
reported in the [Event (calendar) UX
issues](https://meta.discourse.org/t/event-calendar-ux-issues/405388)
topic on Meta. The calendar card's hero image and the "Advanced
settings" toggle have since been addressed separately (#41135 and
#41138), so this change focuses on the remaining issues:

- **Name placeholder** — editing an event with no explicit name now
shows the topic title as a placeholder (mirroring the composer) without
writing it as a value, keeping the event name decoupled from the topic
title.
- **Two-click focus** — flushing the event block triggered
`composer:replace-text`, whose `insertAtTextarea` unconditionally
focused the textarea and stole the click; a new opt-in `skipFocus`
option mutates the value with `setRangeText` + an `input` event so focus
never moves. The rich-text editor was never affected (it commits through
ProseMirror transactions).
- **Readable custom fields** — event custom fields are now serialized by
`BasicEventSerializer`, so they are available from event listings and
not just the full event view.
- **Extensibility** — a `discourse-post-event-builder-custom-fields`
outlet wraps the builder's custom fields section so it can be replaced
or hidden, and a `discourse-post-event-composer-editor` outlet is
exposed on the composer event editor.

Covered by new system, request, and serializer specs. Also adds a system
spec for the calendar card image behavior shipped in #41135, which
previously had no coverage.
2026-07-02 13:04:23 +02:00
..
admin DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
api UX: Fix several event editor, builder, and calendar card issues (#41080) 2026-07-02 13:04:23 +02:00
calendar_subscriptions_spec.rb FEATURE: Add calendar subscription URLs to user preferences (#38598) 2026-03-17 10:28:20 -03:00
categories_controller_spec.rb DEV: Remove enable_simplified_category_creation old code (#40108) 2026-05-27 10:04:46 +10:00
events_controller_spec.rb FIX: Single-occurrence RSVPs filled the "My events" calendar (#40813) 2026-07-01 21:04:25 +02:00
group_timezones_spec.rb SECURITY: Group timezone serialization leaks hidden group members (#40873) 2026-06-15 12:51:05 +01:00
invitees_controller_spec.rb FEATURE: Better RSVPs on recurring events (#39892) 2026-05-18 10:42:09 +02:00
site_spec.rb
sort_event_topics_spec.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00