-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and rename EditActionUnique.md to EditActionHasUniqueTask.md
- Loading branch information
1 parent
7e12035
commit c2414cd
Showing
2 changed files
with
45 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.