-
Notifications
You must be signed in to change notification settings - Fork 22
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
Feat: Add social icons #48
Conversation
Someone is attempting to deploy a commit to a Personal Account owned by @RizkyRajitha on Vercel. @RizkyRajitha first needs to authorize it. |
@dubisdev impressive work 🔥 .
this is a good option , you can go ahead with this. add the basic columns for now iconClass String? @db.VarChar
linkUrl String? @db.VarChar
bgColor String? @db.VarChar
borderRadius String? @db.VarChar
accentColor String? @db.VarChar
active Boolean? @default(true)
created_at DateTime? @default(now()) @db.Timestamptz(6)
pagedata pagedata? @relation(fields: [pagedataid], references: [id]) we can adjust them later
that sound about right 👌. // ignore this Line 33 in 55217f1
// ignore this Line 44 in 55217f1
// add a save button to the form and call Line 55 in 55217f1
that will ease your workflow.
i am currently using prettier with default settings , i think that will work for now , i am hoping to add editor config with the next release . this sounds like a lot of work so take your time and work on this thanks |
id Int @id @default(autoincrement()) | ||
pagedataid Int? | ||
iconClass String? @db.VarChar | ||
displayText String? @db.VarChar | ||
linkUrl String? @db.VarChar | ||
bgColor String? @db.VarChar | ||
borderRadius String? @db.VarChar | ||
textColor String? @db.VarChar | ||
accentColor String? @db.VarChar | ||
active Boolean? @default(true) | ||
created_at DateTime? @default(now()) @db.Timestamptz(6) | ||
pagedata pagedata? @relation(fields: [pagedataid], references: [id]) | ||
orderIndex Int @default(autoincrement()) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nothing changes just linter
To-dos:
|
hi @dubisdev , it's ok if you start with basic form (without drag and reordering ) , and after successfully implementing that you can move to drag and reordering , do as you wish . |
Hey @RizkyRajitha I think this is almost done. We should try to migrate from an old database to the current one, but in principle there should be no problems :) There are a lot of new features that could be added:
When you can, try it and tell me what you think :) |
@dubisdev great work 🔥 . give me sometime to review this changes with an test with existing database and after that i will merge this pr. thanks for your contribution . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i have added some comments ,
I think everything is done! It might be positive for the scalability of the project to separate the endopints by features (/api/social, / api/pages). If it is necessary to change anything else, do not hesitate to tell me 💬 |
hi @dubisdev
yes , that would be better and less confusing , you are always welcome to open issues so it can be fixed without getting missed, give me some time to review this pr , since it is pretty big feature i have to check and also test with different scenarios before merging , so don't worry i will merge this pr as soon as every is checked . thanks for your valuable contribution 🔥 . |
Codecov Report
@@ Coverage Diff @@
## dev #48 +/- ##
===========================================
- Coverage 72.52% 45.83% -26.70%
===========================================
Files 3 3
Lines 91 144 +53
Branches 18 28 +10
===========================================
Hits 66 66
- Misses 21 69 +48
- Partials 4 9 +5
Continue to review full report at Codecov.
|
Guidelines
This pull request regarding on
Briefly describe what you did
I am thinking of definitely migrating from Linktree but I am missing a very important component: the social media icons.
At the moment I have only developed the preview using the pagelinks info, I have not touched anything in the database. I would like to know your opinion on how I should structure the data: should I create a new separate table? In my opinion it would be the best option because the icons do not have text like the other links, but I would like to know your opinion.
I was also thinking about where to create the layout for editing the links. My idea is to create another form in the formwrapper next to the links tab, called "Social". Does it seem correct?
Lastly, I would like to know which linter setting to use so as not to screw anything up :)
Appreciate your contribution to making Linkin better 🚀.