Skip to content

Forms Consume new attachments api #434

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 37 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
0fb1fba
make formelements observable
kaushikrw Apr 27, 2024
de2abfc
add attachment loading
kaushikrw Apr 29, 2024
ed60c35
revert un-needed changes
kaushikrw Apr 29, 2024
3f526a2
remove saver
kaushikrw Apr 29, 2024
880b8dd
Update AttachmentTile.kt
kaushikrw Apr 29, 2024
e8bfb1f
init add attachments work
kaushikrw Apr 30, 2024
9b6d8b2
added permissions for camera access
kaushikrw May 1, 2024
66a636e
add proper commits for attachments
kaushikrw May 2, 2024
8f3019b
added doc
kaushikrw May 2, 2024
98d9e43
Merge branch 'feature-branches/forms' into kaushik/forms/add-attachments
kaushikrw May 3, 2024
0893571
add editability of attachmentformelement
kaushikrw May 2, 2024
950923c
update doc
kaushikrw May 4, 2024
f4d169c
extract string resource
kaushikrw May 4, 2024
70bb4ef
add delete and rename attachments
kaushikrw May 6, 2024
9012d07
Merge branch 'feature-branches/forms' into kaushik/forms/delete-renam…
kaushikrw May 6, 2024
a13e6ed
initial fix
kaushikrw May 7, 2024
18fab1d
added doc
kaushikrw May 7, 2024
81a8253
fix imports
kaushikrw May 7, 2024
d6b865f
Update AttachmentTile.kt
kaushikrw May 7, 2024
df1abcc
Merge branch 'kaushik/forms/fix-state-ref' into kaushik/forms/delete-…
kaushikrw May 7, 2024
963bf0d
fixed rename dialog
kaushikrw May 7, 2024
598ca1d
Merge branch 'feature-branches/forms' into kaushik/forms/delete-renam…
kaushikrw May 7, 2024
0d679b2
fix conficts
kaushikrw May 8, 2024
d981e45
init working
kaushikrw May 8, 2024
88ca861
update authority
kaushikrw May 8, 2024
5642cde
fix capture uri and delete workaround
kaushikrw May 10, 2024
13ad099
make formattachmentstate loadable
kaushikrw May 10, 2024
f3d2fdd
Update AttachmentElementState.kt
kaushikrw May 10, 2024
d491c8f
fixed attachments recreation
kaushikrw May 13, 2024
7e1bcc5
fix scroll after new attachment is added
kaushikrw May 13, 2024
bbd5a99
refactored api usage
kaushikrw May 14, 2024
ad9c37a
update build
kaushikrw May 15, 2024
03fae42
Merge branch 'feature-branches/forms' into kaushik/forms/consume-new-api
kaushikrw May 16, 2024
98987ab
changed the state holder from map to list
kaushikrw May 17, 2024
f926451
use event type
kaushikrw May 20, 2024
462ecf8
add doc
kaushikrw May 20, 2024
36cff1a
react to attachment add event
kaushikrw May 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ ignoreBuildNumber=false
# these versions define the dependency of the ArcGIS Maps SDK for Kotlin dependency
# and are generally not overridden at the command line unless a special build is requested.
sdkVersionNumber=200.5.0
sdkBuildNumber=4220
sdkBuildNumber=4244
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import androidx.compose.ui.res.stringResource
import androidx.compose.ui.semantics.contentDescription
import androidx.compose.ui.semantics.semantics
import androidx.compose.ui.unit.dp
import com.arcgismaps.mapping.featureforms.AttachmentFormElement
import com.arcgismaps.mapping.featureforms.AttachmentsFormElement
import com.arcgismaps.mapping.featureforms.ComboBoxFormInput
import com.arcgismaps.mapping.featureforms.DateTimePickerFormInput
import com.arcgismaps.mapping.featureforms.FeatureForm
Expand Down Expand Up @@ -261,7 +261,7 @@ private fun FeatureFormBody(
)
}

is AttachmentFormElement -> {
is AttachmentsFormElement -> {
AttachmentFormElement(
state = entry.getState(),
Modifier
Expand Down Expand Up @@ -352,7 +352,7 @@ internal fun rememberStates(
states.add(element, groupState)
}

is AttachmentFormElement -> {
is AttachmentsFormElement -> {
val state = rememberAttachmentElementState(form, element)
states.add(element, state)
}
Expand Down
Loading