96f24815 by Ean Schuessler

Add transitions to compact format for toolbar/row actions

Shows screen-transition actions like editMessage, messageThread in a
'transitions' array. Filters out internal actions (formSelectColumns,
formSaveFind, screenDoc, actions).
1 parent 7ae7cfe8
......@@ -1056,7 +1056,7 @@ def convertToCompactFormat = { semanticState, targetScreenPath ->
}
if (grids) result.grids = grids
// Actions with parameter hints
// Actions - service actions with parameter hints
def actionMap = [:]
actions.findAll { it.type == "service-action" && it.service }.each { action ->
def actionInfo = [service: action.service]
......@@ -1078,6 +1078,16 @@ def convertToCompactFormat = { semanticState, targetScreenPath ->
}
if (actionMap) result.actions = actionMap
// Transitions - screen navigation actions (toolbar buttons, row actions)
def transitionList = actions.findAll {
it.type == "screen-transition" &&
it.name &&
!it.name.startsWith("form") && // Skip formSelectColumns, formSaveFind
it.name != "actions" && // Skip generic 'actions'
it.name != "screenDoc" // Skip documentation link
}.collect { it.name }
if (transitionList) result.transitions = transitionList
// Navigation - only external/important links
def navLinks = data?.links?.findAll { link ->
link.type == "navigation" && link.path && !link.path.contains("?")
......