forked from Ivasoft/mattermost-mobile
ef4fb9c8e0c6428733df0356ee4e48fedca20d2b
9 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
97b5e75e5f |
[Gekidou - MM-44930] Use File component for showing files in search. (#6425)
* add observables for search component add loader screen add file client searches for files * hook up loader component for loading state * search results with found posts now working * get and store files when searching * query file results from the database display dummy file text for now * add filter screen and icon to the results header * needs some cleanup but functionally works - applied filters reduce files to subset of selectd types - no filters will show all files * update number files in parenthesis to match the filtered number of files (if filtered) * added the missing file extensions found in webapp added document_types which is a superset of other types * remove clear all text from filter and from bottom_sheet component * checkin before merge latest gekidou branch - change filters to use latest figma design - from multiselect to single select - revert changes to bottom sheet content that allowed adding a RHS title button - start of the file attachement cards show in file results * Cleanup and fixes * Remove nested scroll views * Address feedback * Address feedback * extract the fileInfos from the results object, from an array * add translations for filters * add translations * use Object values to determine if has file info results * Combine fetch recent mentions and search for posts * add search icon back to home screen * remove unused function import * fix formatting and add 3 dot onPress option * don't show search button * Add touchable opacity for pressing the card Add function for opening gallery Fix `...` so only clicking directly over it calls it's function. Everywhere else calls open gallery * place compassIcon in a touchable and add hitslop create individual objects for flex column and row * use one-liner for text move constant outside of the component * truncate filename if over max filename lenght and append ... fix style for filename * remove all commented filetype code. This will not be added to the card because of added length to second row. Feedback from UX discussion * remove trimFileName function and MAX_FILENAME_LENGTH constant make the textContainer grow in width. The other flex boxes are constant width align main container center and remove vertical margins * create TabTypes contant and TabType Type to replace all uses of 'messages' and 'files' * make padding adjustments based on the selected tab and if there are results. When no results are shown, we want the 'Check the spelling or try another search' text to not move or flicker when switching between files and messages * put the margin on the touchable container, not the compassicon so the hitslop is relative to the compassicon. * Add the channel name to the filecard. each fileInfo from the server contain a channel_id. Add to the reponse type * Move the channel name to a separate line * implement changes from PR. Shrink channel name when it doesn't fit * use a useMemo instead of useCallback * initial commit * working copy using the File component instead of creating a new FileCard component * add styhling for long channel name * update styling for info text * update styling * disable lint check for console statement until function is hooked up * fixt linting errors caused by api including channel_id. It needs to be optional or the model will complain * when a file is an image, show the image or video as an image instead of the generic file icon * make `asCard` File Prop optional * shift the image icon over 4px * tweaked styles * tweaked styles for file info * move files directory from inside the post_list/post/body/ folder to its own component because is it referenced from other screens and components including: app/components/post_draft/uploads/upload_item/index.tsx app/components/post_list/post/body/content/image_preview/image_preview.tsx app/components/post_list/post/body/content/message_attachments/attachment_image/index.tsx app/components/post_list/post/body/index.tsx app/screens/gallery/document_renderer/document_renderer.tsx app/screens/home/search/results/results.tsx * create useImageAttachments hook and share with files component and results * rename all renderXXXFile useMemo options to xxxFile. These return the actual component * use explicit Boolean(onOptionsPress) * isSingleInput does not need to be a function * use find instead of filter().map() * add dependencies and refactor to reduce some file dependency arrays * order files by reverse create_at date * remove console.log and leave as a comment for now * update styling so that the view wrapper has the borderRadius. Now android and ios get the correct borderRadius surrounding the channel name * use the results of the ordered useImageAttachements results as data for File and Gallery * remove extra empty line * PR feedback - rename capitalize const - add several useCallbacks - use typescript optional parareter instead of if statement * - remove useMemos that only return a component - fix bug - when channel name is not present, don't show the channel component. This happened when looking at posts in a channel because post comes from the model, which does not include the channelName. This is because in the channel view all images are in a specific channel and no need to store it * remove useMemo import * remove callback * - remote unused operator - nothing needed outside of try catch * remove unused Client import * s/xxxFile/renderXxxFile/ because theare are a function that returns a component * move constant above component * default to 0 instead of forcing to be defined * use observerConfigBoolean * import as type because not useing to construct as models * add links to Jira ticket and github PR * add line breaks and sort alphabetically * use ternary operator to reduce number of lines * move up as far as possible * remove unused style * sort props and input vars alphabetically * move higher in the component * return ealier * no need for useDerivedValue. useMemo instead * use useCallback * Minor tweaks and fixes * Remove floats from style Co-authored-by: Daniel Espino García <larkox@gmail.com> Co-authored-by: Elias Nahum <nahumhbl@gmail.com> Co-authored-by: Matthew Birtch <mattbirtch@gmail.com> |
||
|
|
196f922b6a |
[Gekidou - MM-44645] Search Screen - show results from server (#6314)
Co-authored-by: Daniel Espino García <larkox@gmail.com> Co-authored-by: Elias Nahum <nahumhbl@gmail.com> |
||
|
|
5de54471b7 |
[Gekidou] Gallery (#6008)
* Gallery screen (ground work) * Open the gallery from posts * Open the gallery from post draft * feedback review * Feedback review 2 * do not remove dm channel names and localization fix * update to the latest network-client * do not override file width, height and imageThumbail if received file does not have it set * bring back ScrollView wrapper for message component * Remove Text wrapper for markdown paragraph * Fix YouTube play icon placeholder * Make video file play button container round * Add gif image placeholder * Save images & videos to camera roll * Feedback review 3 * load video thumbnail when post is in viewport * simplify prefix |
||
|
|
55324127e1 |
[Gekidou] Post input (#5844)
* Initial commit post input * Fix message posting, add create direct channel and minor fixes * Fix "is typing" and "react to last post" behaviour * Some reordering, better handling of upload error, properly clear draft on send message, and fix minor progress bar misbehavior * Add keyboard listener for shift-enter, add selection between video or photo while attaching, add alert when trying to attach more than you are allowed, add paste functionality, minor fixes and reordering * Add library patch * Fix lint * Address feedback * Address feedback * Add missing negation * Check for group name and fix typo on draft comparisons * Address feedback * Address feedback * Address feedback * Address feedback * Fix several bugs * Remove @app imports * Address feedback * fix post list & post draft layout on iOS * Fix post draft cursor position * Fix file upload route * Allow to pick multiple images using the image picker * accurately get the channel member count * remove android cursor workaround * Remove local const INPUT_LINE_HEIGHT * move getPlaceHolder out of the component * use substring instead of legacy substr for hardward keyboard * Move onAppStateChange above the effects * Fix camera action bottom sheet * no need to memo SendButton * properly use memberCount in sender handler * Refactor how to get memberCount * Fix queryRecentPostsInThread * Remove unused isDirectChannelVisible && isGroupChannelVisible util functions * rename errorBadUser to errorUnkownUser * extract localized strings * use ClientErrorProps instead of ClientError * Minor improvements Co-authored-by: Elias Nahum <nahumhbl@gmail.com> |
||
|
|
bebfccb964 |
[Gekidou] Add Draft Upload Manager (#5910)
* Add Draft Upload Manager * Address feedback * Use callbacks instead of events and add byteCount * Address feedback |
||
|
|
dff4f91441 |
MM-40364 [Gekidou] - Image Picker for Edit Profile (#5901)
* feature edit profile screen * minor refactoring * Apply suggestions from code review Co-authored-by: Elias Nahum <nahumhbl@gmail.com> * ts fixes * revert floatingTextInput label This reverts commit |
||
|
|
8cd127a223 |
[Gekidou] Typings & PostMetadata structure (#5542)
* Typings & PostMetadata structure * comment out unused code * Remove duplicate interface * Fix getPreferenceAsBool defaultValue |
||
|
|
c64277bdbf | Gekidou Update deps (#5530) | ||
|
|
3ee6e673c8 |
MM-35115 [Gekidou] Login flow - Email and Password (#5402)
* MM_35115: ADDED select_server screen
* MM_35115: ADDED select_server screen
* MM_35115: ADDED files on which select_server is dependent
* MM_35115: ADDED react-native-button
* MM_35115: Fixing TS issues [IN PROGRESS]
* MM_35115: Started withObservables [IN PROGRESS]
* MM_35115: Started withObservables [IN PROGRESS]
* MM_35115: withObservables - defaulting when no connection is available [IN PROGRESS]
* MM_35115: withObservables - some code clean up [IN PROGRESS]
* MM_35115: withObservables - some code clean up [IN PROGRESS]
* MM_35115: withObservables - some code clean up [IN PROGRESS]
* MM_35115: Substituting mapDispatchToProps [IN PROGRESS]
* MM_35115: Substituting mapDispatchToProps [IN PROGRESS]
* MM_35115: Substituting mapDispatchToProps [IN PROGRESS]
* MM_35115: Removed resetPing action [IN PROGRESS]
* MM_35115: ADDED app/client
* MM_35115: Preparing scheduleExpiredNotification
* MM_35115: Adding some todos
* Server & LoginOptions
* Use default server if available and autoconnect if configured
* Fix login header & manual server url
* MM_35115: Login Options[IN PROGRESS]
* MM_35115: Login screen - email [IN PROGRESS]
* MM_35115: Login screen - email [IN PROGRESS]
* MM_35115: Login screen - email - login api call [IN PROGRESS]
* MM_35115: Login screen - email - login api call [IN PROGRESS]
* MM_35115: Login screen - email - saving to server db [IN PROGRESS]
* MM_35115: Login screen - email - saving to System, Preferences to db [IN PROGRESS]
* MM_35115: Login screen - enforcing unique check on System entity [IN PROGRESS]
* MM_35115: Login screen - writing TeamMembership [IN PROGRESS]
* MM_35115: Login screen - writing Teams [IN PROGRESS]
* MM_35115: Login screen [IN PROGRESS]
* MM_35115: Login screen- Refactored DataOperator handlers [IN PROGRESS]
* MM_35115: Login screen - Proper clean up [IN PROGRESS]
* MM_35115: Login screen - completeLogin [IN PROGRESS]
* MM_35115: Improving DataOperator
* MM_35115: Improving DataOperator
* MM_35115: 80% DONE - login with email and password - some todos
* MM_35115: 80% DONE - login with email and password - some todos
* MM_35115: 80% DONE - login with email and password - some todos
* MM_35115: Removing unused app/queries folder
* MM_35115: Clean up
* MM_35115: Clean up
* MM_35115: Clean up
* MM_35115: Clean up
* MM_35115: Clean up
* MM_35115: Adding roles for MYTEAM
* MM_35115: Code clean up
* MM_35115: Code clean up
* MM_35115: Code clean up
* MM_35115: Adding rn-fetch-blob for Android
* MM_35115: Code clean up
* MM_35115: Code clean up
* MM_35115: Added test setup
* MM_35115: Fix database utils
* MM_35115: ADDED loadRolesIfNeeded
* MM_35115: Fix TS issue
* MM_35115: ADDED Tests setup
* MM_35115: Fix TS issues
* MM_35115: Fix TS issues
* MM_35115: Fix TS issues
* MM_35115: Added alternative to site name
* MM_35115: Added alternative to site name
* MM_35115: Removed hardcoded values
* MM_35115: Clean up
* MM_35115 - Fixed Android platform check instead of hermes
* MM_35115 - Replaced emptyErrorHandlingFunction with emptyFunction
* MM_35115 : Implemented TS fixes
* Update index.ts
* MM-35115 - Fix react-test-renderer issue
* MM_35115 - Optimizing DatabaseManager
* MM_35115 : Implemented getDatabaseConnection
* MM_35115 : Refactoring set/getActiveDatabase to use flag record
* MM_35115 : Refactored active database to use flag in Global entity
* MM_35115 : Updated manual database manager test
* MM_35115 : Fix operator/utils/test
* MM_35115 : Fix for base_handler
* MM_35115 : Fix test issues with Handlers
* MM_35115 : Fix test issues with prepareRecords
* MM_35115 : Fix wrapper test issue
* MM_35115 : Updated getMostRecentServerConnection to return the serverUrl as well as the connection
* MM_35115 : Refactored the way we call DataOperator
* MM_35115 : Updated database manager mock
* Add getMostRecentServerUrl function (#5440)
* fix: add getMostRecentServerUrl func
* fix: add ts and tsx to editorconfig
* fix: rename functions
* fix: return type
* Fix unit test setup
* fix login screen unit tests
* MM-36205 [GEKIDOU] Login Flow SSO (#5454)
* MM_35115: Starting LoginOptions SSO
* MM_36205: SSO [IN PROGRESS]
* MM_36205 : SSO [ IN PROGRESS ]
* Update sso_with_redirect_url.tsx
* MM_36205 : SSO Tests [ IN PROGRESS ]
* MM_36205 : Passing serverUrl to SSO screen
* Update sso.test.tsx
* Fix ViewTypes imports and keyMirror method
* MM_36205 : Code clean up
* Fix : Clean up imports
* Update: Aligning with PR 5452
* Fix: AndroidManifest file to include redirection ofr scheme mmauthbeta
* refactor: SSO Login method via Gitlab now navigates to Channel screen
* refactor: SSO Login without redirectURL is also working
* feat: SSO - main test completed
* feat: ADDED test for sso_with_redirect_url
* fix : eslint correction
* fix: Updated Loading component name
* fix : code clean up from reviews
* fix: reviews check
* fix: Added mmauthbeta into info.plist
* Revert "fix: Added mmauthbeta into info.plist"
This reverts commit
|