Mailspring/static
Ben Gotow 8f2211f6a0 feat(threads): List improvements and message collapsing
Summary:
This diff uses the new ?expanded=true threads request to fetch threads and the messages inside them at the same time. The messages from this endpoint don't contain bodies. Message bodies have been moved to a new "secondary attribute" type, which can be optionally requested when making queries. This allows us to 1) quickly fetch messages without worrying about MBs of JSON, 2) update messages without updating their bodies, and 3) avoid calls to /messages?thread_id=123. The new message store fetches just the items it wants to display in expanded mode, and we'll show snippets for the rest.

Fix up forwarded message

Approach: Thread.messageMetadata

join approach WIP

join approach complete

"" || null = null. OMG.

Make spinner a bit smarter, use code delays and not css delays

Search suggestion store should only show first 10 matches

Msg collapsing, refactored msg store that will fetch individual messages that are marked as expanded, set loaded = true when it's all done

Test Plan: Tests coming soon. The query refactoring here broke a lot of tests...

Reviewers: evan

Reviewed By: evan

Differential Revision: https://review.inboxapp.com/D1345
2015-03-25 12:41:48 -07:00
..
components feat(threads): List improvements and message collapsing 2015-03-25 12:41:48 -07:00
fonts/FontAwesome Restoring SearchBar, adding FontAwesome for icons not designed yet 2015-03-03 09:49:15 -08:00
images feat(threads): List improvements and message collapsing 2015-03-25 12:41:48 -07:00
mixins fix(less): Lint errors preventing successful build 2015-03-05 15:42:38 -08:00
sounds feat(notifications): Initial pass at new mail notifications 2015-02-20 12:19:34 -08:00
variables feat(threads): List improvements and message collapsing 2015-03-25 12:41:48 -07:00
buttons.less fix(*): Small fixes for drafts, interface tweaks 2015-03-23 16:33:28 -07:00
font-awesome.min.css Restoring SearchBar, adding FontAwesome for icons not designed yet 2015-03-03 09:49:15 -08:00
index.html feature(templates): Pick templates, fill variable regions, Draft extensions 2015-03-20 10:23:50 -07:00
index.js more UI variable improvements 2015-03-03 12:24:48 -08:00
index.less fix(message-list): Adds fade-in, fixes jerky scroll offset when viewing messages 2015-03-17 12:11:34 -07:00
inputs.less fix(*) minor patches and fixes for specs / ui 2015-03-05 19:09:42 -08:00
jasmine.less refactor(*): Remove Atom package dependecies and Atom styles! 2015-02-06 16:57:33 -08:00
linux.less fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00
normalize.less fix(less): Lint errors preventing successful build 2015-03-05 15:42:38 -08:00
resizable.less button and less changes 2015-03-03 18:09:57 -08:00
type.less feat(composer): add popout icon and header styles 2015-03-10 18:14:53 -07:00
utilities.less fix(less): Lint errors preventing successful build 2015-03-05 15:42:38 -08:00
workspace.less feat(threads): List improvements and message collapsing 2015-03-25 12:41:48 -07:00