Skip to content

Feature branches/forms #474

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 47 commits into from
Jun 25, 2024
Merged

Feature branches/forms #474

merged 47 commits into from
Jun 25, 2024

Conversation

kaushikrw
Copy link
Collaborator

@kaushikrw kaushikrw commented Jun 21, 2024

Related to issue: #4172

Description:

FeatureForm attachments api has been approved and this PR brings in the bulk of the attachments related toolkit changes.

Summary of changes:

  • Uses the FeatureForm.defaultAttachmentsElement to render an AttachmentFormElement.
  • AttachmentElementState provides the state logic for the AttachmentFormElement.
  • Each attachment is rendered using AttachmentTile which uses FormElementState.
  • Added permissions for camera to add any image attachments via camera.
  • Adding new attachments has a limit of 50 MB. Reference
  • AttachmentsFileProvider provides a way to share and view any attachment type with the default system apps.
  • Uses the FeatureForm.finishEditing() api instead of table.updateFeature() to save any form updates.
  • Fixes failing tests in GroupElementTests and ThemingTests.
  • Added CalculatedFieldTests that verifies any fields with value expressions as indicated by the new FieldFormElement.hasValueExpression property.
  • Fields with a value expression now also receive validation errors and is refactored as part of the ReadOnlyTextField.

Pre-merge Checklist

Soren Roth and others added 30 commits March 18, 2024 21:36
* updated radio button tests

* added test doc link
* slight edits to FeatureForm composable function KDoc.

* Update toolkit/featureforms/src/main/java/com/arcgismaps/toolkit/featureforms/FeatureForm.kt

Co-authored-by: Gunther Heppner <[email protected]>

---------

Co-authored-by: Soren Roth <[email protected]>
Co-authored-by: Gunther Heppner <[email protected]>
* update exception name for API change

* update exception name for API change

* pull in the build of the SDK with the name change of IncorrectValueTypeException

---------

Co-authored-by: Soren Roth <[email protected]>
* use geo-compose in FeatureFormsApp.

* remove DI providing MapViewProxy.
add AndroidViewModel usage

---------

Co-authored-by: Soren Roth <[email protected]>
… range. (#376)

* do not pass a selected date into date picker if it is out of range.

* just expand the year range to incloude out of range field value's date

* add an initialError property to the DateTimePickerState, weave it through to the PickerHeader.

* use includeTime and adjust spacing.

---------

Co-authored-by: Soren Roth <[email protected]>
* wip

* basic support for attachment element state creation and management

* remove unused dependency

---------

Co-authored-by: Soren Roth <[email protected]>
@kaushikrw kaushikrw self-assigned this Jun 24, 2024
@kaushikrw kaushikrw marked this pull request as ready for review June 24, 2024 18:33
@puneet-pdx puneet-pdx self-requested a review June 25, 2024 17:50
@kaushikrw
Copy link
Collaborator Author

thanks @sorenoid @puneet-pdx

@kaushikrw kaushikrw merged commit 4bfa29f into v.next Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants