dollahane23033
dollahane23033
Explore posts from servers
TTCTheo's Typesafe Cult
Created by _-/=elusive1sTh3Byte=-\_ on 1/3/2024 in #questions
Developing a UI without a design
I follow a lot of UI guys on instagram for inspiration, sometimes I’ll see someone make a color palette I’d never use look really good
55 replies
TTCTheo's Typesafe Cult
Created by _-/=elusive1sTh3Byte=-\_ on 1/3/2024 in #questions
Developing a UI without a design
It’s actually the first time I’ve seen a wireframe, had to google it now 😂 it’s just enough UI planning for my taste
55 replies
TTCTheo's Typesafe Cult
Created by _-/=elusive1sTh3Byte=-\_ on 1/3/2024 in #questions
Developing a UI without a design
I’d definitely try doing a figma wireframe for my next contract, I landed my first one last month and it was a bit frustrating having to change things after showing the customer something. But for my personal stuff I wouldn’t bother.
55 replies
TTCTheo's Typesafe Cult
Created by _-/=elusive1sTh3Byte=-\_ on 1/3/2024 in #questions
Developing a UI without a design
If it’s a personal project it depends on your preference, if it’s for a contract then it’ll depend on the customer.
55 replies
TTCTheo's Typesafe Cult
Created by _-/=elusive1sTh3Byte=-\_ on 1/3/2024 in #questions
Developing a UI without a design
I never use figma, I tried to build a UI with it for “best practice” sake, but I found that its quicker just bringing in components from a prebuilt library. You avoid wasting time playing around with the radius of your buttons for example, I don’t care about that, I wanna build and get it done. Imo it’s more targeted for UI designers specifically who don’t code.
55 replies
TTCTheo's Typesafe Cult
Created by _-/=elusive1sTh3Byte=-\_ on 1/3/2024 in #questions
Developing a UI without a design
It’s the best!
55 replies
TTCTheo's Typesafe Cult
Created by _-/=elusive1sTh3Byte=-\_ on 1/3/2024 in #questions
Developing a UI without a design
No description
55 replies
TTCTheo's Typesafe Cult
Created by _-/=elusive1sTh3Byte=-\_ on 1/3/2024 in #questions
Developing a UI without a design
I’m pretty much the same, however at the very least I’m thinking ahead a bit with what I’d like the app to look like to some degree in my head and take notes (mostly while I’m not building). Then as I’m building the UI, I’m thinking about how it should look in more detail and what would bring the best user experience. Libraries like Shadcn make it so easy to bring components in and changing the UI on the fly.
55 replies
TTCTheo's Typesafe Cult
Created by traches on 10/20/2023 in #questions
Drizzle & Planetscale data migration workflow
I’m reading this out of interest, were you having issues updating an existing drizzle schema ?
7 replies
TTCTheo's Typesafe Cult
Created by dollahane23033 on 9/20/2023 in #questions
How to get value from Shadcn "Select" component
Heres my current code: <Select> <SelectTrigger className="w-60"> <SelectValue {...field} /> </SelectTrigger> <SelectContent className=" max-h-60 overflow-auto p-2"> {categoryItems.map((category, index) => ( <div key={index}> <hr className="mb-2"></hr> <p className="font-bold" key={category.name}> {category.name} </p> {category.subCategories.map((subs) => ( <SelectItem key={subs} value={subs}> {subs} </SelectItem> ))} </div> ))} </SelectContent> </Select>
3 replies
TTCTheo's Typesafe Cult
Created by dollahane23033 on 9/16/2023 in #questions
callbackUrl=%2F&error=OAuthAccountNotLinked
Update on this error, I seemed to have found a fix. I was using the Drizzle-Adapter from Next-Auth, which didnt seem to be working for my project. Instead I found the adapter from this repo worked: https://github.com/miljan-code/drizzle-next-auth/tree/main. I also copied the user, account and session schema just incase.
5 replies
TTCTheo's Typesafe Cult
Created by dollahane23033 on 9/16/2023 in #questions
callbackUrl=%2F&error=OAuthAccountNotLinked
"/lib/auth.ts" : import { db } from '@/src/db/index' import { eq } from 'drizzle-orm' import { DrizzleAdapter } from '@auth/drizzle-adapter' import type { NextAuthOptions } from 'next-auth' import { getServerSession } from 'next-auth' import GoogleProvider from 'next-auth/providers/google' import { users } from '../db/schema' export const authOptions: NextAuthOptions = { adapter: DrizzleAdapter(db), session: { strategy: 'jwt', }, secret: process.env.NEXTAUTH_SECRET, pages: { signIn: '/signin', }, providers: [ GoogleProvider({ clientId: process.env.GOOGLE_CLIENT_ID!, clientSecret: process.env.GOOGLE_CLIENT_SECRET!, }), ], callbacks: { async session({ token, session }) { if (token) { session.user.id = token.id; session.user.name = token.name; session.user.email = token.email; session.user.image = token.picture; } return session; }, async jwt({ token, user }) { const [dbUser] = await db .select() .from(users) .where(eq(users.email, token.email || '')) .limit(1); if (!dbUser) { if (user) { token.id = user?.id; } return token; } return { id: dbUser.id, name: dbUser.name, email: dbUser.email, picture: dbUser.image, }; }, redirect() { return '/' }, }, } export const getAuthSession = () => getServerSession(authOptions)
5 replies
TTCTheo's Typesafe Cult
Created by dollahane23033 on 9/11/2023 in #questions
Drizzle / PlanetScale Table Relations
Thanks guys! 🙏
14 replies
TTCTheo's Typesafe Cult
Created by dollahane23033 on 9/11/2023 in #questions
Drizzle / PlanetScale Table Relations
I also found this somewhere in the docs "export const db = drizzle(connection, { schema, mode: 'planetscale' });"
14 replies
TTCTheo's Typesafe Cult
Created by dollahane23033 on 9/11/2023 in #questions
Drizzle / PlanetScale Table Relations
Just wanted to see how others have done theirs.
14 replies
TTCTheo's Typesafe Cult
Created by dollahane23033 on 9/11/2023 in #questions
Drizzle / PlanetScale Table Relations
The tables were created to the db though, I havnt tried actually writting to it yet. Maybe it actually works.
14 replies
TTCTheo's Typesafe Cult
Created by dollahane23033 on 9/11/2023 in #questions
Drizzle / PlanetScale Table Relations
For testing purposes I copied the schema from this article and still got the fk constraint error.
14 replies
TTCTheo's Typesafe Cult
Created by dollahane23033 on 9/11/2023 in #questions
Drizzle / PlanetScale Table Relations
Yes I've been through those, I also checked out this article. https://planetscale.com/blog/working-with-related-data-using-drizzle-and-planetscale
14 replies
TTCTheo's Typesafe Cult
Created by dollahane23033 on 8/13/2023 in #questions
error uploading images in production, works in development
3 replies
TTCTheo's Typesafe Cult
Created by gave_one on 8/10/2023 in #questions
How do you set up T3 with Shadcn UI
I like using their template if I’m starting a new project. Everything is setup npx create-next-app -e https://github.com/shadcn/next-template
4 replies