Minor cleanup and add KeyboardAvoidingView to global search.

This commit is contained in:
Patrick Fic
2025-10-29 10:22:31 -07:00
parent 9c5ee8ed16
commit 0ae416cc90
12 changed files with 129 additions and 51 deletions

View File

@@ -124,7 +124,7 @@ const NewNoteModal = ({
type: values.type,
created_by: currentUser?.email,
};
console.log("*** ~ handleSubmit ~ noteInput:", noteInput);
// TODO: If backend supports attaching note to multiple related ROs, perform additional mutation(s)
// here after creating the base note. This may involve an insert into a join table like note_jobs.
// values.relatedros contains boolean flags keyed by job id.
@@ -272,7 +272,12 @@ const NewNoteModal = ({
{ paddingBottom: Math.max(insets.bottom, 12) },
]}
>
<Button onPress={onDismiss} mode="text">
<Button
onPress={onDismiss}
mode="text"
disabled={loading}
icon="close"
>
{t("general.actions.cancel")}
</Button>
<Button
@@ -280,6 +285,7 @@ const NewNoteModal = ({
mode="contained"
loading={loading}
disabled={loading || !values.text.trim()}
icon="plus"
>
{existingNote
? t("general.actions.save")
@@ -361,6 +367,7 @@ const styles = StyleSheet.create({
flexDirection: "row",
justifyContent: "flex-end",
marginTop: 16,
gap: 12,
},
scrollContent: {
// paddingBottom: 24,