Closed Bug 1673654 Opened 4 years ago Closed 4 years ago

opening an event in the today pane should open the event summary, not the edit event dialog

Categories

(Calendar :: Dialogs, enhancement)

enhancement
Not set
normal

Tracking

(thunderbird_esr78 wontfix)

RESOLVED FIXED
85 Branch
Tracking Status
thunderbird_esr78 --- wontfix

People

(Reporter: mkmelin, Assigned: lasana)

References

Details

Attachments

(1 file, 2 obsolete files)

+++ This bug was initially created as a clone of Bug #1575195 +++

For the Today pane, bug 1575195 is still not implemented - we should do the same there: open the summary pane instead of editing dialog. I think for the today pane it's even more likely you'd want to check the event details so that you know where to go, which meeting link to open and such.

Status: NEW → ASSIGNED
Attached patch bug1673654.patch (obsolete) — — Splinter Review

Changes modifyEventWithDialog to add openEventDialogForViewing in various places. Adds test to ensure unfinder and today pane open events in summary dialog.

Attachment #9185224 - Flags: review?(philipp)
Attached patch bug1673654.patch (obsolete) — — Splinter Review

Fixed a typo in the test.

Attachment #9185224 - Attachment is obsolete: true
Attachment #9185224 - Flags: review?(philipp)
Attachment #9185243 - Flags: review?(philipp)

Try run, had some issues with the todayPane test but finally got it to work on linux at least.

https://treeherder.mozilla.org/jobs?repo=try-comm-central&selectedTaskRun=DKKKmJXzREmqVoDWm02j8Q.0

Attachment #9185243 - Flags: review?(philipp) → review?(geoff)
Comment on attachment 9185243 [details] [diff] [review]
bug1673654.patch

Review of attachment 9185243 [details] [diff] [review]:
-----------------------------------------------------------------

This looks pretty good to me. A few things to tidy up.

::: calendar/test/browser/browser_calendarUnifinder.js
@@ +1,5 @@
> +/* This Source Code Form is subject to the terms of the Mozilla Public
> + * License, v. 2.0. If a copy of the MPL was not distributed with this
> + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
> +
> +/* globals agendaListbox */

Not used here.

@@ +22,5 @@
> +  let manager = cal.getCalendarManager();
> +  let calendar = manager.createCalendar("memory", uri);
> +  let calendarProxy = cal.async.promisifyCalendar(calendar);
> +
> +  calendar.name = "Today Pane";

Hmm!

@@ +26,5 @@
> +  calendar.name = "Today Pane";
> +  manager.registerCalendar(calendar);
> +  registerCleanupFunction(() => manager.removeCalendar(calendar));
> +
> +  let now = new Date().toISOString().replace(/[:.-]/g, "");

Why not cal.dtz.now()?

@@ +40,5 @@
> +  repeatEvent.recurrenceInfo.appendRecurrenceItem(
> +    cal.createRecurrenceRule("RRULE:FREQ=DAILY;COUNT=30")
> +  );
> +
> +  await CalendarTestUtils.openCalendarTab(window);

You should check the unifinder is open here. We haven't closed it in tests, but that could change.

@@ +59,5 @@
> +    );
> +
> +    let closePromise = BrowserTestUtils.domWindowClosed(dialogWindow);
> +    dialogWindow.close();
> +    await closePromise;

BrowserTestUtils.closeWindow will do this for you. At this point you could delete the event like you do in the Today Pane test, instead of keeping track with idx.
Attachment #9185243 - Flags: review?(geoff)
Attached patch bug1673654v2.patch — — Splinter Review

Feedback incorporated.

Attachment #9185243 - Attachment is obsolete: true
Attachment #9188918 - Flags: review?(geoff)

Comment on attachment 9188918 [details] [diff] [review]
bug1673654v2.patch

That's better. Thanks.

Attachment #9188918 - Flags: review?(geoff) → review+
Target Milestone: --- → 85 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/f2ca0b224080
Open events in calendar summary dialog for today pane and unifinder. r=darktrojan

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Blocks: 1685007
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: