Skip to content

refactor: use client->action in 19 demo apps#619

Merged
oblomov-dev merged 1 commit into
standardfrom
claude/brave-goodall-FMD0W
May 22, 2026
Merged

refactor: use client->action in 19 demo apps#619
oblomov-dev merged 1 commit into
standardfrom
claude/brave-goodall-FMD0W

Conversation

@oblomov-dev
Copy link
Copy Markdown
Member

Summary

Replaces 23 client->follow_up_action( client->_event_client( … ) ) nested calls with the new client->action( … ) shortcut across 19 demo apps.

  • Net -18 LOC, no behavioural change
  • Raw-JS follow_up_action calls in src/99/* are intentionally left as-is — they don't fit the new event-only API

Dependency

Requires abap2UI5/abap2UI5#2279 (adds z2ui5_if_client~action). abaplint in this repo pulls the framework from the default branch, so it will report Method "action" not found until that PR is merged to main.

Example

" before
client->follow_up_action(
    client->_event_client(
        val   = z2ui5_if_client=>cs_event-set_title
        t_arg = VALUE #( ( title ) ) ) ).

" after
client->action(
    val   = z2ui5_if_client=>cs_event-set_title
    t_arg = VALUE #( ( title ) ) ).

Test plan

https://claude.ai/code/session_01GaCj1cQU8kZRRmkL7qno6A


Generated by Claude Code

…nt())

23 call sites across 19 demo apps replaced. The new action API is a
drop-in shortcut: pass the event name (and optional t_arg) directly
instead of nesting _event_client inside follow_up_action. Net -18 LOC,
no behavioural change. Raw-JS follow_up_action calls (src/99/...)
remain unchanged.

abaplint will report "Method action not found" until the abap2UI5
framework branch (claude/brave-goodall-FMD0W) is merged to main, since
the dependency clone resolves the framework's default branch.

https://claude.ai/code/session_01GaCj1cQU8kZRRmkL7qno6A
@oblomov-dev oblomov-dev merged commit 6519e01 into standard May 22, 2026
2 of 6 checks passed
@oblomov-dev oblomov-dev deleted the claude/brave-goodall-FMD0W branch May 22, 2026 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants