summaryrefslogtreecommitdiffstats
path: root/webapp/utils/utils.jsx
Commit message (Collapse)AuthorAgeFilesLines
* PLT-6689: fix user image requests (#6946)Chris2017-07-191-0/+11
| | | | | | * fix user image requests * fix eslint errors and a few more cache busters
* Merge branch 'release-4.0'Christopher Speller2017-07-181-8/+5
|\
| * PLT-7025: Fix Slack Import API. (#6905)George Goldberg2017-07-121-1/+1
| |
| * [PLT-7021] Add missing borders of emoji picker (#6897)Saturnino Abril2017-07-121-5/+2
| | | | | | | | | | | | * add missing borders of emoji picker * set input class `emoji-picker__search` border-width to zero
| * UI changes (#6876)Asaad Mahmood2017-07-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | * PLT-7011 - Long channel name truncation * PLT-7013 - Fixing channel header mobile * PLT-7012 - Updating quick switch modal on mobile * PLT-7008 - Channel preferences mobile fix * PLT-7014 - Increasing tap area for channel desc
* | Minor fixes based on lgtm.com alerts (#6819)Alex Ford2017-07-071-2/+2
|/ | | | | | | | | | * Remove a couple of superfluous trailing arguments * Simplify assignment logic in a couple of places * Modify some potentially inconsistent setState calls to use the function form * Fix eslint errors
* PLT-6905 - Updating channel header design (#6789)Asaad Mahmood2017-07-061-22/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PLT-6905 - Updating channel header design * Updating border-radius * Updating radius for wide icons * Updating trigger for overlay * Updating UI for channel header * Updating channel header sizing * Updating channel header css * Updating sidebar css * Updating status icons * Adjusting border * Updating comment * Removing type from status icon * Fixing UI issues for the channel header/sidebar * make "Add a channel description" open the channel header modal * Updating status and opacity * Updating stauts icon positioning * Updating description and heading size * Updating UI changes * Updating UI changes * add a focused class to the parent div .search__form and then remove when hover away * Fix active state for pinned posts icon * Updating UI changes * Update channel header text
* Fixing JS error (#6813)Corey Hulen2017-06-301-1/+1
| | | | | | * Fixing JS error * Fixing js error and storing issue
* remove font setting and default to Open Sans (#6643)Saturnino Abril2017-06-301-16/+0
|
* [PLT-5864] Move teammate name display setting to the System Console (#6681)Saturnino Abril2017-06-301-11/+9
| | | | | | | | | | * move teammate name display setting to the system console * update all the likes of TeammateNameDisplay names * fix gofmt error * rebase and fix conflict
* Move remaining actions over to use redux and v4 endpoints (#6720)Joram Wilander2017-06-261-7/+2
|
* PLT-4457 Added AtMention component to better render at mentions (#6563)Harrison Healey2017-06-201-14/+10
| | | | | | | | | | | | | | * Moved Utils.searchForTerm into an action * Added easier importing of index.jsx files * PLT-4457 Added AtMention component to better render at mentions * Fixed client unit tests * Fixed merge conflict * Fixed merge conflicts
* [PLT-6548] Mobile Web View: Add "Leave Team" option to main menu (#6472)Carlos Tadeu Panato Junior2017-06-191-1/+2
| | | | | | * PLT-6548 - Mobile Web View: Add "Leave Team" option to main menu * Updating leave team icon color
* PLT-6215 Major post list refactor (#6501)Joram Wilander2017-06-181-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Major post list refactor * Fix post and thread deletion * Fix preferences not selecting correctly * Fix military time displaying * Fix UP key for editing posts * Fix ESLint error * Various fixes and updates per feedback * Fix for permalink view * Revert to old scrolling method and various fixes * Add floating timestamp, new message indicator, scroll arrows * Update post loading for focus mode and add visibility limit * Fix pinning posts and a react warning * Add loading UI updates from Asaad * Fix refreshing loop * Temporarily bump post visibility limit * Update infinite scrolling * Remove infinite scrolling
* Ui improvements (#6651)Asaad Mahmood2017-06-151-2/+4
| | | | | | | | | | | | * PLT-6691 - Centering emoji in post view * PLT-6737 - FIxing on hover style for heade icons * PLT-6768 - Fixing error on profile picture * PLT-6792 - Fixing link preview image not resizing * PLT-6793 - User popover position on mobile
* Merge release-3.10 into master (#6654)Joram Wilander2017-06-151-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PLT-6787 Fixed being able to send a post before files finished uploading (#6617) * Fix quick switcher for channels/users not stored locally (#6610) * Fix button text on confirm mention modal (#6609) * fix post delete permission of channel admin (#6608) * open comment thread for the most recent reply-able message (#6605) * Use mutex flag with yarn to prevent concurrent builds interfering (#6619) * Use mutex flag with yarn to prevent concurrent builds interfering * Remove yarn mutex file with clean * Minor bug fixes (#6615) * PLT-6774 - Fixing color for offline icon * PLT-6784 - Fixing status icon * Fixing icon margin * Updating caret position * PLT-6070 Have ChannelMentionProvider stop searching after a term returns no results (#6620) * Fixing JS error (#6623) * Minor bug fixes (#6622) * PLT-6808 - Updating channel switcher on mobile * PLT-6743 - Updating scrollbar styling * Login instead of failing if user exists in OAuth sign-up flow (#6627) * PLT-6802 Disable team switcher (#6626) * Disable team switcher * Fix ESLint errors * PLT-6807 Ensured select teams page can scroll on iOS (#6630) * Do not redirect from account switch pages on 401 (#6631) * Fixing loadtest command and renaming to /test (#6624) * PLT-6820 Update mattermost-redux dependency (#6632) * translations PR 20170612 (#6629) * Bump HTTP client timeout to 30 seconds (#6633) * For team unreads return empty array instead of null (#6636) * PLT-6831 Fix status modal localization IDs (#6637) * Fix status modal localization IDs * Update test snapshot
* PLT-6481 Create platform route and logic to be able to DM a user by email or ↵David Meza2017-06-151-1/+6
| | | | | | | | | | | | | | username (#6310) * Add logic to be able to DM a user by email or username * PLT-6481 update DM url to be in the format https://servername.com/teamname/messages/xxxxxxxx * PLT-6481 Adding logic to get user by full email * PLT-6481 logic for routes /messages/user_id and /messages/id1_id2 to redirect to /messages/@username * PLT-6481 logic for GM route /messages/generated_id
* PLT-6127/PLT-6135/PLT-6137 Added EmojiPickerOverlay component to better ↵Harrison Healey2017-06-131-9/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | position emoji picker (#6352) * Cleaned up emoji picker CSS * Fixed border of emoji picker when reacting to comments in the RHS * PLT-6135 Made EmojiPicker automatically position itself above/below the [...] menu * PLT-6135 Changed post textbox emoji picker to use a RootCloseWrapper * PLT-6135 Changed comment textbox emoji picker to use a RootCloseWrapper * PLT-6135 Changed RHS post components to use EmojiPickerOverlay * Removed react-outside-event package * Fixed merge conflict * Fixed emoji picker position on posts in RHS * Removed unused CSS classes * Fixed not being able to react to posts with emoji picker
* Channel switcher UI improvements (#6564)Asaad Mahmood2017-06-061-4/+4
| | | | | | | | | | | | * Channel switcher UI improvements * Reverting mattermost theme * Fixing spacing above the button * Updating switcher button * PLT-6691 - Fixing tablet header
* PLT 6416 Add StatusDropdown to profile picture in top left (#6327) (#6418)David Rojas Camaggi2017-06-061-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | * PLT-6416 the profile picture is always shown in the top left (#6327) * PLT-6416 Add status icon to profile picture in left sidebar (#6327) * PLT-6416 Add StatusDropdown to profile picture in top left (#6327) * Fixing theme stuff for status picker * PLT-6416 Automatically close status dropdown after selection (#6327) * PLT-6416 Avoid render status dropdown in sidebar if isMobile (#6327) * PLT-6416 Change icon for status change to caret-down (#6327) * PLT-6416 Update visibility of status dropdown after window size (#6327) * PLT-6416 Refactor status dropdown for better mouse usability (#6327) * PLT-6416 Change status dropdown to the redux way (#6327) * PLT-6416 Fix header style of admin sidebar (#6327)
* PLT-6724 Hide options relating to channel admin when not licensed (#6583)Harrison Healey2017-06-051-0/+4
|
* PLT-3466 E10: Add announcement bar feature (#6509)Joram Wilander2017-06-051-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | * E10 - Add announcement bar feature * Updates per feedback * Add component tests and snapshots * Update snapshots * Updating color picker UI (#6543) * Add class to body tag when banner is not dismissable and clean up localstorage items when banner changes * Fixing links (#6544) * Updating UI for fixed error bar (#6552) * Truncating text on fixed banner (#6561) * Plt 3466 - Error bar link states (#6577) * Updating error bar hover state * Updating error bar link states
* Multiple Ui improvements (#6553)Asaad Mahmood2017-06-021-2/+2
| | | | | | | | * PLT-6729 - Fixing close button * PLT-5216 - Updating mattermost theme * PLT-6679 - Fixing styling for active state
* PLT-5699 Improvements to channel switcher (#6486)Joram Wilander2017-05-311-7/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Refactor channel switcher to not wait on server results * Change channel switcher to quick switcher and include team switching * Add sections, update ordering and add discoverability button * Fix styling error * Use CMD in text if on mac * Clean yarn cache on every install * Various UX updates per feedback * Add shortcut help text for team switcher * Couple more updates per feedback * Some minor fixes for GM and autocomplete race * Updating UI for channel switcher (#6504) * Updating channel switcher button (#6506) * Updating switcher modal on mobile (#6507) * Removed jQuery usage * Rename function to toggleQuickSwitchModal
* PLT-6651 - Overlay issue modal (#6473)Asaad Mahmood2017-05-221-4/+4
| | | | | | * PLT-6651 - Overlay issue modal * Fixing mentions badge
* PLT-6614 - Mentions badge styling and dropdown icon style (#6426)Asaad Mahmood2017-05-181-6/+6
| | | | | | * Mentions badge styling and dropdown icon style * PLT-6134 - Fixing emoji picker border in RHS
* Fixes for RC1 (#6376)Asaad Mahmood2017-05-101-2/+2
| | | | | | | | | | | | | | * PLT-6505 - Fixing z-index for post control menu * PLT-6507 - Channel header icons not aligned * PLT-6508 - Options popover issue on android * PLT-6528 - Removing cross contamination on badge * PLT-6535 - Aligning content in SSO buttons * PLT-6509 - Aligning dropdown close icon
* PLT-6297 - Pinned label overlapping on heading (#6324)Asaad Mahmood2017-05-041-4/+4
| | | | | | * PLT-6297 - Pinned label overlapping on heading * PLT-6500 - Fixing mention badge styling
* Revert "[GH-5915] Clicking on @mention of a user in a post shows the profile ↵Harrison Healey2017-05-011-10/+6
| | | | | popover (#6129)" (#6289) This reverts commit 83f819451a80a767170b927eb2f0d5ed63f03239.
* [GH-5915] Clicking on @mention of a user in a post shows the profile popover ↵Saturnino Abril2017-05-011-6/+10
| | | | | | | | | | | | | | | | (#6129) * post message at-mention profile pop-over * remove hover effect to special mentions * make non-clickable the non-existing at-mention username * fix "video call" position * use usernameMap instead of initially defined liteUsernameMap * update per comments
* Ui improvements (#6198)Asaad Mahmood2017-04-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | * PLT-6306 - Post alignment in compact view * PLT-6266 - Adjusting spacing for files (compact) * PLT-6302 - Margins not equal for paragraphs in post * PLT-6332 - FIxing inline images * PLT-6134 - Fixing border on emoji picker * PLT-6323 - Fixing UI for system console user list * PLT-6375 - Updating emoji picker * PLT-6327 - Updating more channel/user list * PLT-6241 - Adding IE detection * PLT-6332- Fixing inline markdown images
* PLT-5897: Respect intrinsic ratio of img in emoji picker (#5987)VeraLyu2017-04-251-1/+1
| | | Changed style of img emoji picker, also fixed preview of emoji.
* Update error message when password is too long (#6001)Ryan Wang2017-04-161-3/+4
|
* svg preview (#6045)Yusuke Nemoto2017-04-121-1/+5
|
* PLT-5860 Updated copyright date (#6058)Harrison Healey2017-04-121-1/+1
| | | | | | | | | | | | * PLT-5860 Updated copyright date in about modal * PLT-5860 Updated copyright notice in JSX files * PLT-5860 Updated copyright notice in go files * Fixed misc copyright dates * Fixed component snapshots
* Ui improvements (#5948)Asaad Mahmood2017-04-031-0/+4
| | | | | | | | | | * PLT-5849 - Code block wrap on IOS * PLT-5972 - Comment has first line indented * PLT-6048 - Adjusting UI for link previews * PLT-5733 - Adding error text theme option
* Add reaction picker (#5904)bonespiked2017-04-011-0/+5
|
* PLT-2713/PLT-6028 Added System Users list to System Console (#5882)Harrison Healey2017-03-301-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PLT-2713 Added ability for admins to list users not in any team * Updated style of unit test * Split SearchableUserList to give better control over its properties * Added users without any teams to the user store * Added ManageUsers page * Renamed ManageUsers to SystemUsers * Added ability to search by user id in SystemUsers page * Added SystemUsersDropdown * Removed unnecessary injectIntl * Created TeamUtils * Reduced scope of system console heading CSS * Added team filter to TeamAnalytics page * Updated admin console sidebar * Removed unnecessary TODO * Removed unused reference to deleted modal * Fixed system console sidebar not scrolling on first load * Fixed TeamAnalytics page not rendering on first load * Fixed chart.js throwing an error when switching between teams * Changed TeamAnalytics header to show the team's display name * Fixed appearance of TeamAnalytics and SystemUsers on small screen widths * Fixed placement of 'No users found' message * Fixed teams not appearing in SystemUsers on first load * Updated user count text for SystemUsers * Changed search by id fallback to trigger less often * Fixed SystemUsers list items not updating when searching * Fixed localization strings for SystemUsers page
* Ui ifxes (#5890)Asaad Mahmood2017-03-291-4/+4
| | | | | | | | | | | | * PLT-5975 - Back arrow in flag list cutting off * PLT-6049 - Fixing pin icon color, and hover state * PLT-5989 - Channel member and pin icon issue * PLT-6067 - Pinned icon misaligned in firefox * PLT-5885 - Adjusting icon spacing in modal
* Fixing cancel ids for selenium (#5896)Corey Hulen2017-03-271-2/+10
| | | | | | | | * Fixing ids for selenium * Fixing ids * Fixing prop
* Fixing ids for selenium (#5874)Corey Hulen2017-03-241-1/+1
|
* Ticket 4665 - Emoji Picker (#5157)bonespiked2017-03-241-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * #4665 Added EmojiPicker Work primarily by @broernr-de and @harrison on pre-release.mattermost.com * Final fixes to handle custom emojis from internal review and single merge error * ESLint fixes * CSS changes and other code to support emoji picker in reply window * Fix for file upload and emoji picker icon positions on post and comment. RHS emoji picker appearing see-through at this time. * Fix for two ESLint issues. * covered most of feedback: RHS emoji picker looks correct color-wise RHS emoji picker dynamically positions against height of thread size (post + reply messages) escape closes emoji window search box focused on open ESLint fixes against other files oversized emoji preview fixes * Adding in 'outside click' eventing to dismiss the emoji window * Changing some formatting to fix mismatch between my local eslant rules and jenkins. * adding alternative import method due to downstream testing errors * yet another attempt to retain functionality and pass tests - skipping import of browser store * fix for feedback items 5 and 7: * move search to float on top with stylistic changes * whitespace in the header (+1 squashed commit) Squashed commits: [6a26d32] changes that address items 1, 2, 6, 8, and 9 of latest feedback * Fix for attachment preview location on mobile * Fix for latest rounds of feedback * fixing eslint issue * making emojipicker sprite based, fixing alignments * Fix for emoji quality, fixing some behavior (hover background and cursor settings) undoing config changes * Preview feature for emojis * Adjustments to config file, and changing layout/design of attachment and emoji icon. * manual revert from master branch for config.json * reverting paperclip and fixing alignments. Additionally fixing inadvertent display of picker on mobile. * CSS changes to try to fix the hover behavior - currently working for emoji picker (when enabled), but hover for attachment isn't working * Made suggested changes by jwilander except for jQuery removal * Adding hover for both icons * removal of some usages of jQuery * Fix for two layout issues on IE11/Edge * UI improvements for emoji picker * Fix for many minor display issues * fix for additional appearance items * fix to two minor UI items * A little extra padding for IE11 * fix for IE11 scroll issue, and removing align attribute on img tag which was throwing js error * fixes some display issues on firefox * fix for uneven sides of emojis * fix for eslint issues that I didn't introduce * fix for missing bottom edge of RHS emojipicker. also fixing text overlapping icons on text area (including RHS) * Update "emoji selector" to "emoji picker" * changes for code review - removal of ..getDOMNode - use sprite imagery for emoji preview - remove lastBlurAt from state as it wasn't used * fixes for: - fake custom emoji preview in picker - RHS scrollbar on preview * fix for minor alignment of preview emoji
* Fixing issue with ids for selenium (#5859)Corey Hulen2017-03-231-0/+8
| | | | | | * Fixing issue with ids for selenium * removing comment
* Merge branch 'release-3.7' into master.George Goldberg2017-03-171-7/+7
|\
| * Ui improvements and bug fixes (#5677)Asaad Mahmood2017-03-081-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PLT-5565 - Fixing theme colors not updating * PLT-4721 - Removing status ind for system messages * PLT-5735 - Fixing ellipsis in firefox * PLT-5010 - Removing extra space in channel modal * PLT-5584 - Inline image overrning edit textarea * PLT-5475 - Fixing tutorials on mobile * PLT-5142 - Disabling poitner events for status * PLT-5728 - Fixing emoji highlight on hover
* | Update eslint (#5752)Christopher Speller2017-03-131-5/+5
| | | | | | | | | | | | * Updating eslint * Updating eslint-plugin-react
* | Add pinned posts (#4217)Gabin Aureche2017-03-131-2/+3
| |
* | Fix keyboard shortcuts not to trigger on AltGr key (#5566)Lauris BH2017-03-071-1/+1
|/ | | On Windows when pressing AltGr it will trigger event with same properties as left Ctrl key. Check explicitly that altKey is false otherwise on some keyboard layouts input of special characters is blocked.
* Fix desktop notification click handler for existing/new GMs (#5633)Joram Wilander2017-03-041-1/+1
|
* PLT-3077 Add group messaging (#5489)Joram Wilander2017-03-021-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement server changes for group messaging * Majority of client-side implementation * Some server updates * Added new React multiselect component * Fix style issues * Add custom renderer for options * Fix model test * Update ENTER functionality for multiselect control * Remove buttons from multiselect UI control * Updating group messaging UI (#5524) * Move filter controls up a component level * Scroll with arrow keys * Updating mobile layout for multiselect (#5534) * Fix race condition when backspacing quickly * Hidden or new GMs show up for regular messages * Add overriding of number remaining text * Add UI filtering for team if config setting set * Add icon to channel switcher and class prop to status icon * Minor updates per feedback * Improving group messaging UI (#5563) * UX changes per feedback * Update email for group messages * UI fixes for group messaging (#5587) * Fix missing localization string * Add maximum users message when adding members to GM * Fix input clearing on Android * Updating group messaging UI (#5603) * Updating UI for group messaging (#5604)