-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
New Contributors Page for Twenty Website #3365
Comments
@Bonapara ofcourse not |
Note part of the work for this has already been done (pages already exist) so this is mostly about frontend / UI. |
@Bonapara @FelixMalfait |
@Kanav-Arora the backend logic is mostly there already. We do a full copy of Github's data to a SQLite database in Next.js. We display every PR that has been done by that user on each user profile. |
@FelixMalfait, @Bonapara Can I work on this? Since backend is ready, I'm up for developing the frontend. |
Hi @i-am-chitti |
Thanks Deepak! I assigned you / feel free to collaborate with Kanav of course |
For the backend you need to hit the /generate endpoint first to fill the SQLite DB with Github data |
@Kanav-Arora, thanks for offering the help. At the moment, I've decided to tackle this task independently. However, I'll definitely reach out if I find myself needing assistance in the future. Thanks again for your support! |
@FelixMalfait, please confirm and clarify some doubts -
|
@FelixMalfait, could you please have a look at this comment - #3365 (comment) . Will need confirmation for a GO AHEAD! |
Oh sorry I had missed your comment @i-am-chitti
yes
yes it's not the cleanest but I wanted to start with something quick and simple. Just make sure you use prepared statements where variables are substituted by the package and not do concatenation yourself to avoid SQL injection.
The navbar and footer are actually in
The idea is to have a developer hub where we'd group docs + contributors + blog with technical articles. |
@Bonapara, for background filter with gradient, there is already a gradient present on |
Hi @FelixMalfait @Bonapara |
@i-am-chitti yes good catch, we want the same gradient! @Kanav-Arora Not sure what you mean? Each PR item in the list should redirect to its respective PR on Github. But maybe I didn't understand what you said |
@FelixMalfait , Can't see any DB field dedicated to them on any table. Also, merged PR count here is same as the number of pull request rows whose |
@i-am-chitti I was thinking we could compute the rank on the fly. I'm not sure if it needs to be cached in a column, as long as we don't have hundreds of contributors and not thousands performance should probably be okay! Just asked ChatGPT to provide a request, it looks okay to me but I did not test it!
Yes Thanks! |
@FelixMalfait , for some reason, the above query is giving error - After casting proper types of
I'm not able to grasp the logic for computing the rank. Could you tell the logic? I'll write down the SQL query as above AI's query is wrong, 🤔 . |
@i-am-chitti So you need to wrap that within another SQL query to apply the WHERE, e.g. Active Days logic should reflect the number of colored dots in the Activity section. Also I think we want to entirely filter out core team members from everything (also when computing ranking), we'd filter this out with isEmployee=false |
Hey @FelixMalfait, The PR - #3745 is ready for review four days ago. I missed informing here. |
@FelixMalfait @i-am-chitti |
Scope
We aim to highlight our contributors on the Twenty website. We'll develop a webpage featuring each contributor's picture and a dedicated page showcasing their work, including latest pull requests, activity, and other key information.
Desired behavior
Index
Ensure to add a box shadow on image hover: (and use cursor:pointer;)
Screen.Recording.2024-01-11.at.09.58.37.mov
Implement Desktop and Mobile modes. Adjust font size and padding for Mobile mode:
https://www.figma.com/file/aNpCjwN9wg2DqLWAHPS0ll/%F0%9F%8C%8D-Website?type=design&node-id=1-4175&mode=design&t=DOFln1l9kC95T2pW-11
Show page
Implement both desktop and mobile versions of the show page. Link the Github icon to the contributor's profile. Calculate rank based on merged PR count. Replicate the activity graph function from Github.
Navbar
Create a navbar component for both desktop and mobile, mirroring Twenty.com's Framer-developed version. Ensure a transition exists between open and closed states on mobile:
Screen.Recording.2024-01-11.at.10.13.58.mov
Background Pattern
Pattern:
(Compressed to maintain file quality)
Patterns.zip
Here is the code used on Framer to implement the background pattern:
The typical parameters were:
Rotation: -16°
Gradient Rotation: 185°
Technical input
Some work has already be done on the subject. Check:
https://github.com/twentyhq/twenty/tree/main/packages/twenty-website/src/app/developers/contributors
And the API:
packages/twenty-website/src/app/developers/contributors/api/generate/route.tsx
Figma
https://www.figma.com/file/aNpCjwN9wg2DqLWAHPS0ll/%F0%9F%8C%8D-Website?type=design&node-id=5-4946&mode=design&t=DOFln1l9kC95T2pW-11
@Kanav-Arora I hope you don't mind that I used your username as an example ;)
The text was updated successfully, but these errors were encountered: