Closed Bug 780404 Opened 12 years ago Closed 5 years ago

Decouple display of today pane in chat tab from mail tab

Categories

(Calendar :: Lightning Only, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 71.0

People

(Reporter: mozilla, Assigned: pmorris, Mentored)

References

Details

(Whiteboard: [lang=js])

Attachments

(1 file, 2 obsolete files)

If you open a chat tab and start a chat conversation there's not much space and so I don't want the today pane here. But disabling it in the chat tab also disables it for the mail tab. One should be able to configure this independent.
Ah yes. I think right now we do it specifically for mail,task,calendar tab. I think this could be extended to work for any tab type by looking at the .type parameter of the tab definition.

I'm happy to mentor someone with this bug, I'd say its a "good second bug" or for skilled developers also a good first bug.
Whiteboard: [mentor=Fallen][lang=js]
Not exactly a second bug but this issue annoys me.

I'll have a patch ready in a few days.
Assignee: nobody → jkitch.bug
Sorry, I have been distracted by other bugs.  Clearing assign to allow someone else to take it.
Assignee: jkitch.bug → nobody
Mentor: philipp
Whiteboard: [mentor=Fallen][lang=js] → [lang=js]
I am new here and want to contribute to this bug. How should I start?
Hey Shubham, to get started, please read <https://wiki.mozilla.org/Calendar:Roadmap#Contributing>. Its not a lot of info, but its a good start. I'd suggest setting up the build environment, or if you would just like to try out a few things, just unzip the latest lightning.xpi and set up the extension proxy described here <https://developer.mozilla.org/en-US/Add-ons/Setting_up_extension_development_environment#Firefox_extension_proxy_file>

The latest Lightning is available from the nightly locations and are linked in the development snapshots section of this document <https://developer.mozilla.org/en-US/docs/Mozilla/Calendar/Calendar_Versions>.

You can search the code using <http://mxr.mozilla.org/comm-central/>. For the today pane we use a binding that was written a long time ago called a modebox, its code is here: http://mxr.mozilla.org/comm-central/source/calendar/base/content/widgets/calendar-widgets.xml#290

The goal would be to determine if the modebox can either be extended to take the "chat" mode into account, or see if its worth not using the binding at all for the today pane.

Let me know if you have questions, you can also reach me on IRC. My nickname is Fallen.
Assignee: nobody → shubhamjindal18

Assigning this to myself since it is closely related to the work I'm doing for bug 1583529.

Assignee: shubhamjindal18 → paul
Status: NEW → ASSIGNED
Depends on: 1583529
Attached patch separate-mail-and-chat-today-pane-1.patch (obsolete) β€” β€” Splinter Review

Rebased and reworked on top of changes in patches in bug 1583529.

Attachment #9097722 - Attachment is obsolete: true
Attachment #9097722 - Flags: review?(geoff)
Attachment #9098620 - Flags: review?(geoff)
Comment on attachment 9098620 [details] [diff] [review]
separate-mail-and-chat-today-pane-1.patch

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

R+ with similar changes to the test that I just requested in the other bug.

::: calendar/lightning/content/messenger-overlay-sidebar.js
@@ +658,5 @@
>   *
>   * @param {string} mode  The mode to switch to.
>   */
>  function calSwitchToMode(mode) {
> +  if (mode != "mail" && mode != "chat" && mode != "special") {

["mail", "chat", "special"].includes(mode) looks tidier.
Attachment #9098620 - Flags: review?(geoff) → review+

Thanks for the review. This makes those changes.

Here's a try run: https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=bb20a08bf5fd707d23539ea45e4747da4c93c71a&selectedJob=269779740

The try run has an eslint error that has already been fixed in this patch.

Attachment #9098620 - Attachment is obsolete: true
Attachment #9098831 - Flags: review+
Keywords: checkin-needed

Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/b1d22780fc37
Make today pane in chat and mail tabs independent. r=darktrojan

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 71
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: