Commit graph

176 commits

Author SHA1 Message Date
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
Harrison Healey
98e742c27a Disabled no-magic-numbers rule in ESLint (#274) 2017-02-17 16:05:54 -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
Harrison Healey
1115d882ca PLT-5566 Added clientside handling to automatically show direct channels (#270)
* Added TestServerUrl config setting

* Added clientside handling to show direct channels in the sidebar when a DM is received
2017-02-17 10:53:46 -05:00
lfbrock
9ecf23ceb5 Update server version is readme (#269) 2017-02-16 14:55:28 -03:00
enahum
7ed9ca54f2 PLT-5543 Fix WebSocket keeps trying to reconnect (#261)
* PLT-5543 Fix WebSocket keeps trying to reconnect when the session has expired

* force connection when initializing the websocket
2017-02-16 09:44:14 -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
enahum
3fb12eed99 Version Bump to 9 (#246) 2017-02-13 19:13:56 -03:00
enahum
8eb402f8f5 Version Bump to 9 (#245) 2017-02-13 19:13:43 -03: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
enahum
6722c5a788 Version Bump to 8 (#216) 2017-02-07 08:51:57 -08:00
enahum
3bbd8ba244 Version Bump to 8 (#217) 2017-02-07 08:51:43 -08:00
lfbrock
10daddf15d Update ReadMe to include supported server version (#219) 2017-02-07 08:42:56 -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
enahum
a7d7c4b459 Reset cache when starting the app with make run (#207) 2017-02-01 09:32:17 -05:00
enahum
45ad4268eb Add origin to the websocket connection (#208)
* Add origin to the websocket connection

* parse the url with a regex
2017-02-01 09:28:37 -05:00
lfbrock
9ca8d5d3ac Update Readme with contribution section (#206) 2017-02-01 09:28:17 -05: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
Chris Duarte
c9e513f83b Team selection causes blank channel view fix (#203) 2017-01-31 09:08:25 -05:00
Jason Blais
a50b9bd337 Update NOTICE.txt (#188)
* Update NOTICE.txt for harmony-reflect

* Update NOTICE.txt

* Update NOTICE.txt
2017-01-30 23:14:17 -03:00
enahum
417ee73740 Android Version Bump to 7 (#200)
* Bumping android version to match ios

* Version Bump to 7
2017-01-30 19:39:08 -03:00
enahum
db1e791705 Version Bump to 7 (#195) 2017-01-30 19:38:51 -03:00