mattermost-mobile/app/components
Chris Duarte 3b7a6df617 PLT-5530 Render placeholder icons + metadata for file attachments in posts list (#249)
* Add icons for file types

* Compress image files for file type icons

* Add constants for file types

* Add utils for file metadata

* Add actions & reducers for fetching file attachments

* Render file attachments in posts

* Add reducers for handling files requests

* Refactor getFileType in file utils

* Refactor getFileIconPath in file utils

* Refactor getFormattedFileSize in file utils

* Trim trailing whitespace in getTruncatedFilename

* Style file attachment metadata

* Remove entity store reducer for files fetch failure

* Change filesForPost to fileIdsForPost in files store

* Use a selector for getFilesForPost

* Memoize getFilesForPost selector

* Dispatch postId with getFilesForPost

* Add test for getFilesForPost

* Upload seed file in getFilesForPost test

* Display correct icon for image attachments

* Fix reducers for receiving files for post

Expect response data to be array not object

* Style attachment post

* Merge headers (defaults + opts) in Client.doFetch

* Upload file as FormData

* Use form-data lib instead of built-in polyfill

* Associate file with post in getFilesForPost test

* Improve assertions in getFilesForPost test

* Check for createPost failure in getFilesForPost test

* Use correct post id in getFilesForPost test

* Use client not action to create post in getFilesForPost test

* Fix file upload in getFilesForPost test

* Add assertion for name of uploaded file

* Update attachment post style

* Fix spelling of loadFilesForPostIfNecessary

* Remove eslint-disable no-magic-numbers from file_utils.js

* Remove unused index prop from FileAttachment

* Clarify code for merging headers in Client.getOptions

* Dynamically truncate file attachment names

* Extract component for FileAttachmentIcon

* Use white bg for FileAttachmentIcon to match webapp styles

* Match webapp styles for file attachment borders

* Move file icon path lookup to FileAttachmentIcon

* Use more logical ordering for file type lookup
2017-02-17 17:40:40 -05:00
..
autocomplete Android autocomplete fix (#272) 2017-02-17 13:02:05 -03:00
channel_list PLT-5545 Fix Unread above/below indicator size to fit on screen (#256) 2017-02-16 09:29:57 -05:00
file_attachment_list PLT-5530 Render placeholder icons + metadata for file attachments in posts list (#249) 2017-02-17 17:40:40 -05:00
layout Added KeyboardLayout to automatically use a KeyboardAvoidingView as necessary (#263) 2017-02-16 09:19:48 -05:00
logout project folder structure (#107) 2016-12-09 10:34:17 -05:00
member_list More Direct Messages scene (#244) 2017-02-14 11:49:41 -05:00
post PLT-5530 Render placeholder icons + metadata for file attachments in posts list (#249) 2017-02-17 17:40:40 -05:00
post_list PostList date separator to match webapp (#264) 2017-02-16 09:11:00 -05:00
post_textbox Android autocomplete fix (#272) 2017-02-17 13:02:05 -03:00
profile_picture Fix offline indicator (#268) 2017-02-17 10:57:36 -05:00
root Added KeyboardLayout to automatically use a KeyboardAvoidingView as necessary (#263) 2017-02-16 09:19:48 -05:00
search_bar More Direct Messages scene (#244) 2017-02-14 11:49:41 -05:00
status_icons Channel drawer (#154) 2017-01-03 19:49:28 -03:00
button.js project folder structure (#107) 2016-12-09 10:34:17 -05:00
drawer.js Reorganized navigation (#181) 2017-01-24 11:56:35 -03:00
error_text.js Mfa (#182) 2017-01-24 16:08:09 -05:00
formatted_date.js #96/#112/PLT-5370/PLT-5372 Styling posts and channel view (#213) 2017-02-02 13:53:42 -03:00
formatted_text.js Mfa (#182) 2017-01-24 16:08:09 -05:00
formatted_time.js Render posts for the current channel (#153) 2016-12-23 10:55:33 -03:00
line_divider.js Channel drawer (#154) 2017-01-03 19:49:28 -03:00
loading.js project folder structure (#107) 2016-12-09 10:34:17 -05:00
mattermost_icon.js #96/#112/PLT-5370/PLT-5372 Styling posts and channel view (#213) 2017-02-02 13:53:42 -03:00
root_navigator.js project folder structure (#107) 2016-12-09 10:34:17 -05:00
text_input_with_localized_placeholder.js Platform dependent search bar and ui fixes (#205) 2017-02-01 11:38:32 -03:00