Commit graph

75 commits

Author SHA1 Message Date
Elias Nahum
9975a19b91
MM-18236 Prevent the post menu from triggering when using the back gesture (#3319)
* MM-18236 Prevent the post menu from triggering when using the back gesture in the thread screen

* Update snapshots

* Update app/components/touchable_with_feedback/touchable_with_feedback.ios.js

Co-Authored-By: Miguel Alatzar <migbot@users.noreply.github.com>

* Update app/components/touchable_with_feedback/touchable_with_feedback.ios.js

Co-Authored-By: Miguel Alatzar <migbot@users.noreply.github.com>

* Update app/components/post/post.js

Co-Authored-By: Miguel Alatzar <migbot@users.noreply.github.com>

* Update app/components/touchable_with_feedback/touchable_with_feedback.ios.js

* Fix eslint
2019-09-26 00:19:49 +03:00
Elias Nahum
114a18c16d
MM-18453 Use native emojis (#3260)
* MM-18453 Use native emojis

* Remove unnecessary else statement

* Add support for builtIn emojis

* Fix Native emojis snapshot tests

* Set emoji text style from StyleSheet

* Remove unneded version check and try/catch

* Add builtIn emojis as custom emojis in emojiPicker

* Simplify emojiPicker lists and fix jumping section headers

* Update snapshots
2019-09-25 12:27:47 +03:00
Elias Nahum
70102d2516 MM-18752 Rename constant to handle iPhone X and new iPhone 11 insets (#3296) 2019-09-23 13:08:32 -07:00
Hossein Ahmadian-Yazdi
ef8813f115 [MM-13843] Edit channel autocomplete is same as the posting message one (#3038)
* [MM-13843] Edit channle autocomplete is same as the posting message

* [MM-13843] Lint error fixes

* [MM-13843] Address nestedscrollenable warning comment

* [MM-13843] Added test case for edit_channel_info

* [MM-13843] nestedScrollEnabled on at_mention

* [MM-13843] Fix linting issue

* [MM-13843] Fixed test case

* [MM-13843] Address PR comments

* [MM-13843] Made prop not required
2019-08-15 21:22:32 -07:00
Elias Nahum
06e333dc52
MM-10193 Apply SafeAreaView to Landscape views (#3003) (#3081)
* MM-10193 for landscape Feature

Commit for MM-10193 to the landscape feature with latest pull.
This is the initial commit with SafeAreaView in place, but should not be merged into master as this is step one and not suitable for production.
Another commit will be following with adjustments to allow SafeAreaView to display correctly for users.

* MM-10193 for landscape Feature

Commit for MM-10193 to the landscape feature with latest pull.
This is the initial commit with SafeAreaView in place, but should not be merged into master as this is step one and not suitable for production.
Another commit will be following with adjustments to allow SafeAreaView to display correctly for users.

* MM-10193 Extend design elements for iPhoneX SafeAreaViews

This is the second portion of the MM-10193 changes for the landscape feature. This item was to extend the design elements for the application into the SafeAreaView so the application looks uniform on the iPhoneX.

* MM-10193 Patch for Snapshot tests and eslint

* MM-10193 Re-Patch

These chanbes mistakenly got reverted from last Patch

* MM-10193 Updates for PR

Fixed the 4 screens from the text box that were missed.
Updated the padding to run from a method.

* Revert "MM-10193 Updates for PR"

This reverts commit fe8d650ce3ca2828d8c94e4af470649aa2582ec1.

* MM-10193 Updates for PR

This reverts commit 4966d83d5401720d26ca22a55cf8f92f1657b7e2.
Applied Updated Snapshots

* MM-10193 Updated Modifier for iphone_x_spacing

Updated Modifier for iphone_x_spacing

* MM-10193 Updates for Review

Review changes for Post Textbox and a few states that were unavailable.

* MM-10193 Fix Longpress padding

Fixed longpress padding for Channel Info and Edit Post views.

* MM-10193 Update isLandscape

Updated isLandscape to pull directly from dimensions.
Updated padding for Recent Mentions and Flagged Posts.

* MM-10193 Updates for review longpost

Updated for longpost padding.
Fixed issue with notifications not padding right correctly.

* MM-10193 Update with Cleanup

Reverted Cocoapods back to 1.5.3.
Cleaned up spacing in two files.

* MM-10193 Merge Conflict Updates

Updates to resolve merge conflicts
2019-08-09 11:14:38 -04:00
Jesús Espino
ee93e4fa59
Adding guest accounts feature (#2990)
* MM-15059: Restict the permissions for guests (#2791)

* MM-15057: Adding guest badge to identify guest users (#2774)

* MM-15057: Adding guest badge to identify guest users

* Adding Guest tags in the channel title

* Adding i18n translations

* Adding DM and GM guest warnings

* Fixing check-style

* Adding and fixing tests

* Adding i18n text

* Only showing the subtitle when there is enough space

* Addressing new design changes

* Fixing eslint

* Addressing PR comments

* Moving getChannelStats to the handleSelectChannel action

* Adding the guest info in android landscape channel headers

* simplified the guest warning text generation

* Fixing i18n

* Fixing leaving channel behavior for guests (#2989)

* Fixing leaving channel behavior for guests

* Fixing tests and adding a new one

* fixing typo

* Addressing PR comments

* Addressing PR comments

* Fixing tests
2019-07-22 22:14:39 +02:00
Elias Nahum
f7f56e958b
MM-9494 & MM-13888 Tapping execute actions & interactive keyboard dismissal (#2799)
* MM-9494 & MM-13888 Tapping with the keyboard opened executes the action & iOS iteractive keyboard

* Fix tests

* feedback review

* add new line at the end of file

* feedback review and added todo list

* Track interactive dismiss keyboard and set scrollview bounds natively

* Fix snapshots

* Fastlane default to current branch when no BRANCH_TO_BUILD is set

* Set NODE_OPTIONS in ios build script

* Rebind scrollview when channel gets first set of posts

* Keep scrolling momentum on keyboard close

* Update react-native-keyboard-tracking-view

* Fix ScrollView offset with keyboard-tracking

* Fix offset while dragging the keyboard

* Allow action on channel drawer on tablets

* Fix typo

Co-Authored-By: Saturnino Abril <saturnino.abril@gmail.com>

* Fix indentation
2019-05-20 12:02:00 -04:00
Elias Nahum
f36ee37402
Upgrade to RN 0.59.6 and dependencies (#2777)
* Upgrade to RN 0.59.6 and dependencies

* Remove channel loader unused style

* Update to the latest netInfo that fixes a crash

* Do not set default timezone with moment

* Use RN 0.59.8
2019-05-13 13:33:18 -04:00
Jason Blais
d51d4e4c9c Update help text for at-here, at-channel, at-all (#2790)
* Update help text for at-here, at-channel, at-all

https://community.mattermost.com/core/pl/kqmabdzqb3df7xx5xjsaosozir

* Update at_mention.js
2019-05-13 11:13:39 -04:00
Miguel Alatzar
45e5bae8da
Avoid possible reading of length property on undefined (#2783) 2019-05-10 09:34:23 -07:00
Joram Wilander
df2ecf3409
Add native module to reset TextInput to fix bad cursors in some Android keyboards (#2753) 2019-05-01 09:27:21 -04:00
Christopher Speller
ec9e46fb62
MM-13618 Adding bot tags. (#2669)
* Adding bot tags.

* Snapshot update.

* Moving bot tag to own component.

* Snapshots.

* Adding missing bot tags, fixing bot profile, allowing tap of bot username to open profile.

* Snapshots and tests.
2019-03-26 16:59:45 -07:00
Jesús Espino
44a3a5c6c8 MM-13041: Not show direct channels without display name (#2388) 2018-11-28 10:41:25 -05:00
Jesús Espino
8097764d87 MM-12959: Fix autocomplete archived channels visibility (#2367)
* MM-12959: Fix autocomplete archived channels visibility

* Remove unneeded getDeletedPublicChannels
2018-11-23 12:25:46 -05:00
Chris Duarte
b4d7a23e54 Instantly show autocomplete channels (#2188)
* Instantly show autocomplete channels

* Don't show loading indicator for my channels

* Remove loaders from search
2018-11-19 14:55:43 -03:00
Elias Nahum
0079d7e27a
MM-12952 Avoid iOS autocorrect from overriding autocomplete values (#2335)
* Avoid iOS autocorrect from overriding autocomplete values

* Fix double ~ for channel mentions in Android
2018-11-13 19:46:31 -03:00
Elias Nahum
9a5122c19c
Slide up panel for reaction list (#2285)
* Slide up panel for reaction list

* Feedback review

* UI Feedback review

* Feedback review

* Improve slide speed and fix end position

* Scroll to top when changing reaction view

* dismiss modal without animation so backdrop does not scroll down

* Smooth animation to show/hide

* Change animation speed
2018-11-02 13:21:43 -03:00
Harrison Healey
d18cab144e
MM-12467 Made borders between autocomplete items consistent (#2289) 2018-10-29 15:22:39 -04:00
Harrison Healey
4e251d392a
MM-12189 Set autocomplete max height based off available space (#2218)
* MM-12189 Set autocomplete max height based off available space

* Have each autocomplete type determine its own max height since DateSuggestion needs more space

* Remove unused props and ref
2018-10-05 09:58:05 -04:00
Jesús Espino
9bd89930b7
MM-11567: Autocomplete search in: for DMs and GMs (#2133)
* MM-11567: Autocomplete search in: for DMs and GMs

* More robust behavior on older versions and a fix on autocompletion

* Moving get display_name for search to a selector
2018-09-27 18:38:07 +02:00
Elias Nahum
48b945d6f9
Localization support for the calendar (#2182) 2018-09-27 10:40:21 -03:00
Elias Nahum
eab1ab7c0c Add support for new iPhone models in missing places (#2180) 2018-09-27 09:16:19 -04:00
Jesús Espino
8884293b18 Add t() translation mark to i18nable strings and update translations (#2026)
* Add t() translation mark to i18nable strings and update translations

* Small fixes

* Adding  to the packager

* Rebase fixes

* Added missed texts
2018-09-21 11:25:38 -03:00
Jesús Espino
280577dbc7 MM-11725: Using the new server endpoint to autocomplete channels (#2100)
* MM-11725: Using the new server endpoint to autocomplete channels

* Fixing suggestions from the PR

* Updating mattermost-redux dependency

* Removing unnecesary Client4.getServerVersion usage
2018-09-14 15:06:11 -04:00
Elias Nahum
5d9c3d7b3d
Search Fixes (#2090)
* MM-11996 date filter

* MM-12041 do not reopen keyboard after search
2018-09-07 19:02:40 -03:00
Jesús Espino
db898694a5 MM-11725: Filter archived channels by membership on search autocomplete (#2066)
* MM-11725: Filter archived channels by membership on search autocomplete

* Fixing PR suggestions
2018-09-07 06:51:36 -03:00
Dmitry Samuylov
b1dff8aa04 enable arrows on the calendar for date search flags (#2084) 2018-09-06 15:04:07 -03:00
Elias Nahum
c13081ad34 Display trigger word in slash command autocomplete (#2078) 2018-09-05 09:35:28 -04:00
Elias Nahum
3be170f507 Add theming to calendar selector (#2052) 2018-08-30 13:41:05 -04:00
Dmitry Samuylov
1ecb209712 Feature/search after before on (#2028)
* initial partial implementation of search date flags UI (on: before: after:)

* Make the calendar show correctly

* dismiss keyboard when showing the date suggestion since this type of input will primarily be entered through the calendar and later edited if needed

* fixed code style errors

* updates as per pull request comments

* fixed eslint errors

* changes as per pull request comments, removing unnecessary code

* added handling for hiding the date filter feature if the server version doesn't support it

* fixed eslint errors

* removed unnecessary property defaults and server version checks, as per PR suggestions

* this default is needed for the initial load of the component

* changed the way we capture the flag from the search string, this handles scenarios where multiple flags might be present in the search string that are handled by the same suggestion component as is the case here with date based flags

* need property declared to pass jslint rules

* eslint style fix, moved regex out into constants

* removed unused code and references

* updated as per pull request feedback

* updated to latest redux version

* changed to new search posts api that supports passing in of time zone utc offset to support date based search flags

* updated to the upcoming release version in preparation for merging to master

* Properly memoize DateSuggestion mapStateToProps

* Remove moment-timezone
2018-08-28 18:01:11 -04:00
Elias Nahum
087096de88
Fix autocomplete 2018-07-12 20:28:25 -04:00
Jesse Hallam
8372e95d4a add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
Elias Nahum
e72bb48d98 Cold-start channel drawer improvements (#1702) 2018-05-24 11:04:24 -04:00
Elias Nahum
252ea21f8c
Fix emoji autocomplete (#1616)
* Fix emoji autocomplete

* Feedback review
2018-04-25 13:40:03 -03:00
Saturnino Abril
effc99462b fix crash on search (#1594) 2018-04-17 09:23:28 -04:00
Chris Duarte
676a180067 Fix press username to mention (#1547)
* Fix press username press to mention

* Add cursorPosition to post_textbx state

* Remove unneeded draftSelectionChanged actions and events
2018-04-13 11:15:19 -04: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
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
Chris Duarte
224099a9dc Add fuzy search to the emoji picker (#1310)
* Add fuzy search to the emoji picker

remove comments from master rebase

Add fusejs to NOTICE.txt

* Add fuzzy search support for emoji_picker
2018-01-02 17:21:50 -05:00
Martin Kraft
159507891c RN-519: Expands search results list height. (#1225)
* RN-519: Expands AtMentions and ChannelMentions searches to use entire device height.

* RN-519: Fix for ~ and @ search list heights.

* RN-519: Optimization.
2017-11-29 19:08:51 -03:00
enahum
df1c7d9fc1
fix autocomplete positioning (#1228) 2017-11-29 12:01:59 -03:00
enahum
df61ec5552 Fix autocomplete position in search screen (#1218)
* Fix autocomplete position in search screen

* Remove autocomplete for slash commands and emojis in search
2017-11-28 17:42:56 -05:00
Chris Duarte
be682240f4 Add slash command support (#1190)
* Add slash command support

* Review feedback

* Review feedback 2

* Update to latest redux

* Fix tests
2017-11-23 14:25:03 -03:00
enahum
c69bf5a950
Remove unneded ownProps (#1177) 2017-11-21 12:35:03 -03:00
Chris Duarte
e345ee1e7b Add recently used section (#1136)
* Add recently used section and section icons

* Improve section scrolling indication

* Modify Makefile and use onMomentumScrollEnd

* Make sure top section maintains highlight when scrolled to top

* Sort emojis by startsWith then includes when filtering
2017-11-21 10:20:09 -05:00
Harrison Healey
70a1a92d06 Updated borders on autocomplete to wrap entire list (#1149)
* Updated borders on autocomplete to wrap entire list

* Reverted accidental changes to search autocomplete position
2017-11-14 19:13:03 -06:00
Harrison Healey
e98e22600e RN-465 Fixed emoji autocomplete removing spaces before emoji (#1150) 2017-11-14 19:06:55 -06:00
enahum
49899b2a00
Improve performance on post textbox (#1138) 2017-11-13 18:36:24 -03:00
Harrison Healey
a9489dcc5f Replace getTheme selector with one from mattermost-redux (#1013) 2017-10-12 08:45:17 -07:00
Elias Nahum
d360836baa Fix crashes when user hasn't loaded and when postDraft was undefined 2017-10-05 17:49:14 -03:00