v0.7.0
-
@lowdefy/modules-mongodb-contacts: ### Patch Changes
-
#67
7d05a46Thanks @Saiby100! - Fixcontact-selectorvalidation reading from the wrong state path.The
passrule was looking up state atid | replace(".", "_"), but state is bound at the dottedid. For nested IDs (e.g.contact.user), validation always sawnulland failed/passed incorrectly. Uses the rawidfor both_statelookups now. -
@lowdefy/modules-mongodb-files: ### Minor Changes
-
#67
e21af13Thanks @Saiby100! -filesmodule — fixes and enhancements tofile-managerandfile-list:Var forwarding (fix)
file-managerwas not forwardingentity_type,entity_id, andfile_categoryvars into its nested_refs forupload-policy.yamlandget-entity-files.yaml. Without forwarding, those build-time_vars resolved tonull, so:get_entity_filesmatched on{ collection: null, doc_id: null }and always returned an empty list — uploaded files were never displayed.upload-policygenerated S3 object keys prefixed withnull/instead of the entity type.
The
file-cardwrapper passed vars in correctly; the bug only affected consumers that referencedfile-managerdirectly (or any indirect usage, sincefile-cardre-_refs it).file-listhad the same missing forwarding and is also fixed.Unique request ids per block (fix)
download-policyandget-entity-filesrequest ids are now suffixed withblock_id(matching the existingupload-policypattern). Previously bothfile-managerandfile-listdeclared these requests with hardcodeddownload_policyandget_entity_filesids, so using both components on the same page caused duplicate request id build errors.Download policy payload (fix)
download-policynow readskeyandcontent_typefrom the S3 event (_event: file.key,_event: file.type) instead of unrelated state keys.file-listitem rendering (fix)Replaced the undefined
_array_indicesoperator with_state: <list_id>.$.<field>so list children read the current item from state. Added aSetStatetoonMountthat seeds the list's state key from the request result.onSave/onDeleteextension (feat)file-managernow acceptson_saveandon_deletevars (arrays of actions, default[]) appended after the built-insave_file_metadata/delete_file+refresh_filessequences.file-cardforwards both vars through.Soft-delete field rename (breaking)
The soft-delete field on file docs is now
removed(matching hydra) instead ofdeleted. Affectssave-file,delete-file, andget-entity-files. Existing data withdeleted: trueneeds a migration:db.files.updateMany({ deleted: { $exists: true } }, { $rename: { deleted: 'removed' } })