Skip to content

fix(*): verb-first server actions, noun-first constructors - #234

Open
nteetor wants to merge 3 commits into
mainfrom
fix-rename-server-verbs
Open

fix(*): verb-first server actions, noun-first constructors#234
nteetor wants to merge 3 commits into
mainfrom
fix-rename-server-verbs

Conversation

@nteetor

@nteetor nteetor commented Sep 2, 2026

Copy link
Copy Markdown
Owner

Implements the OpenSpec change rename-server-verbs (epic yonder-9dt), applying the naming rule from yonder-9vy: server-side actions are verb-first, UI constructors and readers are noun-first, following bslib's convention (rstudio/bslib#706). The collapse panel already followed it (#233); this brings the rest of the package in line.

Breaking changes (no deprecation shims — the package is a reboot):

  • modal_show() / modal_hide()show_modal() / hide_modal()
  • file_upload_start() / file_upload_cancel()start_file_upload() / cancel_file_upload(); the four file_upload_*() readers keep their names and now own the ?file_upload help page, with the two verbs joined by @rdname
  • update_menu_input()update_menu()
  • modal_toggle()modal_button() (it is a trigger button, not an action)
  • modal_close()modal_close_icon(), modal_dismiss()modal_close_button(); text is now label, and all three close constructors pass ... on as attributes of the button element (modal_dismiss() silently dropped ...)
  • alert_button()alert_close_icon()

Wire protocol is unchanged (bsides:modalShow/bsides:modalClose, upload_start/upload_cancel); the bundles are rebuilt only because file.ts comments name the R verbs. NEWS carries one breaking-changes bullet listing every rename.

Also adds openspec/specs/function-naming/spec.md, which records the contract so future components follow it, and archives the change.

Verification: devtools::check() 0 errors / 0 warnings / 0 notes; devtools::test() 505 pass; repo-wide grep finds no old name outside NEWS and the archived change.

🤖 Generated with Claude Code

nteetor and others added 3 commits September 2, 2026 12:29
Rename modal_show()/modal_hide() to show_modal()/hide_modal(),
file_upload_start()/file_upload_cancel() to start_file_upload()/
cancel_file_upload(), and update_menu_input() to update_menu().
modal_toggle() becomes modal_button(), modal_close() becomes
modal_close_icon(), modal_dismiss() becomes modal_close_button() with
label in place of text, and alert_button() becomes alert_close_icon();
the three close constructors pass ... on as button attributes. The
file_upload readers now own the ?file_upload page with the two verbs
joined by @Rdname. No deprecation shims. Bundles rebuilt for the file.ts
comments that name the verbs.

Co-Authored-By: Claude <[email protected]>
The function-naming capability records the noun-first constructor and
verb-first action contract, the verb vocabulary, and the no-alias rule
for renames.

Co-Authored-By: Claude <[email protected]>
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.

1 participant