Change calendar list tree to a list
Categories
(Calendar :: General, task)
Tracking
(Not tracked)
People
(Reporter: darktrojan, Assigned: darktrojan)
References
Details
Attachments
(3 files, 2 obsolete files)
|
20.28 KB,
patch
|
Fallen
:
review+
|
Details | Diff | Splinter Review |
|
87.06 KB,
image/png
|
Details | |
|
119.73 KB,
patch
|
darktrojan
:
review+
darktrojan
:
ui-review+
|
Details | Diff | Splinter Review |
Being a tree seriously over-complicates things (especially CSS things) considering we don't have a hierarchy of calendars, just a flat collection of them. This is a follow-up to bug 1558384 so that we can use CSS variables for calendar colours in the calendar list.
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
Time for some fresh eyes on this. I think it's ready, and I've written tests to that effect, but I've reached the point where I've looked at it so long I'm probably missing something obvious.
| Assignee | ||
Comment 2•6 years ago
|
||
First mochitests for calendar!
A few odd things to note:
- I've had to move some
<command>s from one overlay to another so that listeners are attached properly when the overlay loader adds them to the document. Otherwise it works okay for the user, but not the tests. - I've undone the bug 1151440 work-around, that works fine now.
- I've put some functions in the top-level of browser_calendarList.js, that could be put in head.js and reused by later tests.
- browser_tabs.js doesn't really do much, it was a proof-of-concept for the test suite, but it might as well remain.
Comment 3•6 years ago
|
||
| Assignee | ||
Comment 4•6 years ago
|
||
(In reply to Richard Marti (:Paenglab) from comment #3)
I'll give a ui-r+ because it looks with default theme almost like before.
That's what I was going for!
With dark theme it uses the wrong colours. I'll fix this in a follow-up bug.
It looks like setting color: inherit on #calendar-list does the job.
::: calendar/base/themes/common/widgets/calendar-widgets.css
@@ +128,5 @@+}
+
+#calendar-list richlistitem {
- -moz-box-align: center;
- border-top: 2px transparent solid;
Why do you add this border? This doesn't look so good (content not centred)
except on the last item which has the border on the bottom too. If you want
to add the border, I propose 1px on top and bottom for all items.
If it was to add some padding inside the list, you should add it as padding
in the #calendar-list.
The border is for drag/drop placement, like the attachments list in the compose window (which I now see is 1px not 2). Happy to reduce it to 1px as I think the items are spaced too far apart anyway.
Comment 5•6 years ago
|
||
(In reply to Geoff Lankow (:darktrojan) from comment #4)
(In reply to Richard Marti (:Paenglab) from comment #3)
I'll give a ui-r+ because it looks with default theme almost like before.
That's what I was going for!
With dark theme it uses the wrong colours. I'll fix this in a follow-up bug.
It looks like setting
color: inheriton #calendar-list does the job.
And defining the selected row background-color of the theme. :)
Comment 6•6 years ago
|
||
Updated•6 years ago
|
Comment 7•6 years ago
|
||
Comment 8•6 years ago
|
||
What I did notice, the calendar colors for the provider are not showing. Can you look into this before you push?
| Assignee | ||
Comment 9•6 years ago
|
||
(In reply to Philipp Kewisch [:Fallen] [:π] from comment #6)
Can we make this a custom element? If we are re-using this list, and I think
that makes sense for calendar lists, I think it should have a custom class.
The whole point was for it to not be a custom element. They are three lists that do very different things but happen to have similar appearance.
| Assignee | ||
Comment 10•6 years ago
|
||
(In reply to Philipp Kewisch [:Fallen] [:π] from comment #8)
What I did notice, the calendar colors for the provider are not showing. Can you look into this before you push?
It's working for me. Did you build after applying the patch? (I think you must have, or there'd be other issues, but given that the gdata build isn't symlinked to the source yetβ¦)
Comment 11•6 years ago
|
||
Hmm, no checkin-needed here yet and it's unclear whether some comments will be addressed.
| Assignee | ||
Comment 12•6 years ago
|
||
| Assignee | ||
Comment 13•6 years ago
|
||
Try run with this and bug 1569539. This needs to land first.
| Assignee | ||
Comment 14•6 years ago
|
||
(In reply to Richard Marti (:Paenglab) from comment #5)
With dark theme it uses the wrong colours. I'll fix this in a follow-up bug.
It looks like setting
color: inheriton #calendar-list does the job.And defining the selected row background-color of the theme. :)
I haven't addressed this last bit, I'm not totally sure I know what you want. I've seen background colours on lists done in several different ways.
Comment 15•6 years ago
|
||
I can do this in a follow-up bug when you open it. ;-)
Comment 16•6 years ago
|
||
What I did notice, the calendar colors for the provider are not showing. Can you look into this before you push?
It's working for me. Did you build after applying the patch? (I think you must have, or there'd be other issues, but given that the gdata build isn't symlinked to the source yetβ¦)
I used an artifact build and mach build faster, it is possible that didn't pick up the gdata changes.
The whole point was for it to not be a custom element. They are three lists that do very different things but happen to have similar appearance.
Hm ok. It just seems like a thing that would be easily reusable, and I'm worried that if we have different implementations then changing things in one spot might be missed in the others.
Comment 17•6 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/4e9163b13c8f
Change calendar list tree to a list; r=Fallen, ui-r=Paenglab
https://hg.mozilla.org/comm-central/rev/730da0161d02
Tests for new calendar list and calendar properties dialog; r=Fallen
Updated•6 years ago
|
Comment 18•6 years ago
|
||
Comment 19•6 years ago
|
||
Slightly related to this, any reason to have the calendar-list-header have a twisty for expansion? The one that says v Calendar above the calendar list.
| Assignee | ||
Comment 20•6 years ago
|
||
I don't know the answer but the tasks filter above it is similarly collapsible. It's probably one of those things that somebody thought would be useful once.
Description
•