summaryrefslogtreecommitdiffstats
path: root/webapp/components/navbar.jsx
Commit message (Collapse)AuthorAgeFilesLines
* PLT-7206: Remove the "Delete Channel" option for private channels if you're ↵Jonathan2017-08-301-2/+1
| | | | | | | | the last channel member and policy setting restricts channel deletion (#7314) * Removed restriction that prevented last occupant of a channel from leaving. Any user can now leave any channel, except for the default Town Square channel * Also removed last user leave limitation from navbar
* PLT-7206: Remove the "Delete Channel" option for private channels if you're ↵Jonathan2017-08-091-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | the last channel member and policy setting restricts channel deletion (#7050) * PLT-7206: UI changes. Removed last user in channel loophole, refactored code to clean it up, added differentiated support for public and private channels, added unit tests. Still need to implement server-side checks * PLT-7206: All helper methods in channel_utils.jsx now accept the same three boolean variables in the same order and use the same boolean logic to check their values. * PLT-7206: Added unit tests for showManagementOptions(...) * PLT-7206: Fixed test case descriptions * Added unit tests for showCreateOption(...) * PLT-7206: Added unit tests for canManageMembers(...) * PLT-7206: Removed last person in channel loophole from server-side code * PLT-7206: Reverted config.json * PLT-7206: Fixed double negatives in unit test names * PLT-7206: PR feedback - Removed confusing comment and unused variable
* PLT-6484 Add /leave command to leave a channel (#6402)David Meza2017-08-031-60/+2
| | | | | | | | | | | | | | | | | | * PLT-6484 Add /leave command to leave a channel * Text changes requeted on review. * PLT-6484 Display the right error message when trying to /leave town-square * PLT-6484 Be able to execute /leave command in direct and group message channels with the same effect as clicking x * PLT-6484 Refactor to create new leave_private_channel_modal.jsx * PLT-6484 Remove previous leave private channel logic to use new leave_private_channel_modal.jsx * Remove dot in command description. Change localized error when leaving Town square. * disable /leave command in reply threads on the right-hand sidebar, since it is not obvious which channel you should leave
* [PLT-6710] /rename [text] slash command: Rename the channel (#6570)Carlos Tadeu Panato Junior2017-07-311-3/+3
| | | | | | * /rename [text] slash command: Rename the channel * update strings per review
* [PLT-6708] /purpose [text] slash command: Edit the channel purpose (#6569)Carlos Tadeu Panato Junior2017-07-211-2/+18
| | | | | | | | | | | | | | | | * /purpose [text] slash command: Edit the channel purpose * update command on server side to check for direct or group channels * update stings and block the dialog when is DM or GM * update per review * remove duplicate websocker event and apply the same for /header command * update per review * update
* UI changes (#6876)Asaad Mahmood2017-07-081-1/+1
| | | | | | | | | | | | * 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
* PLT-6905 - Updating channel header design (#6789)Asaad Mahmood2017-07-061-7/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* [PLT-6838] Restrict channel delete option per permission policy even for ↵Saturnino Abril2017-07-051-17/+15
| | | | | | | | | | last channel member (#6706) * channel delete option is hidden from the menu unless there is appropriate permissions as set in the policy page * apply to public channel only and add restriction to API layer * updated channel deletion
* [PLT-6707] /header [text] slash command: Edit the channel header (#6566)Carlos Tadeu Panato Junior2017-06-291-0/+9
| | | | | | | | * add /header slash command * update websocket * updater per review
* Merge release-3.10 into master (#6654)Joram Wilander2017-06-151-10/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-4257 Add pop-up asking if user wants to reset status (#6526)Joram Wilander2017-06-061-1/+1
| | | | | | | | | | | | * Add pop-up asking if user wants to reset status * Update test snapshot * Update prop name for old uses of confirm modal * Updating checkbox (#6586) * Updating style for checkbox (#6596)
* [PLT-6697] Added CTRL/CMD+SHIFT+K shortcut to open 'more direct messages' ↵Saturnino Abril2017-06-051-1/+1
| | | | | | | | | | dialog (#6534) * add keypress shortcut to open 'more direct messages' dialog * removed duplicate e.preventDefault() * add text description to /shortcuts output
* PLT-5699 Improvements to channel switcher (#6486)Joram Wilander2017-05-311-17/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Merge 3.9 RC5 fixes into master (#6459)Joram Wilander2017-05-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * UI fixes for 3.9 (#6400) * UI fixes for header icon alignment * PLT-6569 - Fixing pin icon in header * PLT-6505 - Updating z-index for emoji picker * Updating z-index for overlaying sidebar * PLT-6134 - Fix for emoji picker on comments * Reverting emoji picker fix * Fixing alignment for header icons * Removing channel title changes * Don't show mention badge for active channel (#6411) * PLT-6583 - Fixing RHS compact view (#6413)
* Updating client dependencies. Switching to yarn. (#6433)Christopher Speller2017-05-181-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | * Updating client dependancies. Switching to using yarn. * Updating React * Moving pure components to using function syntax (performance gains with newer react version) * Updating client dependancies. * Ignore .yarninstall * Enabling pre-lockfile because it's the entire point of using yarn. * Removing old webpack config * Moving to new prop-types * Fixing ESLint Errors * Updating jest snapshots. * Cleaning up package.json
* Add confirm dialog before leaving private channel (#6206)Ryan Wang2017-04-251-2/+64
|
* Start moving webapp to Redux (#6140)Joram Wilander2017-04-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Start moving webapp to Redux * Fix localforage import * Updates per feedback * Feedback udpates and a few fixes * Minor updates * Fix statuses, config not loading properly, getMe sanitizing too much * Fix preferences * Fix user autocomplete * Fix sessions and audits * Fix error handling for all redux actions * Use new directory structure for components and containers * Refresh immediately on logout instead of after timeout * Add fetch polyfill
* PLT-6296 Fixed channel admins seeing View Members in mobile view (#6182)Harrison Healey2017-04-241-8/+8
|
* Add modified view members modal to Town Square (#5695)Ryan Wang2017-04-201-1/+19
|
* 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
* PLT-5873 Renamed private groups to private channels (#5924)Harrison Healey2017-04-031-35/+5
| | | | | | * PLT-5873 Renamed private groups to private channels in web app * PLT-5873 Renamed private groups to private channels in server
* Update eslint (#5752)Christopher Speller2017-03-131-4/+4
| | | | | | * Updating eslint * Updating eslint-plugin-react
* Add pinned posts (#4217)Gabin Aureche2017-03-131-0/+30
|
* Fix JS error in mobile view when opening add member modal from view member ↵Joram Wilander2017-03-061-0/+2
| | | | modal (#5661)
* PLT-3077 Add group messaging (#5489)Joram Wilander2017-03-021-2/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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)
* Update channel notifications default properly when changing account settings ↵Joram Wilander2017-02-281-0/+2
| | | | (#5559)
* PLT-5080 (WebApp): Channel Admin permission level. (#5047)George Goldberg2017-02-231-4/+6
| | | | | | | | | | * PLT-5080 (WebApp): Channel Admin permission level. For channel management and channel deletion. * Fix some incorrect showing/hiding of options. * Remove incorrect client calls that was overwriting my channel members.
* Move instances of Client.leaveChannel() in components to an action (#5131)Carlos Tadeu Panato Junior2017-01-201-20/+2
| | | | | | * Move instances of Client.leaveChannel() in components to an action * create isFavoriteChannelId
* PLT-4990 (WebApp): Separate channel management permissions. (#4865)George Goldberg2017-01-021-26/+2
|
* Multiple UI improvements (#4835)Asaad Mahmood2016-12-191-1/+1
| | | | | | | | | | | | * Updating sizes for teams sidebar * PLT-4641 - Rearranging notification option * PLT-4504 - Updating styles for Oauth apps * PLT-4852 - Updating font size for lists * Fix for the unread indicator with teams sidebar
* PLT-4167 Team Sidebar (#4569)enahum2016-12-191-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PLT-4167 Team Sidebar * Address feedback from PM * change route from my_members to members * bug fixes * Updating styles for teams sidebar (#4681) * Added PM changes * Fix corner cases * Addressing feedback * use two different endpoints * Bug fixes * Rename model and client functions, using preferences to store last team and channel viewed * Fix mobile notification count and closing the team sidebar * unit test, fixed bad merge and retrieve from cached when available * bug fixes * use id for last channel in preferences, query optimization * Updating multi team css (#4830)
* Updating eslint (#4573)Christopher Speller2016-11-171-4/+4
|
* PLT-4602 Fix misaligned close button and fix Android icon rendering bug (#4492)Kai Faust2016-11-091-2/+8
| | | | | | | | | | | | | | | | | * PLT-4602 Fix horizontal alignment for .close__button Reduce negative left margin to fix miscalculated center-positioning. * PLT-4602 Fix dropdown close icon rendering bug on Android The combination of using a unicode character and a pseudo element was too problematic, so I added a new custom icon svg CLOSE_ICON that renders consistently on all browsers. * PLT-4602 Use font-family fix, remove <svg> You were correct @hmhealey, the problem was that the unicode characters were rendering as different fonts: Open Sans and Helvetica Neue!
* PLT-4507 Don't mount modals until opened to make resetting state automatic ↵Joram Wilander2016-11-041-22/+26
| | | | | | | | (#4358) * Don't mount modals until opened to make resetting state automatic * Move dimiss handler to be fired after modal exit animation complete
* PLT-4491 Fix navbar title for dm channels on mobile (#4394)Thomas Hopkins2016-11-011-11/+2
|
* Load channel members with channels to make sure we have latest unread counts ↵Joram Wilander2016-11-011-1/+2
| | | | (#4389)
* PLT-4132 Added View Channel Members option for non-admins on mobile (#4392)Harrison Healey2016-10-311-4/+38
|
* Updating shift UI changes (#4326)Asaad Mahmood2016-10-271-1/+13
| | | | | | | | * Updating shift UI changes * Adding border to last account settings item * Fixing modals
* GH-4095 Favorite/Starred Channels (#4222)Alexander Smaga2016-10-261-4/+54
|
* Merging performance branch into master (#4268)Joram Wilander2016-10-191-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * improve performance on sendNotifications * Fix SQL queries * Remove get direct profiles, not needed anymore * Add raw data to error details if AppError fails to decode * men * Fix decode (#4052) * Fixing json decode * Adding unit test * Initial work for client scaling (#4051) * Begin adding paging to profiles API * Added more paging functionality * Finish hooking up admin console user lists * Add API for searching users and add searching to all user lists * Add lazy loading of profiles * Revert config.json * Fix unit tests and some style issues * Add GetProfilesFromList to Go driver and fix web unit test * Update etag for GetProfiles * Updating ui for filters and pagination (#4044) * Updating UI for pagination * Adjusting margins for filter row * Adjusting margin for specific modals * Adding relative padding to system console * Adjusting responsive view * Update client user tests * Minor fixes for direct messages modal (#4056) * Remove some unneeded initial load calls (#4057) * UX updates to user lists, added smart counts and bug fixes (#4059) * Improved getExplicitMentions and unit tests (#4064) * Refactor getting posts to lazy load profiles correctly (#4062) * Comment out SetActiveChannel test (#4066) * Profiler cpu, block, and memory profiler. (#4081) * Fix TestSetActiveChannel unit test (#4071) * Fixing build failure caused by dependancies updating (#4076) * Adding profiler * Fix admin_team_member_dropdown eslint errors * Bumping session cache size (#4077) * Bumping session cache size * Bumping status cache * Refactor how the client handles channel members to be large team friendly (#4106) * Refactor how the client handles channel members to be large team friendly * Change Id to ChannelId in ChannelStats model * Updated getChannelMember and getProfilesByIds routes to match proposal * Performance improvements (#4100) * Performance improvements * Fixing re-connect issue * Fixing error message * Some other minor perf tweaks * Some other minor perf tweaks * Fixing config file * Fixing buffer size * Fixing web socket send message * adding some error logging * fix getMe to be user required * Fix websocket event for new user * Fixing shutting down * Reverting web socket changes * Fixing logging lvl * Adding caching to GetMember * Adding some logging * Fixing caching * Fixing caching invalidate * Fixing direct message caching * Fixing caching * Fixing caching * Remove GetDirectProfiles from initial load * Adding logging and fixing websocket client * Adding back caching from bad merge. * Explicitly close go driver requests (#4162) * Refactored how the client handles team members to be more large team friendly (#4159) * Refactor getProfilesForDirectMessageList API into getAllProfiles API * Refactored how the client handles team members to be more large team friendly * Fix js error when receiving a notification * Fix JS error caused by current user being overwritten with sanitized version (#4165) * Adding error message to status failure (#4167) * Fix a few bugs caused by client scaling refactoring (#4170) * When there is no read replica, don't open a second set of connections to the master database (#4173) * Adding connection tacking to stats (#4174) * Reduce DB writes for statuses and other status related changes (#4175) * Fix bug preventing opening of DM channels from more modal (#4181) * Fixing socket timing error (#4183) * Fixing ping/pong handler * Fixing socket timing error * Commenting out status broadcasting * Removing user status changes * Removing user status changes * Removing user status changes * Removing user status changes * Adding DoPreComputeJson() * Performance improvements (#4194) * * Fix System Console Analytics queries * Add db.SetConnMaxLifetime to 15 minutes * Add "net/http/pprof" for profiling * Add FreeOSMemory() to manually release memory on reload config * Add flag to enable http profiler * Fix memory leak (#4197) * Fix memory leak * removed unneeded nil assignment * Fixing go routine leak (#4208) * Merge fixes * Merge fix * Refactored statuses to be queried by the client rather than broadcast by the server (#4212) * Refactored server code to reduce status broadcasts and to allow getting statuses by IDs * Refactor client code to periodically fetch statuses * Add store unit test for getting statuses by ids * Fix status unit test * Add getStatusesByIds REST API and move the client over to use that instead of the WebSocket * Adding multiple threads to websocket hub (#4230) * Adding multiple threads to websocket hub * Fixing unit tests * Fixing so websocket connections from the same user end up in the same… (#4240) * Fixing so websocket connections from the same user end up in the same list * Removing old comment * Refactor user autocomplete to query the server (#4239) * Add API for autocompleting users * Converted at mention autocomplete to query server * Converted user search autocomplete to query server * Switch autocomplete API naming to use term instead of username * Split autocomplete API into two, one for channels and for teams * Fix copy/paste error * Some final client scaling fixes (#4246) * Add lazy loading of profiles to integration pages * Add lazy loading of profiles to emoji page * Fix JS error when receiving post in select team menu and also clean up channel store
* Multiple UI Improvements (#4069)Asaad Mahmood2016-09-261-0/+1
| | | | | | | | | | | Minor contast fix for file uploading text. Updating icon markup Fixing icon for mentions Removing irrelevant characters Updating closing tag for mentions icon
* Updating ESLint (#4085)Christopher Speller2016-09-231-7/+7
|
* PLT-3268 Made keyboard shortcuts open/close account settings and channel ↵David Lu2016-07-201-3/+1
| | | | | | | | switcher (#3635) * made keyboard shortcuts open/close account settings and channel switcher * made booleans toggle
* Moving javascript driver back to platform (#3613)Christopher Speller2016-07-191-1/+1
|
* Updating ESLint (#3597)Christopher Speller2016-07-151-1/+1
|
* Add channel management permissions to mobile channel dropdown and clean up ↵Joram Wilander2016-07-061-116/+180
| | | | logic a bit (#3505)
* PLT-3473 Made shortcuts only work for CMD on OSX (#3479)David Lu2016-07-061-1/+1
| | | | | | * checked for CMD key * changed method of checking
* PLT-3418, PLT-2950, PLT-3375, PLT-3382, PLT-3446, PLT-3465: Multiple UI ↵Asaad Mahmood2016-07-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improvements (#3449) Improving help text margins Updating changes for get link and create post files Fixing icon for select team screen Fixing styles for select team button Adding improvements to posts UI Adding improvement to post layout Updating changes for post controls Updating z-index for sidebar--right Updating help text position Fixing code for posts Fixing css for post view Pushing improvements for posts view Updating changes for post view Updating post layout Fixing system time css Updating header for system posts Updating post css Removing opacity and changing color for system messages Simplifying root post and system post behaviour Removing images from compact view Updating help text for display Updating embed preview text for advanced option PLT-3490 - Fixing RHS issue on Edge
* made channel header in mobile view correct (#3418)David Lu2016-06-271-10/+41
|
* Adding webpack code splitting (#3377)Christopher Speller2016-06-221-1/+1
|