Skip to content

Conversation

@SilasMarvin
Copy link
Contributor

No description provided.

});

impl Star {
pub fn new<S: ToString, I: Into<Option<S>>>(color: &str, content: S, id: I) -> Star {
Copy link
Contributor

Choose a reason for hiding this comment

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

I discovered this the other day:

fn something(content: impl ToString)

Seems cleaner than a generic notation.

@@ -0,0 +1,13 @@
import { Controller } from '@hotwired/stimulus'
Copy link
Contributor

Choose a reason for hiding this comment

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

You can delete empty controllers, bundle just won't include them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes I just removed this!

toastElement.setAttribute('role', 'alert');
toastElement.setAttribute('aria-live', 'assertive');
toastElement.setAttribute('aria-atomic', 'true');
const toastElement = document.createElement("div");
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you have a linter we could all install? It would be nice to have one tbh...

Copy link
Contributor Author

@SilasMarvin SilasMarvin Oct 5, 2023

Choose a reason for hiding this comment

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

I use prettier for javascript. I can setup a prettier configuration for our repos that will avoid things like this, but I'll also look into setting up eslint.

Copy link
Contributor

Choose a reason for hiding this comment

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

Please yeah, any one of them works, as long as it's easy to use.

glob = "*"
pgml-components = { path = "../packages/pgml-components" }
reqwest = { version = "0.11.20", features = ["json"] }
pgml = { version = "0.9.2", path = "../pgml-sdks/pgml/" }
Copy link
Contributor

Choose a reason for hiding this comment

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

Love monorepos! Things are just easier.

@SilasMarvin SilasMarvin merged commit 82fcbd4 into master Oct 5, 2023
@SilasMarvin SilasMarvin deleted the silas-chatbot-page-new branch October 5, 2023 18:56
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.

3 participants