This service is now... tertulia.social!
tertulia: f. Reunión de personas que se juntan habitualmente para conversar sobre algún tema.
It's getting late and I'm out of steam, but accomplishments: domain name ✅ big Apollo Auth refactor is mostly completed also, I should soon be able to override its templates by overriding the new ApolloTemplates case class:
case class ApolloTemplates(
auth: (String, String, Option[Flash]) => Html,
forgotPassword: (String, Option[Flash]) => Html,
resetPassword: (String, Option[String]) => Html
)
object ApolloTemplates {
def defaults: ApolloTemplates = ApolloTemplates(
auth = (csrf, focus, flash) =>
html.authForm(csrf, focus, flash.map(f => (f.cssClass, f.message))),
forgotPassword = (csrf, flash) =>
html.resetRequestForm(csrf, flash.map(f => (f.cssClass, f.message))),
resetPassword = (csrf, error) => html.changePasswordForm(csrf, error)
)
}
object Apollo {
def apply[F[_], U, I, E](
config: ApolloConfig[F],
services: ApolloServices[F, U, I, E]
): Apollo[F, U, I, E] = Apollo(config, ApolloTemplates.defaults, services)
}
I fixed a few bugs also where POSTs to Apollo endpoints would render immediately instead of redirect to GETs on error.
🎉