Closed Martinsos closed 1 month ago
@sodic @infomiho you pplz are right! I didn't want to go too much into design for two reasons:
But the idea you pplz mentioned, I have been thinking about it while coding this also. And it is a better, more scalable way to do stuff like this. So ideally, instead of pushing messages like this into the generated code, we would have some kind of a visual thing in the app itself that is able to display warnings / error and similar.
Solution could be whole wasp studio
, that runs in another tab, with logs, messages, app overview, ... . But that is far away, and would still not be enough "in your face". So while I think we should have that in some way, it wouldn't solve this particular problem of informing them right now.
What would be faster and possibly complimentary solution is something that is our dev tool thing that is rendered as part of the app, and shows warnings, errors, ... . I wrote about this some time ago here: https://github.com/wasp-lang/wasp/issues/250#issuecomment-1699037784 , idea was some kind of small popover that communicates basic stuff. This is probably similar to the Astro's dev toolbar @infomiho (I haven't used Astro)?
Ok, so I suggest following then:
This will be an interesting experiment that will quickly bring value, and later as Wasp Studio evolves, we can figure out how to make those two work together or merge them.
@Martinsos Perhaps it's enough for now if we had a message pop up in the corner of the screen for all the dev stuff (that's pretty popular these days). Tell me if you don't know what I'm referring to (@infomiho will probably know what it's called).
Before we tackle wasp dev tools, wasp studio and whatnot.
@sodic I believe this "dev toolbar" could be simple to pull off, so maybe it makes sense to go with it instead of a detached effort of adding some sort of a toast 👇
https://github.com/vallezw/sonner/assets/50796600/59b95cb7-9068-4f3e-8469-0b35d9de5cf0
Seems to me @sodic @infomiho like we are talking about the same thing in different ways hm, but aren't we all proposing the same? Add a very simple mechanism, for start, to show dev messages in their app while they are developing it? It just has to be made in such way that it is clear it is our "dev" thing.
So if we indeed agree about this, then I would do as I suggested above:
@infomiho @Martinsos I can confirm I was talking about the very thing Miho's video shows. Simple popup messages in the corner.
I have no idea why that's called a toolbar as it has nothing to do with either tools or bars. Developers naming things, I guess :sweat_smile:
Closing, I instead opened https://github.com/wasp-lang/wasp/issues/2059 to implement simple wasp dev toolbar.
This PR was inspired as a possible solution to https://github.com/wasp-lang/open-saas/issues/137 -> give it a read, it is important for the context.
Result is this, upon successful signup:
I could have added the same thing for other email auth forms (password reset, ...) but felt that might be a bit much.
I am not even sure about this. It seems to me like it will help people on the happy path, when they are creating their first account, and can't find that email in the email. Solution can also be just making it clearer in the docs, putting warnings about it in the right place, and that might be enough. For example, once they are ready to start doing something with their open-saas app, we can mention in the guide that Dummy provider is used and they will not receive emails.
But I wanted to try this. At the end, this is the best way to inform the dev.
The problem is, there are other situations where Dummy provider might surprise them, e.g. if job is sneidng email or something. And we have no warning in that case. We just can't in every case inform them about this. Nor should we , it would be annoying. So I though ok, this is "entry point" and likely if they will get confused, it will happen here, so we can teach them here.
I am ok with dropping this PR if we conclude it is more harm then good, but if others like it, we can merge it.