Skip to content

Commit

Permalink
Update and rename EditActionUnique.md to EditActionHasUniqueTask.md
Browse files Browse the repository at this point in the history
  • Loading branch information
e-marchand authored Dec 30, 2023
1 parent 7e12035 commit c2414cd
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 41 deletions.
45 changes: 45 additions & 0 deletions docs/EditActionHasUniqueTask.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# EditActionHasUniqueTask

> [!CAUTION]
> Not released, just a specification
- The purpose is to make any task for an action with the preset `edit` to be unique :
- If offline, an edit could be in pending task
- If launch a new edit, instead of creating a new task, the one in pending task will be opened
- so data already filled will be displayed
- and when validating, just register new data, waiting to network to come back

# Setting to activate the feature

## MobileProject

> 🚧 how to inject inside mobile app for new projet? (have a boolean inside mobileapp file, and "4d mobile app" + android project generator must do the following edit
## Android

Inside `app/src/main/assets/appInfo.json`

```json
"action.edit.hasUniqueTask": true
```

## iOS

Inside `Settings/Settings.plist`

```xml
<key>action.edit.hasUniqueTask</key>
<true/>
```

## If we want to go further

> :bulb: We could imagine have some definition by action, not only "edit" one. For that for instance a new boolean `hasUniqueTask` could be in the future added to the action json (or if we have time)
### for iOS

in storyboards definition inside `userDefinedRuntimeAttribute`

### for android

Inside `app/src/main/assets/actions.json` by action
41 changes: 0 additions & 41 deletions docs/EditActionUnique.md

This file was deleted.

0 comments on commit c2414cd

Please sign in to comment.