[de-xbl] Migrate attendees-list to custom element.
Categories
(Calendar :: General, enhancement)
Tracking
(Not tracked)
People
(Reporter: arshad, Assigned: arshad)
References
Details
Attachments
(1 file, 26 obsolete files)
94.30 KB,
patch
|
jorgk-bmo
:
review+
|
Details | Diff | Splinter Review |
Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 2•6 years ago
|
||
Conversion like this a little bit tricky.. This element uses a method of Richlistbox but only under certain conditon which depends upon layout of the attendees-list..
Assignee | ||
Comment 3•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Comment 4•6 years ago
|
||
Comment 5•6 years ago
|
||
Comment 6•6 years ago
|
||
Oh, and do use hg cp --after, to record the blame.
Updated•6 years ago
|
Assignee | ||
Comment 7•6 years ago
|
||
onInitialize() should not be allowed to dig into the window arguments
though. I think there should be some outer code that sets the element up
with the needed information at the right time.
Why not?
Assignee | ||
Comment 8•6 years ago
|
||
Instead of this line, could you try: .textbox-addressingWidget {
This will target every element with this class which I dont want.
Assignee | ||
Comment 9•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 10•6 years ago
|
||
There are some issues with the css of the whole attendees dialog. fixed position is used which doesn't work well with overflow property. Some elements gets a bit chopped when dialog height is resized. I think it should be fixed in different bug.
Comment 11•6 years ago
|
||
(In reply to Arshad Khan [:arshad] from comment #7)
onInitialize() should not be allowed to dig into the window arguments
though. I think there should be some outer code that sets the element up
with the needed information at the right time.Why not?
That totally destroys the idea that this would be a component that could be reused (well, it's not, but that's a different issue). It leads to magic behaviour that is hard to understand. If I put a component into a page I expect it to be configurable at that place through attributes, or to be configured through global loading code. NOT that it would partly configure itself depending on what the window arguments happen to be, and certainly not somewhere deep inside the basically private methods of the component.
Comment 12•6 years ago
|
||
Assignee | ||
Comment 13•6 years ago
|
||
Assignee | ||
Comment 14•6 years ago
|
||
Assignee | ||
Comment 15•6 years ago
|
||
Assignee | ||
Comment 16•6 years ago
|
||
Assignee | ||
Comment 17•6 years ago
|
||
Comment 18•6 years ago
|
||
Assignee | ||
Comment 19•6 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #18)
Comment on attachment 9044567 [details] [diff] [review]
attendees-list.patchReview of attachment 9044567 [details] [diff] [review]:
Please
hg cp calendar/base/content/dialogs/calendar-event-dialog-attendees.xml
calendar/base/content/dialogs/calendar-event-dialog-attendees.js to preserve
some blame, and easier review
calendar-event-dialog-attendees-custom-elements.js?
Assignee | ||
Comment 20•6 years ago
|
||
@@ +722,5 @@
- }
- /**
* Gets the next row from the top down.
*/
there's a bunch of places like this where the documentation indention seems
one space off
how is it off?
Assignee | ||
Comment 21•6 years ago
|
||
(In reply to Arshad Khan [:arshad] from comment #20)
@@ +722,5 @@
- }
- /**
* Gets the next row from the top down.
*/
there's a bunch of places like this where the documentation indention seems
one space offhow is it off?
I mean to say that I dont see any other option better than this. I see this identation used everywhere.
Assignee | ||
Comment 22•6 years ago
|
||
The ui hickup is already there and not caused by this patch. I have fixed the backspace buttona and arrow button issue.
Assignee | ||
Comment 23•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Comment 24•6 years ago
|
||
Assignee | ||
Comment 25•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Comment 27•6 years ago
|
||
Updated•6 years ago
|
Assignee | ||
Comment 28•6 years ago
|
||
Assignee | ||
Comment 29•6 years ago
|
||
Comment 30•6 years ago
|
||
Assignee | ||
Comment 31•6 years ago
|
||
Assignee | ||
Comment 32•6 years ago
|
||
Assignee | ||
Comment 33•6 years ago
|
||
Assignee | ||
Comment 34•6 years ago
|
||
Assignee | ||
Comment 35•6 years ago
|
||
Assignee | ||
Comment 36•6 years ago
|
||
Assignee | ||
Comment 37•6 years ago
|
||
Assignee | ||
Comment 38•6 years ago
|
||
I haven used {object} instead of {node} at some places so please dont mind that, I ll fix it in next patch.
Comment 39•6 years ago
|
||
Assignee | ||
Comment 40•6 years ago
|
||
Assignee | ||
Comment 41•6 years ago
|
||
Some of the comments might be wrong. I have tried to write the best I could. TBH while converting an element, I understand the code technically and converts xbl/xul related things into ce stuff.. Many times I dont know some of the methods present and what they do, you guys know the widgets holistically and technically better than me so please guide me when I am wrong. I wont complain how many times I am flagged for re review.
Comment 42•6 years ago
|
||
Assignee | ||
Comment 43•6 years ago
|
||
Assignee | ||
Comment 44•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Comment 45•6 years ago
|
||
Assignee | ||
Comment 46•6 years ago
|
||
Comment 47•6 years ago
|
||
Hi Arshad, looking at
https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=0bfcfb8422e4a34fcf25be4a49a2d96df40dd961
The X1, X4 failures are expected. If you rebase, the Z4 should be green. Z1, eventDialog/testEventDialogModificationPrompt.js looks like something you caused unless it's intermittent.
Comment 48•6 years ago
|
||
Almost ready to go?
Assignee | ||
Comment 49•6 years ago
|
||
Assignee | ||
Comment 50•6 years ago
|
||
Assignee | ||
Comment 51•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 52•6 years ago
|
||
Jorgk, looks like the try is ok?
Comment 53•6 years ago
|
||
I'm confused as to what you want landed here. Both patches have the same size, so are they the same?
Th try run doesn't look good since Z2 failed completely, although that may/will be unrelated. The X1 failure has been resolved. So best to do another try. You can add Mac as well as per the e-mail I've sent you on Monday. Add one of these patches to the push:
https://hg.mozilla.org/try-comm-central/rev/ec7d128491d3e1bcc2c5519679d8ee94dec1cdd5
https://hg.mozilla.org/try-comm-central/rev/f680a8802b10c7c365ad360e5a8b607d14432cd0
Assignee | ||
Comment 54•6 years ago
|
||
Assignee | ||
Comment 55•6 years ago
|
||
Assignee | ||
Comment 56•6 years ago
|
||
(In reply to Jorg K (GMT+2) from comment #53)
I'm confused as to what you want landed here. Both patches have the same size, so are they the same?
Th try run doesn't look good since Z2 failed completely, although that may/will be unrelated. The X1 failure has been resolved. So best to do another try. You can add Mac as well as per the e-mail I've sent you on Monday. Add one of these patches to the push:
https://hg.mozilla.org/try-comm-central/rev/ec7d128491d3e1bcc2c5519679d8ee94dec1cdd5
https://hg.mozilla.org/try-comm-central/rev/f680a8802b10c7c365ad360e5a8b607d14432cd0
Sorry I uploaded same patch. I have fixed that now. Also I have pushed another try run with first patch - https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=c330d5c396af8ea16399c024b73e062329ae5515
Assignee | ||
Updated•6 years ago
|
Comment 57•6 years ago
|
||
Merged patch. What you've done here made no sense. In the first patch you did:
copy from calendar/base/content/dialogs/calendar-event-dialog-attendees.xml
copy to calendar/base/content/dialogs/calendar-event-attendees-custom-elements.js
which is not a good idea to start with since and XML file is not a JS file. Moving a file pr preserve history might be OK. However, the first patch doesn't make any changes to the new file calendar-event-attendees-custom-elements.js.
In the second patch, you delete the new file again:
deleted file mode 100644
--- a/calendar/base/content/dialogs/calendar-event-attendees-custom-elements.js
So that's really confusing and unnecessary churn. I've folded the two patches. Now that stuff that is removed from the XML file goes into an existing custom elements JS file.
Comment 58•6 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/1552305b49b0
Migrate attendees-list binding to custom-element. r=philipp
Updated•6 years ago
|
Description
•