Commit graph

80 commits

Author SHA1 Message Date
Chris Duarte
80edba14da PLT-5608 App crashes when invalid server url is selected (#285)
* PLT-5608 App crashes with wrong URL

* Review feedback

* FormattedError Modification

* Rename i18n id for server ping failure message

* Display friendly error message if server ping fails w/o response
2017-02-24 21:36:49 -03:00
Chris Duarte
4be1e9af3a PLT-5600 RN: Mention and Channel autocomplete in the thread scene (#299) 2017-02-24 21:24:21 -03:00
enahum
d33c2712ed PLT-5611 Add Channel Name to thread view title (#294) 2017-02-24 12:46:50 -03:00
Chris Duarte
440de8ba32 PLT-5610 Localize login error message to match what's displayed in webapp (#296)
* Capture server error id where handling error response in client.js

* Alias login errors for unknown acct & incorrect pw to match webapp
2017-02-24 10:19:31 -03:00
Chris Duarte
63dee10fd8 PLT-5644 Center align login header text and topbar title text (#295)
* Center align header text in global styles

* Center align topbar title text
2017-02-24 10:18:15 -03:00
Chris Duarte
b09dbbb79c PLT-5493 Add a profile scene that shows user information (#287)
* PLT-5493 React Native: Add a profile scene that shows user information

* Review feedback
2017-02-24 10:17:05 -03:00
Chris Duarte
567310b9d6 PLT-5572 Add swiping to close all scenes that open from the side (#292) 2017-02-23 20:04:59 -03:00
Chris Duarte
90ac1fa625 PLT-5601 RN: autocompleting stopped when non-word chars are typed, even if there's an exact match (#288) 2017-02-23 14:43:46 -03:00
enahum
06cf8b7851 PLT-5609 Fix different speed for text animation (#290) 2017-02-23 13:50:25 -03:00
Chris Duarte
afe09babfa PLT-5605 Fix logic for indicating start of new messages (#284)
* Fix placement of new messages separator

* Ignore your own posts when determining start of new messages

* Cache lastViewedAt in ChannelPostList until switching channels

* Increase padding around DateHeader & NewMessagesDivider

* Improve styling of new messages divider line

* Use async await for ChannelDrawerList.onSelectChannel

* Convert DateHeader to functional component
2017-02-21 23:59:27 -03:00
Chris Duarte
4f2d769766 PLT-5541 Autocomplete mentions in post textbox (#266)
* WIP channel autocomplete

* Channel mentions

* Feedback Review
2017-02-20 18:19:11 -03:00
Chris Duarte
42ef890415 Manage members fix (#267) 2017-02-20 18:06:18 -03:00
Chris Duarte
f788fb8144 Status indicator fix (#275) 2017-02-20 18:05:26 -03:00
Chris Duarte
0bf26e95b0 PLT-5499 Indicate start of new messages in posts list (#279)
* Indicate start of new messages in posts list

* Use flag prop to indicate start of new messages in posts list

* Declare style props with View.propTypes.style
2017-02-20 18:05:16 -03:00
enahum
e74ecfa5f2 PLT-5510 Show user is typing (#278)
* PLT-5510 Show user is typing

* Move autocomplete below the user typing
2017-02-20 17:39:20 -03:00
enahum
d0209aa8c3 PLT-5488 Add an Unread indicator on the button to open the channel drawer (#277)
* Unread indicator in burger button

* Set badge to always be red
2017-02-20 17:11:19 -03:00
enahum
3eb7e377cf More Channels (#276)
* More Channels

* Fix cleaning search

* feeback review
2017-02-20 16:51:02 -03:00
Harrison Healey
6c527300d7 Improved how posts are loaded when switching to a channel (#265) 2017-02-20 16:33:39 -03:00
Chris Duarte
230cbf7530 Post draft persist (#271) 2017-02-18 15:06:49 -03:00
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
Chris Duarte
8aea409ae6 Webhook post override (#273) 2017-02-17 16:07:52 -03:00
Chris Duarte
37bea54b9f Android autocomplete fix (#272) 2017-02-17 13:02:05 -03:00
Chris Duarte
75dc27dd92 Fix offline indicator (#268) 2017-02-17 10:57:36 -05:00
enahum
5a5772bcd0 PLT-5545 Fix Unread above/below indicator size to fit on screen (#256)
* Fix Unread above/below indicator size to fit on screen size

* removing unnecessary flex
2017-02-16 09:29:57 -05:00
Harrison Healey
1319f1fcf8 Added KeyboardLayout to automatically use a KeyboardAvoidingView as necessary (#263)
* Renamed layouts/root_layout to components/root

* Added KeyboardLayout to automatically use a KeyboardAvoidingView when necessary
2017-02-16 09:19:48 -05:00
enahum
185b968b76 Fix fetch offset for more dms (#255) 2017-02-16 09:16:20 -05:00
enahum
61576c9474 PostList date separator to match webapp (#264)
* PostList date separator to match webapp

* Remove preference change test
2017-02-16 09:11:00 -05:00
Harrison Healey
a02e317474 Added title to Thread scene (#262) 2017-02-16 10:27:28 -03:00
enahum
a97238f75c Removed channel_viewed websocket event (#254) 2017-02-15 14:08:41 -03:00
Chris Duarte
940363cf36 Mention autocomplete bug fixes (#253)
* Mention autocomplete bug fixes

* Review feedback
2017-02-15 09:57:30 -05:00
Harrison Healey
f5502d8b67 Fixed merge conflict causing thread drafts to not work (#252) 2017-02-14 15:09:20 -05:00
enahum
51e8ee6ea2 More Direct Messages scene (#244)
* More Direct Messages scene

* Adding search_bar.js to mock tests

* Feedback review

* Address feedback review 2
2017-02-14 11:49:41 -05:00
Chris Duarte
f0e1d38a48 Remove items from menu drawer (#247)
* Remove items from menu drawer

* Removed unused import

* Remove flagged posts prop
2017-02-14 10:01:16 -05:00
enahum
239ecbcdba Fix Android keyboard (#250) 2017-02-14 09:30:28 -05:00
Harrison Healey
249312b852 PLT-5252 Added Thread view (#239)
* Added Thread view

* Fixed added unit test

* Fixed copyright date on added file

* Moved scene-specific selector into service directory
2017-02-13 18:08:26 -03:00
Chris Duarte
c370e895bd Mention autocomplete (#242)
* Mention autocomplete

* Review feedback
2017-02-13 16:07:50 -05:00
Chris Duarte
ec9c33157a Right menu swipe (#240) 2017-02-13 11:17:10 -05:00
Chris Duarte
e0631c2663 Store post drafts (#241) 2017-02-13 10:25:11 -05:00
Chris Duarte
263fd50887 Channel info delete (#222)
* Initial setup to delete channels

* Combine leave and delete

* Working delete when removing the current channel id delete

* Initial working delete with handling web sockets

* Move go back out of component

* Refactor alert function and handle after leave navigation

* Remove promise then

* Allow channel membership to default to empty object

* Ensure that channel is present to avoid method on undefined

* Remove view channel delete action

* Remove unused type
2017-02-09 09:12:44 -08:00
Chris Duarte
8c0f5c70d7 Manage member permissions (#223)
* Manage member permissions

* Review feedback
2017-02-08 13:01:17 -08:00
Chris Duarte
088a2c7737 Navigation Drawer and Modal (#220)
Navigation header now responds to theme changes
Improve channel selection transition
Implement navigation modal
Reword options modal
2017-02-08 12:16:24 -08:00
enahum
b3b3d9a39a Squashing several bugs (#221)
* Squashing several bugs

* Fix websocket tests
2017-02-08 10:28:27 -08:00
Chris Duarte
c933da341a Channel Add Members (#218)
* Channel Add Members

Add ability to select rows
Change member list to accept datasource instead of manage it’s own
Add navbar button
Add alert for empty member selection
Add batched method to send to server

* Feedback changes
2017-02-07 17:57:52 -08:00
Harrison Healey
3e9cb1bc91 Fixed post width (#214) 2017-02-02 18:32:54 -03:00
Chris Duarte
ce58429a21 Reworking navigation (#212)
* Reworking navigation

* Fixed navigation testing and lint errors
2017-02-02 16:13:25 -05:00
Chris Duarte
89ebae1108 Channel info leave (#211)
* Setup for leaving a channel (does not include navigating once successfully leaving)

* Initial setup to navigate from leaving a channel

* Conditionally render leave channel row based on default channel

* Use setInitial from inside the action

* Refactor navigating after leave

* Ensure that channel is not DM

* Rename to shouldRender
2017-02-02 15:52:27 -05:00
Harrison Healey
c28d64c8da #96/#112/PLT-5370/PLT-5372 Styling posts and channel view (#213)
* Updated post rendering in center channel to include dates, display names, themeing, profile pictures, and threads

* Added status to ProfilePicture component

* Changed MemberListRow to use a ProfilePicture

* Removed unused prop

* Fixed incorrect copyright year on new file

* Removed unnecessary ref
2017-02-02 13:53:42 -03:00
enahum
71b2ecd394 Platform dependent search bar and ui fixes (#205)
* Platform dependent search bar and ui fixes

* Set events in default props

* Update NOTICE.txt

* Channel info favorite (#210)

* Enable toggling of favorite channel from channel_info

* Change this binding

* Handle favorite toggle with state

* feedback review

* removed unnecessary view
2017-02-01 11:38:32 -03:00
Chris Duarte
ea3b2cabd4 Channel members fix (#209)
* Channel members fix

* Review feedback
2017-02-01 09:28:01 -05:00
Chris Duarte
1bd40d1a40 Channel info favorite (#210)
* Enable toggling of favorite channel from channel_info

* Change this binding

* Handle favorite toggle with state
2017-02-01 00:02:06 -03:00