lilia
2f0b0f7a1b
Get overflow scrolls working
...
Had to resort to a resize event handler.
A bit slow at times, but it works.
2014-08-25 19:01:13 -07:00
lilia
546cdf82cb
Fix some markup issues
...
* Remove spurious search div
* Fix nested uls
* Use class name selected, not closed (the inverse)
* Restor nacl div
2014-08-25 18:59:22 -07:00
lilia
c2beda8e40
Get single recipient message composition working again
2014-08-25 18:55:51 -07:00
lilia
c034ac8267
Refactor components for the main content section
...
Each conversation views now manages its own separate elements
rather than all binding to a shared #conversation element, and
similarly for message composition ui.
Also includes the beginnings of group creation UI (not working yet),
featuring bootstrap-tagsinput field for entering group recipients
2014-08-25 18:54:55 -07:00
lilia
8d83a8fb27
This element is constant, so let's bootstrap it
2014-08-25 18:48:12 -07:00
lilia
5f74a60364
Format thread timestamps
2014-08-25 18:48:12 -07:00
lilia
44f272a181
Get messages sending with new ui
...
Also convert index.html to 4-space indentation.
2014-07-27 15:04:12 -10:00
lilia
95c31629b7
get frontend rendering with new markup/css
2014-07-27 12:16:58 -10:00
lilia
850a91c77d
Fix message sending
2014-07-27 11:35:49 -10:00
lilia
0741c74618
Don't recreate views unnecessarily
...
Let ConversationListItemView save a reference to its corresponding
ConversationView. This lets it render or delegate/undelegate events
when opening and closing a conversation.
Similarly for ConversationView itself, which contains a MessageListView.
2014-07-27 11:35:49 -10:00
lilia
9d0be46a53
Close an open conversation before opening another
2014-07-27 11:35:49 -10:00
lilia
bbb5d56516
Don't reopen a currently selected conversation
2014-07-27 11:35:49 -10:00
lilia
98cfc1b701
Remove old convo compose view
2014-07-27 11:35:49 -10:00
lilia
511b121a2f
Refactor conversation view into two classes
...
One that resides in the left hand column as a list item, and another
which displays in the main column and handles ui events therein.
2014-07-27 11:35:49 -10:00
lilia
6ff6ef07a9
Parse the template before binding render to an event
2014-07-27 11:35:49 -10:00
lilia
d615a5a18b
Let list view changes the color of selected conversations
2014-07-27 11:35:49 -10:00
lilia
dc957415c2
Cull dead code
...
Most of this no longer needed because of templating and list views.
2014-07-27 11:35:49 -10:00
lilia
9082781e09
Make header and footer/form work without overflowing
2014-07-27 11:35:49 -10:00
lilia
df95a7f71a
Move ui init out of nacl callback and remove some lines that no longer apply
2014-07-27 11:35:49 -10:00
lilia
def32f42d4
New layout/design
...
Two column layout and style tweaks. Templatized conversation views.
Generalized list view.
2014-07-27 11:35:48 -10:00
lilia
6d5e32bca8
Don't make a new collection on every call to thread.messages()
2014-07-27 11:35:48 -10:00
lilia
7e20838128
Rename file
2014-07-27 11:35:48 -10:00
lilia
4724c96ecb
Use $.find so these locals can go away
2014-07-27 11:35:48 -10:00
lilia
2e3d89ef78
Use mustache template for message rendering
2014-07-27 11:35:48 -10:00
lilia
25fecc949e
Condense some code using Backbone.View's event framework
2014-07-27 11:35:48 -10:00
lilia
06ff6c3087
Let thread collection double as contacts db
...
When a thread is 'destroyed' from the UI we delete its messages and mark
the thread as inactive, (in other words, keep it around as contact info).
Additionally, we only load active threads when initializing the UI, and
reactivate threads when new messages are added to them.
Conflicts:
js/models/messages.js
js/models/threads.js
js/views/conversations/show.js
2014-07-27 11:35:48 -10:00
lilia
c6b79236d9
Fix whitespace, lint
2014-07-27 11:35:48 -10:00
lilia
ebf1b3352f
Use separate message collections for each thread to facilitate lookup and lazy loading
2014-07-27 11:35:48 -10:00
Matt Corallo
d6d17eaf19
Remove unused function
2014-07-27 02:33:17 -04:00
Matt Corallo
3696214edc
Add missing localStorage.clear()
2014-07-27 02:30:00 -04:00
Matt Corallo
28779e0b35
Fix tests by returning promises
2014-07-27 02:05:25 -04:00
Matt Corallo
90eb9cb0c8
Remove ping, update to latest spec proposal
2014-07-26 18:15:24 -04:00
Matt Corallo
f6f35c5b61
Fix a missing function and dont blow up on delivery receipts
2014-07-26 01:53:24 -04:00
Matt Corallo
d9f53d4c01
Fix not-allowed inline scripts error
2014-07-26 01:37:47 -04:00
Matt Corallo
a6b0d1f84b
Add entirely untested secondary device init
2014-07-26 01:32:05 -04:00
lilia
2751d0e884
Such tests. Very mocha. Much chai. Amaze!!!
...
ERHMAGERRRD testing frameworks are so the best. Removed all our custom
code for ensuring test exclusivity and doneness and isolating callbacks
and everything. mocha does it all for us, and makes it pretty.
Also rather than return a long chain of promises that eventually resolve
to truthiness, we now use chai to make assertions about what is good and
right in the world.
Recommended reading:
https://visionmedia.github.io/mocha
http://chaijs.com/api/assert/
2014-07-25 18:01:19 -10:00
Matt Corallo
6455da5c9a
Refactor a bunch of stuff re: session closing, add test cases
2014-07-25 19:55:49 -04:00
Matt Corallo
c427da04f0
Add closeSession tests as Alice and fix re-requesting prekeys
2014-07-24 20:15:27 -04:00
Matt Corallo
6f3ee151f3
Add a BOB test-case around session closure
2014-07-24 17:11:53 -04:00
Matt Corallo
a6426194ef
Update BOB test cases
2014-07-24 06:42:41 -04:00
Matt Corallo
957587bd9a
Add identity keys to MAC, begin updating test cases
2014-07-24 06:29:11 -04:00
Matt Corallo
eab0911d3d
I lied, there is no verification tag
2014-07-24 05:14:38 -04:00
Matt Corallo
85f33345ab
Move test shuffling to js/testvectors.js
2014-07-23 20:29:45 -04:00
Matt Corallo
0088721343
Move AXOLOTL test vectors to js/testvectors.js
2014-07-23 18:22:16 -04:00
Matt Corallo
07f79cb4bf
Fix tester
2014-07-23 03:59:22 -04:00
Matt Corallo
7013c5e031
First steps towards BOB test vectors
2014-07-23 03:57:50 -04:00
Matt Corallo
ebcfd4736e
Fix session lookup in duplicate prekeymessage case
2014-07-23 03:36:11 -04:00
Matt Corallo
5040bfbe44
Fix pending verifications
2014-07-23 02:53:31 -04:00
Matt Corallo
a76ae2f1f8
Add verification tags, make alice tests strict(ish) again
2014-07-23 02:49:47 -04:00
Matt Corallo
287b55120d
First cut of ALICE test vectors
2014-07-23 01:49:13 -04:00