Mailspring/internal_packages/message-list/lib
Juan Tejada b8ed562d19 🎨(attachments): DRY and cleanup attachment components code
Summary:
The attachment components were the only React Components which used
inheritance between components, which is an anti-pattern in react. I
deleted these components in favor of new purely functional/dumb
components exposed via the component-kit: Attachment Item and
ImageAttachmentItem. These are defined in the same file to reuse some
smaller components between them, like the progress-bar, etc.

The attachments pacakage still remains, and only registers a single component to
a new are called MessageAttachments. This InjectedComponent role is
shared by the Composer and MessageItem, and is the only reason this
exists as an injected component in a separate package.
MessageAttachments renders all image and non image attachments for a
message or draft, and binds the appropriate actions for removal, downloading, etc.

The composer still used FileUpload and ImageUpload components for rendering
uploads in the Composer (i.e. when you add an attachment (these are
different from files because they aren't saved until the draft is
sent)). These 2 components were pretty much copied and pasted from the
ones in the attachments package, with subtle differences-- I got rid of
these as well in favor of the new AttachmentItem and ImageAttachmentItem

Also convert more coffee to ES6!

Test Plan: Unit tests

Reviewers: bengotow, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D3381
2016-10-31 17:26:20 -07:00
..
autolinker.es6 fix(lint): Various linter fixes 2016-05-06 16:23:48 -07:00
autoscale-images.es6 fix(files): When download mode is “manual” prompt about inline attachments 2016-10-03 11:22:44 -07:00
email-frame-styles-store.coffee fix(dark-mode): Adjust email CSS immediately upon switching themes 2015-11-23 20:20:06 -08:00
email-frame.jsx fix(files): When download mode is “manual” prompt about inline attachments 2016-10-03 11:22:44 -07:00
find-in-thread.jsx fix(lint): final linter fixes 2016-05-06 16:32:34 -07:00
inline-download-prompts.es6 fix(files): When download mode is “manual” prompt about inline attachments 2016-10-03 11:22:44 -07:00
main.cjsx fix(thread-popout): Display the hidden message toggle in the thread-popout 2016-10-25 11:05:34 -07:00
message-controls.cjsx bump(electron): Fix remaining deprecated requires, move to 1.0.1 2016-05-12 13:59:23 -07:00
message-item-body.cjsx fix(files): When download mode is “manual” prompt about inline attachments 2016-10-03 11:22:44 -07:00
message-item-container.cjsx fix(sending): Minor changes to cleanup phase of sending 2016-06-10 12:35:56 -07:00
message-item.cjsx 🎨(attachments): DRY and cleanup attachment components code 2016-10-31 17:26:20 -07:00
message-list-hidden-messages-toggle.jsx fix(hidden-messages): Address diff feedback from @jstejada 2016-03-02 10:28:32 -08:00
message-list.cjsx feat(reminders): Add send reminders functionality 2016-10-27 08:49:29 -07:00
message-participants.cjsx fix(participants): When copying, include space #2871 2016-09-30 10:48:34 -07:00
message-timestamp.jsx lint(*): Bump to ESLint 3.8 2016-10-17 18:07:35 -07:00
sidebar-participant-picker.jsx fix(warning): Don't render participant picker with null value 2016-10-25 14:08:13 -07:00
sidebar-plugin-container.cjsx feat(sidebar): Add thread list of currently selected participants 2016-03-09 14:33:31 -05:00
thread-archive-button.cjsx fix(gmail-labels): Constraint so threads always belong to all,spam or trash 2016-03-10 14:13:31 -08:00
thread-star-button.cjsx feat(tooltip): use native tooltip style 2015-10-21 11:27:57 -07:00
thread-toggle-unread-button.cjsx Harmonize require and remove unused ones. 2015-12-17 00:02:37 +01:00
thread-trash-button.cjsx feat(unread/spam): New items in the sidebar for unread and spam 2016-04-19 11:32:33 -07:00