* Extract common observers to queries
* Separate also queries and more agressive refactoring
* Use query to avoid throws from findAndObserve
* Fix minor error
* Address feedback
* Address feedback
* Address feedback
* Fix model types
* Address feedback
* Detox/E2E: Migrate to typescript
* Add jest.config.js
* Add moduleMapper to config.json
* Add cookie jar to axios client, fix tsconfig.json and default_config.json
* Take keyboard into consideration; clean test for now for this migration PR
* Revert changes on path_builder
* Attempt to fix dep issues
* Update detox dep
* Added missing @type dev dependencies
* Fix dep order
* Fix unit tests
* Added dynamic year to email.ts
* Use localPath when available
* Revert changes to replace space for dash in the filename
* Rename other action to external and always call onDownloadSuccess if defined
* add missing localization strings
* Add User Mention to autocomplete
* Minor fixes
* Fix at_mention (you) alignment
* Add missing translation strings
* Make it more parallel to channel mentions
* Fix bot tag
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
* Permalink initial commit
* Fixes: 10 items per page
* MM-40203: permalink modal viewer for mentions
Is triggered by pressing on an item in mentions,
and shows posts around that item, including the item in a modal.
* Adds previously deleted file
* address feedback
* Move showPermalink as a remote action
* address more feedback
* fetchPostsAround to only return PostModel
* Attempt to autoscroll to highlighted item
* Permalink to not highlight saved and pinned posts
* Add bottom margin using insets to permalink screen
* Use lottie loading indicator
* Switch to channel
* Missing translation string
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
* Fix markdown formatting and touchable interaction
* open gallery as overlay instead of modal
* update snapshots
* Add missing dependencies to useMemo
* edit screen - in progress
* edit screen - in progress
* edit post screen - post input - in progress
* edit post screen - post input - in progress
* edit post screen - post input - in progress
* edit post screen - post input - in progress
* edit post screen - post error component - in progress
* edit post screen - post error component - in progress
* edit post screen -emitEditing - in progress
* edit post screen - in progress
* edit post screen - in progress
* edit post screen - in progress
* able to edit post
* edit post screen - in progress
* edit post screen - in progress
* edit post screen - in progress
* edit post screen - in progress
* updated errorLine
* corrections
* edit post screen - in progress
* edit post screen - in progress
* edit post screen - in progress
* properly closes modal on tablets
* starts with Save button set to false
* refactored onTextSelectionChange
* added useTheme to ErrorTextComponent
* passing canEdit and hasFilesAttached
* passing canEdit and hasFilesAttached
* fix API call
* change canEdit to canDelete
* nearly there
* displays alert
* maxPostSize
* autocomplete - fixing layout
* autocomplete - fixing layout
* autocomplete - work in progress
* autocomplete - work in progress
* clean up delete
* fixing autocomplete
* code fix
* added server error message
* update i18n
* removed comment
* code fix
* fix bug on empty post message
* post input top corrections
* post draft limit
* code corrections as per review
* removed theme from useEffect
* update edit_post - delete call
* refactor PostInputRef to EditPostInputRef
* autocomplete position fix and feedback addressed
* Navigation title & subtitle fonts / navigation button builder
* ux feedback
* delay focus of edit input by 20 frames
* properly dismiss the PostOptions screen
this comes from the fix for the BottomSheet screen
* using device info to check for physical keyboard
* autocomplete with keyboard closed
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
* Detox/E2E: Initial e2e tests in Gekidou
* Change Local Server to Server 1
* Renamed variables for consistency
* Added team display name verification on channel list screen
* Simplified login by email setup
* Simplified smoke test server login steps
* MM-39710: saved posts screen and DB
- Adds ids of saved posts to the systems table, as we do with recent
mentions.
- Adds a new remote action to fetch saved posts (getFlaggedPosts).
- Adds a new screen to display those in a mobile.
- Displays saved posts in the tablet view next to profile card.
* Uses Preferences instead of System table
Renames to saved posts wherever possible
* Adds text to localization file
* Fixes fetching/saving saved posts
* Refactor mini post to components folder
* Fixes hooks dependencies according to review
* Removes unnecessary 'withObservables'
* Small refactor
* Satisfies linter
* Adds empty state
And fixes empty state icon to be theme sensitive.
Both recent_mentions and saved_posts.
* Fixes empty screen's alignment
* Add missing preference
* add missing translation strings
* remove unused database type definition
* Fetch newly saved post
* Fix return type for client.getSavedPosts
* Remove usage of lodash compose
* Rename get remote actions to fetch
* Include close button for savedPost modal
* fix tablet view for SavePosts and use lottie loading indicator
* Render post with content for save posts and recent mentions
* post list viewable items type definition
* Add layout width to post content for saved post screen
* Use PostWithChannel and viewableItems for saved posts and recent mentions
* Layout margin of 20
* openGraphImage margin
* Fix openGraphImage display
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
* Add Create DM screen
* Add channel toggle and minor improvements
* Fix tests and apply new UI
* Address feedback UX feedback and fix missing menu item by adding another item height
* Add display name to channels and piggyback improvement on fetchUserByIds action and translations fix
* Address feedback
* Fix hardcoded colors
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
* Sorting categories body in the observable
* Adds muted state to channel list in sidebar
* update snapshots
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
Co-authored-by: Shaz Amjad <shaz.amjad@me.com>
* Sorting categories body in the observable
* feedback review
* Fix category queries to return only channels that have been loaded
* Do not display archived channels unless is the active one
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
* Thread screen
* misc
* Added snapshot for ThreadOverview
* Updated snapshot
* Misc
* Updated snapshot and ts fixes
* Made thread as a modal, fixes post list not closing on tablet
* Removed unsued variables
* Putting back the empty space before the root post (inverse list footer)
* Changed input text
* Removed empty footer space
* Misc fixes
* Disables new messages line for thread
* Loading threads before opening modal & BottomSheet componentId fix
* Moved merge navigation options to switchToThread
* Moved LeftButton to switch to thread
* Removed Q.and
* Misc fixes
* Added task id for pagination
* Removed useMemo, Q.and
* move thread close button as a prop
* Remove title font styles to use default
* Misc changes
* Misc fix
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
* Support Markdown svg and custom size inline images
* remove commonmark patches
* move getMarkdownImageSize to @utils/markdown
* Fix worklet not present while running unit tests that use calculateDimensions
* Set max size for SVG
* Set svg dimensions based on calculated size
* feedback review
* fix system message last users alignment
* Align based on platform
* alignment android attempt 3
* alignment android attempt 4
* alignment android attempt 5
* Fix post options for combined system messages and properly execute delete
* Fix not-observable prop
* Properly delete combined system messages post
* Prepare and batch remove post for combined system messages
* batch delete post
* Database init
* Naming fix
* naming misc
* Fix test
* Added Thread Tab columns, Team Threads Count table and other changes
* Test case fix
* Test cases fix ...... AGAIN
* TS fix
* Removed loaded_in_all_threads_tab, loaded_in_unreads_tab
* Removed TeamThreadsCount table, mention & message root counts & added loadedInGlobalThreads flag
* Type changes, added delete thread with post
* Removed unused type
* Reverted relationshio of post with thread
* Calling thread destroyPermanently from post
* Removed unused table name variables
* added THREAD constant table in post model and fixed a few comments
* Misc typo fix and code clean up
* Added test case and related to participant in user model
* test cases fix
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
* remove empty roles before fetching
* Fix prepare delete teams, channels and posts so they don't throw
* Fix reaction operator and moved some handlers to their correct file
* include delete categories when teams or channels are deleted
* Remove unused array in fetchRoles
* fix param comment for reactions handler
* don't sync preferences when getting the WS event
* Add channel autocomplete
* Fix autocomplete position and shadow effect
* Fix feedback issues
* Fix autocomplete on iOS and piggyback removal of section borders
* Fixes the channel autocomplete showing up after completion
* Address feedback
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
* Add sample test for local actions
* Fix the tests and add all missing tests
* Address feedback
* Sort imports
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>