Mailspring/src
Ben Gotow 31037dfa1b perf(thread-list): Tailored SQLite indexes, ListTabular / ScrollRegion optimizations galore
Summary:
Allow Database models to create indexes, but don't autocreate bad ones

fix minor bug in error-reporter

Fix index on message list to make thread list lookups use proper index

Developer bar ignores state changes unless it's open

DatabaseView now asks for metadata for a set of items rather than calling a function for every item. Promise.props was cute but we really needed to make a single database query for all message metadata.

New "in" matcher so you can say `thread_id IN (1,2,3)`

Add .scroll-region-content-inner which is larger than the viewport by 1 page size, and uses transform(0,0,0) trick

ScrollRegion exposes `onScrollEnd` so listTabular, et al don't need to re-implement it with more timers. Also removing requestAnimationFrame which was causing us to request scrollTop when it was not ready, and caching the values of...

...clientHeight/scrollHeight while scrolling is in-flight

Updating rendered content 10 rows at a time (RangeChunkSize) was a bad idea. Instead, add every row in a render: pass as it comes in (less work all the time vs more work intermittently). Also remove bad requestAnimationFrame, and prevent calls to...

...updateRangeState from triggering additional calls to updateRangeState by removing `componentDidUpdate => updateRangeState `

Turning off hover (pointer-events:none) is now standard in ScrollRegion

Loading text in the scroll tooltip, instead of random date shown

Handle query parse errors by catching error and throwing a better more explanatory error

Replace "quick action" retina images with background images to make React render easier

Replace hasTagId with a faster implementation which doesn't call functions and doesn't build a temporary array

Print query durations when printing to console instead of only in metadata

Remove headers from support from ListTabular, we'll never use it

Making columns part of state was a good idea but changing the array causes the entire ListTabular to re-render.  To avoid this, be smarter about updating columns. This logic could potentially go in `componentDidReceiveProps` too.

Fix specs and add 6 more for new database store functionality

Test Plan: Run 6 new specs. More in the works?

Reviewers: evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D1651
2015-06-17 20:12:48 -07:00
..
browser feat(onboarding): refactor onboarding flow 2015-06-17 15:58:58 -07:00
components perf(thread-list): Tailored SQLite indexes, ListTabular / ScrollRegion optimizations galore 2015-06-17 20:12:48 -07:00
flux perf(thread-list): Tailored SQLite indexes, ListTabular / ScrollRegion optimizations galore 2015-06-17 20:12:48 -07:00
tasks fix(asar): Support ASAR, and running of specs in prod builds 2015-05-21 14:41:30 -07:00
6to5.coffee fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00
atom.coffee feat(onboarding): refactor onboarding flow 2015-06-17 15:58:58 -07:00
buffered-node-process.coffee feat(logging): Developer bar, verbose logging to logstash, Electron 0.26.0 2015-05-19 17:02:46 -07:00
buffered-process.coffee feat(logging): Developer bar, verbose logging to logstash, Electron 0.26.0 2015-05-19 17:02:46 -07:00
clipboard.coffee feat(docs): doc site generation, doc organization into sections, docs for actions and more 2015-05-13 11:44:28 -07:00
coffee-cache.coffee fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00
color.coffee refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
command-installer.coffee refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
command-registry.coffee fix(commands): Broken event dispatch after 0.27.2 push 2015-06-01 18:31:42 -07:00
component-registry.coffee feat(*): draft icon, misc fixes, and WorkspaceStore / custom toolbar in secondary windows 2015-06-03 16:02:19 -07:00
config-schema.coffee add(specs): +101 specs and 403 assertions from Atom 2015-06-02 19:51:00 -07:00
config-utils.js refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
config.coffee add(specs): +101 specs and 403 assertions from Atom 2015-06-02 19:51:00 -07:00
convenience methods to insert plaintext into draft fix(naming): Move atom/inbox/nilas refs to Nylas 2015-05-15 11:07:28 -07:00
deserializer-manager.coffee feat(docs): doc site generation, doc organization into sections, docs for actions and more 2015-05-13 11:44:28 -07:00
error-reporter.js perf(thread-list): Tailored SQLite indexes, ListTabular / ScrollRegion optimizations galore 2015-06-17 20:12:48 -07:00
item-registry.coffee fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00
keymap-extensions.coffee feature(package-management): Package management interface, APM integration 2015-06-02 19:04:21 -07:00
less-compile-cache.coffee fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00
menu-helpers.coffee refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
menu-manager.coffee refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
module-cache.coffee refactor(code): replace all instances of atom-shell and AtomShell and atomShell 2015-05-20 10:20:10 -07:00
package-manager.coffee fix(specs): silence noisy specs and fix warnings 2015-06-15 18:29:59 -07:00
package.coffee feat(*): draft icon, misc fixes, and WorkspaceStore / custom toolbar in secondary windows 2015-06-03 16:02:19 -07:00
priority-ui-coordinator.coffee refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
scope-descriptor.coffee feat(docs): doc site generation, doc organization into sections, docs for actions and more 2015-05-13 11:44:28 -07:00
scoped-properties.coffee fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00
sheet-container.cjsx feat(composer): new composer and button styles 2015-06-17 16:03:50 -07:00
sheet-toolbar.cjsx feat(composer): new composer and button styles 2015-06-17 16:03:50 -07:00
sheet.cjsx refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
space-pen-extensions.coffee feat(logging): Developer bar, verbose logging to logstash, Electron 0.26.0 2015-05-19 17:02:46 -07:00
space-pen-utils.js refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
style-manager.coffee feat(docs): doc site generation, doc organization into sections, docs for actions and more 2015-05-13 11:44:28 -07:00
styles-element.coffee fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00
subscriber-mixin.coffee fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00
task-bootstrap.coffee feat(logging): Developer bar, verbose logging to logstash, Electron 0.26.0 2015-05-19 17:02:46 -07:00
task.coffee feat(logging): Developer bar, verbose logging to logstash, Electron 0.26.0 2015-05-19 17:02:46 -07:00
theme-manager.coffee feat(theming): Definitely not hacker mode. I don't know what you're talking about. 2015-06-05 11:40:44 -07:00
theme-package.coffee fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00
window-bootstrap.coffee feat(salesforce): associate threads with SF objects 2015-04-30 11:35:38 -07:00
window-event-handler.coffee fix(iframes): Contextual menus for email contents 2015-06-05 16:47:30 -07:00
window-secondary-bootstrap.coffee feat(salesforce): associate threads with SF objects 2015-04-30 11:35:38 -07:00
window.coffee fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00