-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathNotes.txt
80 lines (59 loc) · 1.94 KB
/
Notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
Structure
=========
# GoogleDocsPlugin.php
* main backbone file
### Events:
* onEndShowNoticeForm, onEndShowNoticeItem, onEndNoticeSaveWeb,
onEndLogout, onEndShowScripts, onEndShowStatusNetStyles
### Routes:
* googledocs/authorization, googledocs/get, googledocs/list
# googledocsfile.php
* a light wrapper around MediaFile class
# googledocsattachmentlist.php
* a light wrapper around InlineAttachmentList
# actions
## get.php
* set ACL for viewer then redirect to the Google Docs file
## list.php
* list out Google Docs for browser (Ajax)
## authorization.php
* Oauth
# lib
* GdataOauthClient.php -> oauth dance wrapper for Google
* Zend -> using Zend Gdata and Oauth
# js
## docs.js
* handle ajax for googledocs/list, jQuery UI popups for docs browser and authentication
* a quick hack to position Google Docs attach button, and attachment list under NoticeItem
# css
# images
*****
Remarks
=======
* @fixme - for items to be improved and reworked
* JS structure needs further improvement
* To understand exception handling and implement it
*****
To discuss
==========
* positioning of Google Docs attach button and attachment list without ajax
* might need extra hooks
* support of extensible widgets in Notice form and MicroApps
* advice on how to restructure the application
* maybe for other cloud file services (Box.net, Dropbox etc)
* and/or integrate better with current attachment feature
* support multi-upload too?
To do
=====
* respect config's consumer key and secret
* improve googledocs/get logic, ACL management (both SN side and Google side)
* Clear the documents in Notice Form after successful posting
* how to bind to the separate ajax call success?
* support new document creation
* Redirect user back to the last page after authorization
* do @fixme
* commenting
* testing and debugging
* align code with SN core coding flow
* improve usability, and user-facing functionality
* css touch-up, icons