Commit graph

447 commits

Author SHA1 Message Date
Elias Nahum
1114c3f8dd MM-9920 Fix Invalid or missing team_id parameter in request URL (#1530)
* MM-9920 Fix Invalid or missing team_id parameter in request URL

* Feedback review
2018-03-22 08:59:54 +08:00
Elias Nahum
cc64cc5dc6 Handle permalink Android back button and use the same permalink window to avoid nesting (#1508) 2018-03-16 10:15:06 -04:00
Elias Nahum
bdb247a90e Fix team_icon to reference the pure component (#1507)
* Fix team_icon to reference the pure component

* Fix team icon in Android extension

* Fix team icon in select team screen

* Fix team switch divider in channel drawer
2018-03-16 10:14:02 -04:00
Michał Odziemczyk
d827192d72 Optimize formatted_time.js (#1503)
* Optimize formatted_time.js

* trailing commas

* export default class
2018-03-14 15:58:24 -04:00
Michał Odziemczyk
3a3be22af0 Remove svg usage for user status (#1486)
* Remove SVG usage for status indicators to speedup channel loading

* Add needed assets for status icons (72x72)

* correct folder name

* Delete offline.png

* Delete dnd.png

* Delete online.png

* Delete away.png

* make icons white

* correct size
2018-03-14 10:31:58 -04:00
Gajanan Patil
f1ea485ba0 [MM-9526] Preview text files (#1485)
* Add text preview screen

* Add text/plain mime in supported docs format

* Add previewTextFile method to view text file in TextPreview Screen

* Fix delay for ui to update progress

* Add styling for text preview screen

* Align line numbers on right

* Start read file for preview before delay
2018-03-14 10:31:06 -04:00
Elias Nahum
6c0242cf19 Add reply to post handler below the profile image (#1493)
* Add reply to post handler below the profile image

* Hide tooltip when post is tapped and tooltip is shown
2018-03-13 09:30:21 -04:00
Harrison Healey
84db6d0974 Reverted changes to normalize font size (#1489) 2018-03-07 16:35:44 +00:00
Harrison Healey
6293d3d5e4
Add null check to iOS tooltip (#1484) 2018-03-07 14:52:31 +00:00
enahum
d0d9103857 [MM-9374] Open Permalinks in app (#1449)
* [MM-9374] Open Permalinks in app

* Feedback review

* Upgrade mattermost-redux

* Fix eslint

* Navigation fixes

* Fixing style of merged lines
2018-03-07 14:48:31 +00:00
Michał Odziemczyk
9d192a3d8a Wait for animation frame before initial rendering of post list (#1477)
* Wait for animation frame before initial rendering of post list

Improves startup experience.
(you can see yourself how big a difference is between booting to an empty channel and to a 'busy' channel, and since rendering post list is a heavy task, this change makes the initial UI appear sooner. In my testing it is about 0.7 seconds)

* eslint

* actually render empty screen when loading posts

* delay channel drawer actions after drawer is fully closed

* lazy render FlatList

* eslint

* eslint
2018-03-07 14:20:25 +00:00
Stan Chan
1a89982087 Fix scroll to new message (#1475) 2018-03-06 20:41:56 +00:00
Christian Hoff
98fee5e473 PLT-7567: Integration of Team Icons (#1470)
* PLT-7567: Integration of team icons in
channel drawer teams, switch team button, team selection, os share extenions

* PLT-7567: adopt updated eslint changes

* PLT-7567: Component for team icon display, refactoring

* PLT-7567: removed redundant styles

* PLT-7567: redux connected component for team icon, error handling
2018-03-06 20:39:24 +00:00
enahum
31d48fa49c [MM-9690] Fix Open teams that you've never been a member of aren't able to be joined (#1465) 2018-03-05 15:13:23 +00:00
enahum
b465312cee Fix edit channel (#1479) 2018-03-05 15:12:28 +00:00
Harrison Healey
80c09b588d MM-9647 Replaced usage of preventDoubleTap with wrapWithPreventDoubleTap (#1471)
* MM-9467 Replaced usage of preventDoubleTap with wrapWithPreventDoubleTap

* MM-9467 Renamed wrapWithPreventDoubleTap to preventDoubleTap
2018-03-02 11:22:37 +00:00
Jesse Hallam
58b72302d6 update eslint's comma-dangle rule to always-multiline (#1457)
* update eslint's `comma-dangle` rule to `always-multiline`

* add check and fix scripts to package.json

* Invoke `yarn fix` to adopt the updated eslint rules. No other changes are included.
2018-02-23 09:06:02 -05:00
enahum
4959af54ed MM-9637 Fix text not visible when typing on Android search box (#1450) 2018-02-20 18:37:00 -05:00
Carlos Tadeu Panato Junior
695fe62fff [MM-9321] Add a "+" button to make it easy to add Emoji Reactions (#1455) 2018-02-20 10:59:39 -03:00
Harrison Healey
ede4d22f75 ICU-624 Added markdown tables (#1434)
* ICU-624 Added initial table rendering support

* ICU-624 Added full table view

* Added proper pluralization to +X more lines in code blocks

* ICU-624 Added support for images in tables

* Stopped using injectIntl for tables

* ICU-624 Updated commonmark-react-renderer

* ICU-624 Hid scroll indicator in collapsed table view

* Addressed feedback
2018-02-16 19:31:14 -03:00
Joram Wilander
84a2a0fab8
ABC-123 Add handling for loading custom emojis asynchronously (#1406)
* Add async handling of custom emoji to posts and channel info

* Add server request to emoji autocomplete

* Add custom emoji paging and server search to emoji picker

* Fix android

* Update mattermost-redux and revert temp change

* Backwards compatibility fixes

* Updates per feedback

* Set server version when user is not logged in

* Reset section index when search is cleared or cancelled

* Some small fixes and upgrade mattermost-redux

* Minor sorting changes
2018-02-15 17:38:45 -05:00
enahum
d156c9f320 Fixing tooltip (#1443)
* Fixing tooltip

* Add hide menu
2018-02-15 17:38:10 -05:00
enahum
27c764d288 [ICU-579] Display Announcement banner (#1428)
* Announcement banner

* Feedback review
2018-02-13 10:23:11 -05:00
Stephen Kiers
42af38944e
ICU-639- Fixes bug with Samsung keyboard (#1427)
* Internalized value to local state so that there is less ‘delay’ and less surface area for bugs to happen

* removed toLowercase on comparison and fixed parent components instead

* Update more_channels.js
2018-02-12 14:02:40 -03:00
enahum
418c1ce9ba Update tooltip library (#1426)
* Update tooltip library

* Feedback review

* remove static field
2018-02-12 09:03:05 -05:00
enahum
bd3a5e1288 Handle the good, warning, danger status for post attachments (#1425) 2018-02-12 20:02:54 +08:00
enahum
39181bd7b9 Adjust margin and tap area of reply icon (#1422) 2018-02-09 11:21:00 -05:00
enahum
d0f96c0887
[ICU-650] Upgrade React Native to 0.52.2 (#1421)
* Upgrade to React Native 0.52.2

* Bump app version to 1.7.0

* Update fastlane

* Upgrade mattermost redux

* feedback review
2018-02-07 18:24:01 -03:00
enahum
439131578a
Fix emoji sizes (#1423)
* Fix emoji sizes

* Blacklist nonExistentEmoji
2018-02-07 17:55:55 -03:00
Chris Duarte
c4e7a622d2 Fix onLayoutCalled issue and improve accuracy (#1401) 2018-02-07 11:03:58 -05:00
Stephen Kiers
2444d0f57b
Icu 640 - Fixing RN Font sizes and issues with cutoff fonts (#1402)
* added arrow style functions to eslint

* added padding to text boxes to decrease chance of cutoff

* Removed fontSize prop from Emoji

* base sizes on stylesheet

* normalized font sizes across devices

* minor tweaks

* tweaks

* text to default

* text size relative too

* remove Margintop hack

* Final tweaks

* fixed func name

* fixed scale to always be based on portait mode

* re-added margintop hack

* set Text paddingBottom in markdown file

* Fix style names and setup

* fixed import

* reversed size of edit label

* fix eslint
2018-02-05 13:33:39 -07:00
Harrison Healey
05587d789a ICU-633 Added tilde to channel shortlink to match web app (#1391) 2018-01-31 13:47:13 -03:00
Saturnino Abril
bda1ba153e
[ICU-629] Add support for DM with deactivated channel (teammate) (#1385)
* Add support for DM with deactivated channel (teammate)

* add archive_icon

* add extra protection to prevent error when teammate is evetually deactivated
2018-02-01 00:04:31 +08:00
enahum
cd80cdfdf4 Fix race condition preventing the app opened from a PN to go to the correct channel (#1398)
* Fix race condition preventing the app opened from a PN to go to the correct channel

* Feedback review
2018-01-31 11:02:02 -05:00
Harrison Healey
62f7358807 Removed fontSize prop from Emoji (#1399) 2018-01-30 19:08:41 -03:00
Harrison Healey
bc42db3e87 RN-616 Added a fallback to prevent posts from being stuck as pending forever (#1381) 2018-01-26 14:09:08 -03:00
enahum
e43c7d8cbf
Fix mention badge (#1382) 2018-01-26 14:08:49 -03:00
Harrison Healey
a6d9632cad
ICU-562 Explicitly store whether or not 'load more posts' should be visible (#1379) 2018-01-26 11:29:28 -05:00
Chris Duarte
cbf3739657 Improve scrolling to new messages (#1345)
* Improve scrolling to new messages

* Experimental scrollTo with measurement

* Add search support

* Review feedback

* Added comment for moreNewMessages index`
2018-01-24 18:39:16 -03:00
Chris Duarte
311b1b42f1 Fix post text overlap (#1371) 2018-01-23 13:21:01 -03:00
enahum
d8cdc1cfbe
Give priority to fromWebHook on top of isSystemMessage in the post header (#1369) 2018-01-23 13:20:28 -03:00
enahum
7bd55e96dc
[ICU-536] Fix link previews preference (#1364)
* Fix link previews preference

* Fixed grammar in a comment
2018-01-22 13:37:15 -03:00
Stephen Kiers
9029794afa Icu 599 - remove download animation on cancel (#1365)
* easier to read

* seperated promise from progress so cancelling works

* Remove loading bar immediately

* style fix
2018-01-22 11:04:43 -03:00
enahum
998a5bdb0d
Fix server url (#1361)
* Fix server url

* Fix offline indicator positioning

* Upgrade mattermost-redux with fix for loading custom emojis

* feedback review
2018-01-18 11:17:03 -03:00
Saturnino Abril
542f0998b1 ICU-584 Add support for own DM (#1357)
* add support for own DM

* update per comment
2018-01-17 14:52:28 -03:00
Harrison Healey
d3a1c447ad ICU-596 Added support for relative image URLs (#1353) 2018-01-15 18:22:05 -03:00
enahum
70c4e3e005
iOS Share Extension (#1308)
* objective-C share extension

* MattermostBucket module to share data between the main app and the extension

* middleware that shares the data between the main app and the extension

* Fix setState when safe area in unmounted

* Share extension for iOS

* Fastlane changes to include iOS share extension

* Fix unit test

* Feedback review

* define proptypes for icons
2018-01-15 16:11:42 -03:00
enahum
cf9341406a
Wrap interactive buttons when needed (#1339) 2018-01-08 14:19:59 -03:00
Harrison Healey
9bc9ca6245 Don't try to open empty Markdown links (#1332) 2018-01-08 14:19:39 -03:00
enahum
7cda6be8d7
Edit profile (#1322)
* Add set status feature

Small code refactoring

Add Do Not Disturb option

* Add Account Settings screen

Add username, nicname, and position fields

Add email field

get deviceHeight from redux

Clean up onPress handler in Settings

Refactor each account settings item to it's own component

Clean up email field and updateUser action method

Use mobile localization format in en.json

Update profile image

Clean up ProfilePicture for editing

Add loading and error components in AccountSettings

Refactor updateRequest state into a function

Follow design specs

Remove unnecessary this.state.emailUpdated

Polish AccountSettings and secondary components

Refactor AttachmentButton into it's own componentg

Add Account Settings icon in General Settings

Add TODO comments

* Update user status

* Edit Profile screen refactored

* Fix edit profile item text color
2018-01-08 14:18:57 -03:00