Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add gallery of pal extensions #53

Merged
merged 4 commits into from
Oct 30, 2024
Merged

add gallery of pal extensions #53

merged 4 commits into from
Oct 30, 2024

Conversation

simonpcouch
Copy link
Owner

Closes #45. Opted to go for a lighter-weight approach than the ones I had tossed around in the issue.

Copy link
Owner Author

@simonpcouch simonpcouch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As-is:

gallery.mov

vignettes/gallery.Rmd Show resolved Hide resolved

gallery$description <- sapply(gallery$description, commonmark::markdown_html)

DT::datatable(gallery, escape = FALSE)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it'd be awesome to use gt + shinylive here to use gt::render_gt() but I couldn't quite figure out how to get pkgdown to play nicely with that output.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh, apologies, I'm the wrong person for technical input on this one 🏄‍♀️

# multiple pals, include a row for each pal.
gallery <-
tibble::tribble(
~description, ~role, ~interface, ~type,
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this all relevant information to include? Am I missing anything key?

Ideas I had tossed around were 1) automatic generation of the prompt_new() code, 2) author, or 3) tags.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't find the type column all that informative. What I do think would be very good to have is a column with "Use it via" information, so a minimal piece of code that you can c+p into your console and get going. For markdown files like mine, it would be prompt_new() but with the right URL (which needs to be the raw md content, not the github rendered page). For an extension package, it would be install.packages() or pak::pak(), with right name or user/repo info. Given that the URL for my markdown thing is rather long: a copy to clipboard button would be sooo nice, especially if that allowed you to hide the long URL somehow.

I don't think you need tags yet, I would revisit that once you feel you need it.

Re author: you/me as a user can live without it but since you would like to give visibility and encourage participation, I would add it.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much, @hfrick. :) Made all of your suggestions besides copy to clipboard—still trying to figure that one out but I think it's such a good idea.

@simonpcouch simonpcouch requested a review from hfrick October 30, 2024 16:28
Copy link
Collaborator

@hfrick hfrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a good balance for where the project is at the moment and the nearer future. Once things get busier and the list gets longer, you can always adjust but right now, I'd view that as a serious risk of over-engineering. So yay for being pragmatic!

# multiple pals, include a row for each pal.
gallery <-
tibble::tribble(
~description, ~role, ~interface, ~type,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't find the type column all that informative. What I do think would be very good to have is a column with "Use it via" information, so a minimal piece of code that you can c+p into your console and get going. For markdown files like mine, it would be prompt_new() but with the right URL (which needs to be the raw md content, not the github rendered page). For an extension package, it would be install.packages() or pak::pak(), with right name or user/repo info. Given that the URL for my markdown thing is rather long: a copy to clipboard button would be sooo nice, especially if that allowed you to hide the long URL somehow.

I don't think you need tags yet, I would revisit that once you feel you need it.

Re author: you/me as a user can live without it but since you would like to give visibility and encourage participation, I would add it.


gallery$description <- sapply(gallery$description, commonmark::markdown_html)

DT::datatable(gallery, escape = FALSE)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh, apologies, I'm the wrong person for technical input on this one 🏄‍♀️

* remove "type" column
* add "Use it via..." and "author" columns
@@ -27,8 +27,7 @@ Imports:
rstudioapi,
shiny
Suggests:
commonmark,
DT,
gt,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did I introduce a buglet here that I'm not noticing? Or you're just observing the change?😄

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still trying to make the "Copy to clipboard" change happen, and it seems like gt may be a better candidate as the tool to do so.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, sorry, that was not a critical side eye, that was just me trying to say "you made it happen!" 😆

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hahahahaha nice!

gave up on copying to clipboard for now :/
@simonpcouch simonpcouch merged commit eed7d98 into main Oct 30, 2024
11 checks passed
@simonpcouch simonpcouch deleted the gallery-45 branch October 30, 2024 21:35
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.

central place to make pal extensions visible
2 participants