Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update develop with main (#140) * Add fixed size for key parameter in KeyValue component for list card and card detail (#122) * ANDROAPP-5557-mobile-ui-Create-Custom-shadow-for-scroll-behavior-in-BottomSheetShell-component (#120) * Center align buttons vertically in `ButtonBlock` * Show bottom shadow if the content is scrollable * Remove default padding in `ButtonBlock` * Update spacing in `BottomSheet` * Update bottom sheet shadow specs * Run code format * ANDROAPP-5650-mobile-ui-Rectify-Input-Signature-and-Image-button-component-height (#121) * update: [ANDROAPP-5650] height fixed, button height matches with progress indicator * update: [ANDROAPP-5650] code formatted * [ANDROAPP-5668] update compose version to 1.5.10-rc02 (#123) * fix: [ANDROAPP-5550] longtext bottom line (#124) * Add `InputNotSupported` component (#129) * [ANDROAPP-5679] Modify style for auto complete dropdown items (#126) * ANDROAPP-5692-mobile-ui-Add-onImageClick-callback-to-ImageBlock-component (#128) * [ANDROAPP-5692] add clickable event and parameter to Input Image and Input Signature * Fix tests * add focus request on click events * ktlint fix * [ANDROAPP-5682] add DataMatrix support for QR Code generator, fix BottomSheetShell title and content visibility (#125) * [ANDROAPP-5718] Update compose to 1.5.10 (#133) * [ANDROAPP-5678] Refactor Additional Info column in Card detail and correct spacing (#127) * ANDROAPP-5684-mobile-ui-legend-component-info-icon-visibility (#131) * Hide legend info icon when there is no popup description data * Disable click when legend doesn't contain popup description data * Fix broken tests * Add test for legend click action * Request focus when input shell is tapped (#130) * fix: [ANDROAPP-5596] form fields spacing (#135) * [ANDROAPP-5720] correct supporting text padding for input age and input date time (#137) * update: [ANDROAPP-5705] chip text color modified (#134) --------- Co-authored-by: Sasikanth Miriyampalli <[email protected]> Co-authored-by: DavidAparicioAlbaAsenjo <[email protected]> Co-authored-by: Andrés Miguel Rubio <[email protected]> Co-authored-by: Manu Muñoz <[email protected]> * ANDROAPP-5635-mobile-ui-Create-Search-bar-component (#132) * add: [ANDROAPP-5635] screen added, component added, search bar component created * update: [ANDROAPP-5635] onClear added * update: [ANDROAPP-5635] color modified, text input added * update: [ANDROAPP-5635] code formatted * add: [ANDROAPP-5635] tests added, code formatted * update: [ANDROAPP-5635] search bar is now stateless * update: [ANDROAPP-5635] various changes * update: [ANDROAPP-5635] code formatted * update: [ANDROAPP-5635] tests fixed * ANDROAPP-5631-mobile-ui-integrate-compose-compiler-reports (#148) * Add support for generating Compose compiler reports To generate the reports run `gradle assembleDebug -PenableComposeCompilerReports=true` Generated reports are in `<module>/build/compose_metrics` * Update README * Develop to main rebase (#154) * Add fixed size for key parameter in KeyValue component for list card and card detail (#122) * [ANDROAPP-5668] update compose version to 1.5.10-rc02 (#123) * [ANDROAPP-5718] Update compose to 1.5.10 (#133) * [ANDROAPP-5678] Refactor Additional Info column in Card detail and correct spacing (#127) * ANDROAPP-5702-mobile-ui-Review-caret-behavior (#138) * fix input-field caret * fix lint error --------- Co-authored-by: Siddharth Agarwal <[email protected]> * ANDROAPP-5584-Implement-InputFileResource-adaptations (#142) * [ANDROAPP-5584] make upload state stateless, add focus requester * [ANDROAPP-5584] fix tests * reduce padding * [ANDROAPP-5631] correct ripple effect for app implementation (#141) * ANDROAPP-5714-Font-weight-of-accordian-title (#136) * update: [ANDROAPP-5714] section title font weight modified * update: [ANDROAPP-5714] title font weight updated * update: [ANDROAPP-5714] typography changed * update: [ANDROAPP-5714] code formatted * update: [ANDROAPP-5714] text typography modified * Remove unnecessary modifier padding in `SupportingText` (#139) * [ANDROAPP-5725] Add overflow and max line parameter to input dropdown (#144) * fix input coordinate screen crash (#145) Co-authored-by: Siddharth Agarwal <[email protected]> * [ANDROAPP-5728] Add no manual input functionality to input date (#146) * feat: [ANDROAPP-5728] mobile-ui-Change-show-more-color-and-correct-alignment-in-ListCard-component (#143) * [ANDROAPP-5728] change show more/less item colour and fix alignment * [ANDROAPP-5728] Correct vertical alignment for show more component * ANDROAPP-5714-Font-weight-of-accordian-title (#147) * update: [ANDROAPP-5714] section title font weight modified * update: [ANDROAPP-5714] title font weight updated * update: [ANDROAPP-5714] typography changed * update: [ANDROAPP-5714] code formatted * update: [ANDROAPP-5714] styles modified * [ANDROAPP-5738] Correct vertical padding in Input Image (#149) * ANDROAPP-5703-mobile-ui-Improve-KeyValue-component-functionality (#151) * fix list card key text * fix lint indentation error --------- Co-authored-by: Siddharth Agarwal <[email protected]> * fix list card key value spacing (#152) Co-authored-by: Siddharth Agarwal <[email protected]> --------- Co-authored-by: Andrés Miguel Rubio <[email protected]> Co-authored-by: Siddharth Agarwal <[email protected]> Co-authored-by: Siddharth Agarwal <[email protected]> Co-authored-by: DavidAparicioAlbaAsenjo <[email protected]> Co-authored-by: Sasikanth Miriyampalli <[email protected]> * ANDROAPP-5642-mobile-ui-add-search-bar-to-bottom-sheet (#150) * Pass modifier to search bar param in `BottomSheetShell` In order for the search bar to be properly placed as in Figma, we have to control the positioning of it via a modifier. That's why we are sending back the modifier that can be used. Other option would be to add the search bar inside the bottom sheet it self, but that increases the number of callbacks we need to handle the bottom sheet shell. It's still a valid option to strictly enforce *our* search bar usage rather than passing any composable. * Add search bar component inside `BottomSheet` * Add spacing at the top of search bar * Use `contentScrollState.canScrollForward` to show and hide bottom sheet content shadow * ANDROAPP-5640-mobile-ui-extract-drawable-resource-check-to-necessary-components (#156) * dix drawable resource check method for desktop app * remove unused imports --------- Co-authored-by: Siddharth Agarwal <[email protected]> * ANDROAPP-5644-mobile-ui-update-dropdown-component (#155) * Refactor dropdown component - Bring dropdown menu inside the component - Show bottom sheet menu if there are more than 7 items - Change input dropdown function signature * Use `MaterialTheme` body large as base text style for `bodyLargeBold` * Add corner radius to selected background * Update gitignore * Update dropdown menu design * Add support for search dropdown items shown in bottom sheet * Show no results found text in bottom sheet dropdown if there are no results after search * Add config to hide search bar in input dropdown component bottom sheet * Rename `InputField` to `DropdownInputField` * [ANDROAPP-5768] Update AG 8.1.4P, compose multiplatform 1.5.1 and kotlin 1.9.21 (#159) * [ANDROAPP-5768] Update AGP to 8.1.4 and compose to 1.5.11 * [ANDROAPP-5768] Update kotlin to 1.9.21 * [ANDROAPP-5768] Update target hierarchy * ANDROAPP-5752-update-bottom-sheet-component-spacings (#161) * Change bottom padding for bottom sheet component from 56dp to 24dp * Centre align bottom sheet title if there is a search bar * ANDROAPP-5674-mobile-ui-Image-detail (#157) * add full screen image component Co-authored-by: Siddharth Agarwal <[email protected]> * Add `contentScrollState` as parameter to `BottomSheetShell` (#168) * ANDROAPP-5721-mobile-ui-Supporting-text-visual-improvements-animations (#166) * animate `InputShell` content This will animate the visibility of supporting text and other composable contents used inside `InputShell` * update `InputRadioButtonScreen` to test animation button added to show supporting text visibility with animation * fix lint error --------- Co-authored-by: Siddharth Agarwal <[email protected]> * remove onImageClick * fix merge with main * Add develop branch to snapshot deployments (#172) * Make title as optional parameter in the bottom sheet component (#171) * Mark title as optional in the bottom sheet component * Mark content composable as required in the bottom sheet component * update: [ANDROAPP-5751] component updated, using BasicTextField for f… (#165) * update: [ANDROAPP-5751] component updated, using BasicTextField for fixing a padding, ripple effect added * add: [ANDROAPP-5751] content description added, string resource extracted * add:[ANDROAPP-5751] focus added * update: [ANDROAPP-5751] typography modified, padding added * update: [ANDROAPP-5751] padding modified * update: [ANDROAPP-5751] padding and caret color modified * add prefix to custom material icons (#174) * Androapp 5820 mobile UI implement input chip component (#173) * rename `Chip` to `FilterChip` * rename `Chip` file to `FilterChip` * add `InputChip` component * fix lint error --------- Co-authored-by: Siddharth Agarwal <[email protected]> * ANDROAPP-5858-mobile-ui-Create-Warning-Button-class-in-mobile-UI (#175) * add `WarningButton` component * fix lint error * add colorStyle to button component `ColorStyle` parameter added to button component with two values DEFAULT, ERROR * internal function made private * refactor error button style --------- Co-authored-by: Siddharth Agarwal <[email protected]> * fix: [ANDROAPP-5523] infobar height and padding (#176) * Androapp 5673 mobile UI signature canvas (#169) * add `SignatureCanvas` the component tries to match the current functionality of the capture app. The code has been modified to work on multi-platform. * add `Modifier.dashedBorder` util the util is created for signature canvas dashed border. * added createBitmap function implemented using expect/actual declaration. * added signature bottom sheet this will have `SignatureCanvas` as shell and will be used to draw signature by the user * `InputSignature` component modified component modified to handle add signature functionality. The component will encapsulate the `onAddButtonClicked` function and will handle the upload state internally. This also exposes new method `onSaveSignature`. * modified `InputSignatureScreen` modified `InputSignatureScreen` to test add signature functionality. * update `captureBitmap method` the signature is now properly captured on android platform, desktop is still in process * fix lint error * use signature pad library `SignatureCanvas` has been deleted and is now replaced by signature-pad library. This helps us to achieve smoother signatures using Bezier implementation for a smoother line. * dummy signature pad added for desktop * hide section divider for signature canvas sheet * remove unwanted line --------- Co-authored-by: Siddharth Agarwal <[email protected]> * ANDROAPP-5672-mobile-ui-org-unit-tree-component (#170) * Add custom DHIS2 icons for org tree items * Add `OrgBottomSheet` * Add org tree bottom sheet screen * Add no results found view to org tree bottom sheet * Disable clear all button if no items are selected in org tree * Mark title as nullable in `OrgBottomSheet` * Lock org tree dialog height based on org tree list to avoid jumping when list is updated * Highlight search query in matching org tree items * Rename `dhis2_org_tree_item_circle` to `material_circle_outline` * Replace `material_circle_outline` icon with 24dp frame icon * Use material icons for arrow icons in org tree item * Remove unused icons * Fix org bottom sheet sample crash * Add tests for org bottom sheet * ANDROAPP-5847-mobile-ui-adapt-input-shell-for-search-redesign (#177) * Add support for setting transparent input sheet * Add start indent for transparent input shell * Change indicator color when input shell is transparent * Handle label color properly in transparent input shell * ANDROAPP-5892-mobile-ui-correct-alignment-of-reset-button-in-input-shell (#180) * Align input action buttons to center of input shell row * Push up input indicator to remove white space between shell and indicator * fix: [ANDROAPP-5876] add clickable event to text for dropdown (#179) * Develop release 0.1.1 (#184) * ANDROAPP-5881-Input-with-virtual-keyboard-not-working-correctly (#178) * fix: [ANDROAPP-5881] Add textfieldComposition to textfield value to avoid infinite calls to onValueChanged * fix: [ANDROAPP-5881] Ktlint fix * fix: [ANDROAPP-5881] test fix for input age * fix: [ANDROAPP-5895] Correct misalignment when entering text in input shell (#181) * ANDROAPP-5889-mobile-ui-indicator-component (#182) * Add indicator input * Fix corner radius not applying to start of indicator input * feat: [ANDROAPP-5890] add shadow to Listcards and samples to ListCard screen (#183) * feat: [ANDROAPP-5890] add shadow to Listcards and samples to ListCard screen * feat: [ANDROAPP-5890] refactor parameter names * fix: [ANDROAPP-5900] set initial composition to 0, manage textfieldValue correctly on value change (#186) * bug: [ANDROAPP-5900] set initial composition to 0, manage textfieldValue correctly on value change * fix: [ANDROAPP-5900] extract rememberable variable to avoid unnecessary recompositions and use TextFieldValue for Inputs to maintain cursor, selection and composition control. * fix: [ANDROAPP-5900] amend build gradle changes * bug: [ANDROAPP-5900] set initial composition to 0, manage textfieldValue correctly on value change * fix: [ANDROAPP-5900] extract rememberable variable to avoid unnecessary recompositions and use TextFieldValue for Inputs to maintain cursor, selection and composition control. * fix: [ANDROAPP-5900] amend build gradle changes * fix: [ANDROAPP-5900] allow null values and correct Input Negative Integer * Update build.gradle.kts (#189) * [ANDROAPP-5800] Parameter Selector item (#185) * [ANDROAPP-5800] Create ParameterSelector * [ANDROAPP-5800] Rename InputStyle to HelperStyle * [ANDROAPP-5800] Add InputStyle to InputShell * [ANDROAPP-5800] Add unfocusedIndicatorColor parameter to InputStyle * [ANDROAPP-5800] add another label * [ANDROAPP-5800] Input email button handling * [ANDROAPP-5800] Rename ParameterSelector.kt sealed classes * [ANDROAPP-5800] Adapt InputBarCode * [ANDROAPP-5800] Adapt InputAge * [ANDROAPP-5800] Adapt InputCheckBox * [ANDROAPP-5800] Adapt InputCoordinates * [ANDROAPP-5800] Adapt InputDateTime * [ANDROAPP-5800] Adapt InputDropdown * [ANDROAPP-5800] Adapt InputFileResource * [ANDROAPP-5800] Adapt InputImage and InputSignature * [ANDROAPP-5800] Adapt inputs extending from BasicTextInput * [ANDROAPP-5800] Adapt InputMatrix, InputNotSupported, InputOrgUnit, InputRadioButton * [ANDROAPP-5800] Adapt InputSequential * [ANDROAPP-5800] Adapt InputYesNoField, InputYesOnlyCheckBox, InputYesOnlySwitch * [ANDROAPP-5800] Remove default value on InputShell * [ANDROAPP-5800] Set default value to BasicInputImage * [ANDROAPP-5800] set configurable disabled background color * [ANDROAPP-5800] update Enum.values warning * [ANDROAPP-5800] update to kotlin.version=1.9.22 agp.version=8.2.2 compose.version=1.5.12 * [ANDROAPP-5800] Add clickable option to EmptyParameterField * [ANDROAPP-5800] ParameterSelector.kt animated visibility * [ANDROAPP-5800] handle close parameterItem state * [ANDROAPP-5800] handle InputLink button enable * [ANDROAPP-5800] handle InputBarCode, InputQRCode button enable * [ANDROAPP-5800] Add shape LargeTop * [ANDROAPP-5800] Add icon as parameter * [ANDROAPP-5800] change barcode icon * [ANDROAPP-5800] pixel perfect fix * ANDROAPP-5675-mobile-ui-multi-selection-component (#187) * Add multi select component that renders inline checkboxes * Add option to set transparent background for `InputChip` * When there are more than required items, show selected items as chips * Change `onItemSelected` param to `onItemsSelected` to pass multiple selected items * Rename `org_tree_no_results_found` string key to `no_results_found` * When dropdown button is clicked, show multi select bottom sheet with search * Fix minimum inputs check in multi select component * Add fake clickable element to capture input clicks in multi select component If there are more than 7 elements, we want to entire input to be clickable to open the bottom sheet * Add constructor overload for `CheckBoxData` to take `AnnotatedString` * Add constructor overload for `RadioButtonData` to take `AnnotatedString` * When searching in multi select bottom sheet, highlight items text * Fix left padding of inline multi select checkbox block * Add support for `InputStyle` param * update version code (#191) * update version code * downgrade AGP to 8.2.0 * feat: [ANDROAPP-5905] Update ListCard component Title and description (#188) * feat: [ANDROAPP-5905] add description to listCard and allow for different Textstyle and colors for title and description * feat: [ANDROAPP-5905] fix test * feat: [ANDROAPP-5905] correct font provision * ANDROAPP-5800 (#192) * add: [ANDROAPP-4826] Custom warning and error messages added to section (#194) * add: [ANDROAPP-4826] Custom warning and error messages added to section * update: [ANDROAPP4826] warning and error messages are optional params * update: [ANDROAPP-4826] Tests fixed * update: [ANDROAPP-4826] the tag messages are shown properly (#196) * Add modifier to ParameterSelector.kt (#198) * Add missing features in multi selection input (#197) * Add custom icon on ParameterSelector.kt (#199) * refactor inputs for multi selection (#200) Signed-off-by: Pablo <[email protected]> * feat: [ANDROAPP-5694] mobile UI date time and date time pickers (#190) * feat: [ANDROAPP-5694] begin refactor for sonar and new implementation * feat: [ANDROAPP-5694] Initial Date and TimePicker implementations * feat: [ANDROAPP-5694] format dates and times correctly, change colors to design, clean-up * feat: [ANDROAPP-5694] conflict resolution * feat: [ANDROAPP-5694] add parameters for texts * feat: [ANDROAPP-5694] fix initial incorrect date * feat: [ANDROAPP-5694] fix dropdown test and crash * feat: [ANDROAPP-5694] correct color * feat: [ANDROAPP-5694] manage SelectableDates, remove unneccessary parameters, modify supporting text, update documentation, add tests for date picker and time picker * feat: [ANDROAPP-5694] amend input dropdown change * feat: [ANDROAPP-5694] amend input dropdown change and remove unnecessary remembered value * fix: [ANDROAPP-5694] modify colors and correct crashes when parsing values * fix: [ANDROAPP-5694] fix other crashes and add incorrect hour format functionality * fix: [ANDROAPP-5694] amend suporting text changes * fix: [ANDROAPP-5694] amend color overriding * fix: [ANDROAPP-5694] request focus on click * feat: [ANDROAPP-5694] add allowed dates to date picker, give access to OnDateSelected event * fix: [ANDROAPP-5694] ktlint * update: [ANDROAPP-5694] remove on date selected access * update: [ANDROAPP-5694] make format optional and add default value * Setup screenshot testing (#195) * Add paparazzi plugin to designsystem module * Add snapshot testing for input chip and indicator * Run code formatting * Add GitHub CI check to verify screenshots tests * Update README with screenshot testing steps * ANDROAPP-5910-mobile-ui-dropdown-items-misalignement (#193) * Add start indent for input dropdown items * Change `Dp.Unspecified` to `Spacing0` * feat: [ANDROAPP-5694] Allow custom DropdownInputField implementation (#202) * fix: MultiSelectBottomSheet return all fields * Add default colors to time picker (#205) * feat: [ANDROAPP-5694] add default colors to timepicker * fix: [ANDROAPP-5694] ktlint fix * fix multi text selection in bottomsheet (#206) Signed-off-by: Pablo <[email protected]> * ANDROAPP-5909-add-support-for-nullable-content-in-bottom-sheet-shell (#201) * Change content to be nullable in `BottomSheetShell` * Hide content shadow if content is null * Update AGP version 8.2.2 (#207) * Add param to change header text alignment (#204) * Add bitmaps to Matrix sequential (#209) * add FAB component (#210) * add FAB component * add screenshot test * fix fab shadow * update extended FAB shadow blur * fix fab shadow --------- Co-authored-by: Siddharth Agarwal <[email protected]> * fix: [ANDROAPP-5952] pass TextRange to textfield value in AgeInput (#211) * fix: [ANDROAPP-5952] pass TextRange to textfield value in AgeInput * fix: [ANDROAPP-5952] smal refactor * feat: [ANDROAPP-5952] add snapshot testing to InputAge component * fix: [ANDROAPP-5952] lint fix * fix: [ANDROAPP-5952] rename InputAgeSnapshot Launch * fix: [ANDROAPP-5952] upload InputAgeSNapshot * fix: [ANDROAPP-5952] remove remember * fix: [ANDROAPP-5952] lint fix * fix: [ANDROAPP-5952] upload screenshot report to CI * fix: [ANDROAPP-5952] correct CI step * fix: [ANDROAPP-5952] adapt step * fix: [ANDROAPP-5952] correct CI step * fix: [ANDROAPP-5952] correct CI step * fix: [ANDROAPP-5952] upload complete report folder * [ANDROAPP-5952] Image regenerated * fix: [ANDROAPP-5952] remove upload paparrazzi report * fix: [ANDROAPP-5952] remove unnecessary variable --------- Co-authored-by: andresmr <[email protected]> * feat: [ANDROAPP-5309] BasicTextField onSearch (#212) * fix: [ANDROAPP-5952] add DatePicker into InputAge (#213) * fix: [ANDROAPP-5952] add DatePicker into InputAge * fix: [ANDROAPP-5952] fix tests * fix: [ANDROAPP-5952] fix screenshot tests * fix: [ANDROAPP-5952] lint check * add MetadataIcon to support custom icons (#214) Signed-off-by: Pablo <[email protected]> * fix: [ANDROAPP-5952] take timezone offset into account for Date picker (#215) * fix: [ANDROAPP-5952] take timezone offset into account for Date picker * fix: [ANDROAPP-5952] modify InputAgeType to have textFieldValue as a parameter * fix: [ANDROAPP-5952] adapt tests * fix: [ANDROAPP-5952] adapt tests * fix: [ANDROAPP-6003] removing item on multiselect (#216) * use safeContentPadding in bottom sheet content (#217) * use safeContentPadding in bottom sheet content Signed-off-by: Pablo <[email protected]> * use systemBarsPadding in bottom sheet content Signed-off-by: Pablo <[email protected]> * remove unused imports Signed-off-by: Pablo <[email protected]> * ktlint Signed-off-by: Pablo <[email protected]> --------- Signed-off-by: Pablo <[email protected]> * update develop with main (#222) * feat: [ANDROAPP-6034] Input User and Input Password (#219) * feat: Input User and InputPassword components * fix: correct IconButton disabled color add button to Login screen * fix: [ANDROAPP-6033] amend Icon button changes * fix: ktlint fix * feat: [ANDROAPP-6034] refactor ui models and add UI tests for new components * feat: [ANDROAPP-6034] add snapshot tests for new login components * fix: [ANDROAPP-6034] lint check * update login golden image --------- Co-authored-by: andresmr <[email protected]> --------- Signed-off-by: Pablo <[email protected]> Co-authored-by: Xavier Molloy <[email protected]> Co-authored-by: Sasikanth Miriyampalli <[email protected]> Co-authored-by: DavidAparicioAlbaAsenjo <[email protected]> Co-authored-by: Manu Muñoz <[email protected]> Co-authored-by: Siddharth Agarwal <[email protected]> Co-authored-by: Siddharth Agarwal <[email protected]> Co-authored-by: Pablo <[email protected]>
- Loading branch information