Closed Bug 272732 Opened 21 years ago Closed 20 years ago

New event/edit event dialog updates

Categories

(Calendar :: Sunbird Only, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Sunbird 0.3

People

(Reporter: pavlov, Assigned: pavlov)

References

(Depends on 1 open bug)

Details

Attachments

(13 files, 2 obsolete files)

100.08 KB, patch
Details | Diff | Splinter Review
107.76 KB, patch
Details | Diff | Splinter Review
4.30 KB, patch
Details | Diff | Splinter Review
48.52 KB, patch
Details | Diff | Splinter Review
20.16 KB, patch
Details | Diff | Splinter Review
42.01 KB, patch
Details | Diff | Splinter Review
42.32 KB, patch
Details | Diff | Splinter Review
18.91 KB, patch
mattwillis
: first-review+
Details | Diff | Splinter Review
13.46 KB, patch
Details | Diff | Splinter Review
14.55 KB, patch
Details | Diff | Splinter Review
15.80 KB, patch
Details | Diff | Splinter Review
12.22 KB, patch
Details | Diff | Splinter Review
77.22 KB, patch
Details | Diff | Splinter Review
Updating the event dialog to use the new calendar APIs as well as a revamp'd dialog by Matthew Willis. A few things are still needed like recurance and some alarm work, but this gets things being added to a calendar.
Attached patch inital pass β€” β€” Splinter Review
Attachment #167625 - Flags: first-review?(shaver)
Comment on attachment 167625 [details] [diff] [review] inital pass > getProperty: function (aName) { >- return this.mProperties.getProperty(aName); >+ try { >+ return this.mProperties.getProperty(aName); >+ } catch (e) { >+ return undefined; >+ } > }, I think we'd rather return null here, if indeed we want to suppress this error in that fashion. > setProperty: function (aName, aValue) { > if (this.mImmutable) >@@ -153,7 +157,10 @@ > deleteProperty: function (aName) { > if (this.mImmutable) > throw Components.results.NS_ERROR_FAILURE; >- this.mProperties.deleteProperty(aName); >+ try { >+ this.mProperties.deleteProperty(aName); >+ } catch (e) { >+ } > } > }; Is the intent to silently fail to delete an item that isn't present? If so, please confer with Vlad to make sure that that's the desired behavior for this API, and stick a comment in the IDL somewhere. >+ case "popup": >+ showElement("alarm-length-field"); >+ showElement("alarm-length-units"); >+ hideElement("alarm-box-email"); >+ break; >+ case "popupAndSound": >+ showElement("alarm-length-field"); >+ showElement("alarm-length-units"); >+ hideElement("alarm-box-email"); >+ break; Can merge these into a single block with two case labels. Seems like we could generally merge the popup and popupAndSound cases throughout the code, but that's not what this patch is about. Nothing here looks like a show-stopper to me. Time to wreck some stuff!
Attachment #167625 - Flags: first-review?(shaver) → first-review+
checked in. i'll leave this open for additional work on this.
OS: Linux → All
Hardware: PC → All
Target Milestone: --- → Sunbird 0.3
Comment on attachment 169851 [details] [diff] [review] rev1 - trunk - further updates to eventDialog - more works with the changes we talked about on irc (style stuff mostly) r=
Attachment #169851 - Flags: first-review?(pavlov) → first-review+
(In reply to comment #5) > (From update of attachment 169851 [details] [diff] [review] [edit]) > with the changes we talked about on irc (style stuff mostly) r= > checked in
Attachment #169853 - Flags: first-review?(pavlov)
Attachment #169853 - Flags: first-review?(pavlov) → first-review+
(In reply to comment #7) > Created an attachment (id=169853) [edit] > rev2 - trunk - fixes window title > checked in
Attachment #170157 - Flags: first-review?(pavlov) → first-review+
(In reply to comment #10) > Created an attachment (id=170157) [edit] > rev4 - trunk - more fixes, more refactoring, less redundant code, more work on > event vs. todo checked in
Comment on attachment 170179 [details] [diff] [review] rev5 - trunk - incorporates changes we talked about on IRC r= with the title fixes we talked about on irc
Attachment #170179 - Flags: first-review?(pavlov) → first-review+
(In reply to comment #13) > (From update of attachment 170179 [details] [diff] [review] [edit]) > r= with the title fixes we talked about on irc > Checked in with the fixes: 16:33 <stuart> your changeTitleBar thing doesn't have a var title anywhere 16:33 <stuart> add var title; at the top of that function and remove it fro mprocessComponentType
Attached patch rev6 - trunk - more todo and UI work (obsolete) β€” β€” Splinter Review
Attachment #170199 - Flags: first-review?(pavlov)
Attachment #170199 - Flags: first-review?(pavlov)
Attachment #170242 - Flags: first-review?(pavlov) → first-review+
(In reply to comment #16) > Created an attachment (id=170242) [edit] > rev7 - trunk - more UI work, adds support for event priority and todo statuses Checked in.
Attachment #170276 - Flags: first-review?(pavlov)
Attachment #170276 - Flags: first-review?(pavlov) → first-review+
(In reply to comment #18) > Created an attachment (id=170276) [edit] > rev8 - trunk - fixes to alarms for event vs. todo, etc. Checked in.
Comment on attachment 170309 [details] [diff] [review] rev9 - trunk - "OK" stuff now works for both events and todos r=dmose via irc
Attachment #170309 - Flags: first-review?(pavlov) → first-review+
(In reply to comment #20) > Created an attachment (id=170309) [edit] > rev9 - trunk - "OK" stuff now works for both events and todos Checked in.
Attachment #170368 - Flags: first-review?(pavlov)
Attachment #170368 - Flags: first-review?(pavlov) → first-review+
(In reply to comment #23) > Created an attachment (id=170368) [edit] > rev10 - minor fixes to xul/js for recurrence Checked in.
Attachment #170398 - Flags: first-review?(pavlov)
Attachment #170398 - Flags: first-review?(pavlov) → first-review+
(In reply to comment #25) > Created an attachment (id=170398) [edit] > rev11 - trunk - fixes day checkboxes in recurrence Checked in.
Attachment #170407 - Flags: first-review+
Depends on: 168680
Depends on: 259243
Depends on: 259466
Comment on attachment 170632 [details] [diff] [review] rev13 - trunk - more UI polish - listbox "remove" buttons now disable/enable properly Local style omits braces on single-line thens and elses. With that changed, r=shaver.
Attachment #170632 - Flags: first-review?(shaver) → first-review+
(In reply to comment #29) > (From update of attachment 170632 [details] [diff] [review] [edit]) > Local style omits braces on single-line thens and elses. With that changed, > r=shaver. rev13 checked in with those changes
Comment on attachment 170680 [details] [diff] [review] rev14 - trunk - patch standardizes on use of get/setFieldValue, and removes many global vars (ie: gEvent) r=shaver with IRC comments
Attachment #170680 - Flags: first-review?(shaver) → first-review+
(In reply to comment #32) > (From update of attachment 170680 [details] [diff] [review] [edit]) > r=shaver with IRC comments Checked in (w/ comments and conflict fixes) This patch breaks the ability to switch from Event to Todo in the dialog. More back end work needs to happen to support that.
QA Contact: gurganbl → sunbird
As far as I can tell, this bug itself is done. We can use individual bugs for remaining things that need to be tweaked.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: