Skip to content

Fix 89#1231

Merged
ColinFay merged 12 commits intoThinkR-open:masterfrom
ilyaZar:fix-89
Apr 15, 2026
Merged

Fix 89#1231
ColinFay merged 12 commits intoThinkR-open:masterfrom
ilyaZar:fix-89

Conversation

@ilyaZar
Copy link
Copy Markdown
Contributor

@ilyaZar ilyaZar commented Apr 15, 2026

Fix #89

as discussed irl

ilyaZar and others added 12 commits April 14, 2026 12:55
all of them are better at semantic messaging than green_tick/red_dot
there is no need for this doubling

since the pkg func is internal and not exported there is no nameclash
replace green tick with either of

    - cli_alert_success, (looks exactly the same)
    - cli_alert_info (when an info icon conveys better the idea)

fix some typos along the way (punctuation)
- replace with alert_warning where appropriate or with alert_info
- fixed some typos
replace relevant instances with the bootstrapper cli_alert_info

fix some typos

also normalize generic file creation output
Remove the unused cli_cat_bullet() and generic cli_alert() bootstrappers.

Replace remaining user-facing bullet output with semantic cli alerts and keep
move check_cli_installed() inside do_if_unquiet() so quiet message paths do not require cli before deciding whether to print.

remove redundant do_if_unquiet() calls from higher-level cats helpers now that the lower-level cli wrappers own quiet handling.
move cats.R content to cli_msg.R to keep all user facing messaging
functions in one place

keeping them in one place will help future refactors, and avoid double
use of more or less the same type of messaging (there are some similar
messages that may be unified in the future)
this cleans up the messages:

- for files of any type (not html, css, js), there is no reason to print to the user "automatically linked"

- for downloaded/copied files, the transfer helper now owns the success message, so the follow-up dance no longer repeats the same path

- remove after_creation_message_generic(), after_creation_message_any_file(), and after_creation_message_sass() because they have no production callers after add_file/add_sass_file were routed through the internal/external file helpers

- keep Sass messaging in add_sass_file(), where the compilation hook is created, and clarify that the generated CSS file is automatically linked
@ColinFay ColinFay merged commit cd21dbc into ThinkR-open:master Apr 15, 2026
7 checks passed
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.

Put clearer (red dot ?) alerts when the user has something to change (a la usethis)

2 participants