summaryrefslogtreecommitdiffstats
path: root/webapp/components/channel_header.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-25/+22
| | | | | | | | | | | | | | | | | | | | | | | | 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
* Ui improvements (#7092)Asaad Mahmood2017-08-041-99/+95
| | | | | | | | | | | | | | * PLT-7121 - Making channel header text dynamic * PLT-7268 - Fixing search results in compact view * PLT-7248 - Adjusting space between post controls * PLT-7303 - Fixing manage members button * Revert "PLT-7303 - Fixing manage members button" This reverts commit 7dcb68a8e333a2c95444d417ed9a244c9c30aa99.
* PLT-6484 Add /leave command to leave a channel (#6402)David Meza2017-08-031-58/+1
| | | | | | | | | | | | | | | | | | * 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
* fix "@" mention doesn't open recent mentions search results if RHS is closed ↵Saturnino Abril2017-07-081-1/+4
| | | | (#6872)
* PLT-6905 - Updating channel header design (#6789)Asaad Mahmood2017-07-061-72/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-5/+1
| | | | | | | | | | 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-6759 Show deactivated users in GMs (#6703)Joram Wilander2017-06-221-2/+2
| | | | | | * Show deactivated users in GMs * Fix runtime error when DMing deactivated user
* 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)
* Update channel_header.jsx (#6470)doh52017-05-241-15/+15
|
* 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/+63
|
* Start moving webapp to Redux (#6140)Joram Wilander2017-04-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Add modified view members modal to Town Square (#5695)Ryan Wang2017-04-201-1/+22
|
* 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-6139 (WebApp): Manage Private Channel Members (#5947)George Goldberg2017-04-041-35/+57
| | | | Honour the policy setting for add/remove members from private channels in the WebApp UI.
* 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
* PLT-5910: Fix Channel header menu in Town Square. (#5831)George Goldberg2017-03-241-21/+21
|
* Add IDs to Team Settings, Channel Settings, Account Settings (Display & ↵Eric Sethna2017-03-211-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Advanced) (#5823) * Add IDs to Channel Notification Preferences * Add IDs to Display Settings * Add ID to language dropdown * Add Ids * Add ids * Add Ids * Add Ids * Add Ids * Add Id * Add Ids * Add Ids * Fix duplicate Id
* Ui improvements (#5755)Asaad Mahmood2017-03-171-8/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | * PLT-5816 - Flagged posts tooltip fix * PLT-5766 - Link previews appearing outside the box * PLT-5795 - Fixing alignment user list in channel * PLT-5818 - Reset password error not aligned * PLT-5837 - Adjusting image preview max height * PLT-5778 - Updating word break for paragraphs * PLT-5848 - Updating label for file error * PLT-5846 - Markdown tables extra border on mobile * PLT-5662 - Pinned post UI improvement * Fixing eslint error * Updating tooltip eslint issue * PLT-5832 - Removing error styling on labels
* Update eslint (#5752)Christopher Speller2017-03-131-4/+4
| | | | | | * Updating eslint * Updating eslint-plugin-react
* Add pinned posts (#4217)Gabin Aureche2017-03-131-2/+25
|
* Mobile Web: Auto-focus cursor in the search box (#5284)Saturnino Abril2017-03-031-1/+6
| | | | | | | | | | | | | | * Mobile Web: Auto-focus cursor in the search box and open keyboard when the search icon is tapped * fixed issue with safari mobile view * added isFocus props to search_bar.jsx component * used 'x' and fixed spacing * changed 'x' icon and fixed css * added aria-hidden='true'
* PLT-3077 Add group messaging (#5489)Joram Wilander2017-03-021-2/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-2/+3
| | | | | | | | | | * 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.
* Add webapp/utils/url.jsx (#5285)Akihiko Odaki2017-02-071-1/+2
| | | | | | | webapp/utils/utils.jsx got big and that caused a potential circular dependency with webapp/stores/team_store.jsx. This change solves the issue by introducing webapp/utils/url.jsx and moving URL-related functions, which is not likely to depend on actions and stores, from webapp/utils/utils.jsx.
* Update chanel_header.addMembers --> channel_header.addMembers (#5144)Jason Blais2017-01-201-1/+1
| | | | | | * Update channel_header.jsx * Update en.json
* Move instances of Client.leaveChannel() in components to an action (#5131)Carlos Tadeu Panato Junior2017-01-201-18/+1
| | | | | | * Move instances of Client.leaveChannel() in components to an action * create isFavoriteChannelId
* Remove TODO (#4965)Christopher Speller2017-01-041-5/+0
|
* PLT-4990 (WebApp): Separate channel management permissions. (#4865)George Goldberg2017-01-021-25/+3
|
* PLT-3782 Do not move the "@" sign and flag icon to the left of search bar ↵khawerrind2016-12-221-4/+4
| | | | | | | | | | | | | | when opening the right hand sidebar (#4850) * do not move the mention & flag button to the left of the search box when in search mode * fixed the margin & padding issues of the search box * fixed the member icon positioning issue and the expanded sidebar toggle issue * fixed remaining bugs when sidebar is in expanded mode * changed propTypes from func to bool
* Prevent accidental removal of user from town square (#4842)Joram Wilander2016-12-201-1/+1
|
* Allow any user in a channel to remove other users (#4806)Joram Wilander2016-12-151-37/+16
|
* Fix some react natives warning messages (#4653)enahum2016-11-281-3/+12
|
* Merge branch 'release-3.5'Christopher Speller2016-11-241-5/+13
|\
| * Fixed error being thrown by ChannelHeader when switching teams (#4619)Harrison Healey2016-11-211-1/+1
| | | | | | | | | | | | * Fixed error being thrown by ChannelHeader when switching teams * Close SidebarHeaderDropdown after switching teams
| * Hotfix: PLT-4779 Fixing scrolling on loading a channel and missing DM ↵Harrison Healey2016-11-211-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | channel headers (#4584) * Added all parameters to call tracker ids when getting profiles * Changed channel header rendering to not depend on knowing all users in a DM channel * Added comment about a race condition in UserActions.populateDMChannelsWithProfiles * Added a fixed-height placeholder for the ChannelHeader when its state isn't valid for rendering
* | Updating eslint (#4573)Christopher Speller2016-11-171-4/+4
| |
* | PLT-4316 - Webrtc improvements (#4525)Asaad Mahmood2016-11-111-20/+21
|/
* PLT-4550 move webrtc to TE (#4440)enahum2016-11-041-2/+1
| | | | | | * PLT-4550 move webrtc to TE * remove webrtc from makefile enterprise tests
* PLT-4507 Don't mount modals until opened to make resetting state automatic ↵Joram Wilander2016-11-041-11/+25
| | | | | | | | (#4358) * Don't mount modals until opened to make resetting state automatic * Move dimiss handler to be fired after modal exit animation complete
* Minor UI improvements (#4431)Asaad Mahmood2016-11-021-24/+36
|
* Avoiding javascript error when webrtc is enabled. (#4425)Christopher Speller2016-11-021-0/+1
|
* Plt-4483 Removed unnecessary events from ChannelStore (#4407)Harrison Healey2016-11-011-7/+1
| | | | | | * PLT-4483 Removed MoreChange listener from ChannelStore * PLT-4483 Removed LeaveChannel listener from ChannelStore
* GH-4095 Favorite/Starred Channels (#4222)Alexander Smaga2016-10-261-7/+56
|
* Merging performance branch into master (#4268)Joram Wilander2016-10-191-20/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Fix shortcut for selecting text with CMD/CTRL + SHIFT (#4213)Joram Wilander2016-10-131-1/+1
|
* First commit for toggling mentions using shortcut and button (#4169)Pepijn2016-10-111-29/+23
| | | | | Also did some refactoring and moved code to actions Fixed coding style errors
* Updating ESLint (#4085)Christopher Speller2016-09-231-1/+1
|