Jasonette / Jasonette/JASONETTE-iOS

Change the "head" "actions" attribute to "events"?

Open
#32 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.2k
Forks
347
PR merge metrics
No merged PRs in 30d

Description

The "$jason" > "head" property (I don't know the terms for these entities, sorry) contains a property named **actions**. It describes events that Jasonette handles. I suggest the name for this property be restored to **events**. This is more in line with standard terminology and reduces confusion with the term **action**, which is of course the code triggered by an event. So it would look like this:

````

"$jason": {
"head": {
"events": {
"refresh_view": {
"type": "$network.request",
"options": {
"url": "https://jasonbase.com/things/jYJ.json"
},
"success": {
"type": "$render"
}
}
},
...
}
````

Contributor guide

Open the contributing guide

Research direction

Start by locating handling of the "$jason" > "head" > "actions" property and the related configuration examples. Determine all places that rely on this name, then verify that the proposed "events" name is handled consistently and that the example configuration works.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.