Skip to content
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

Support for generating AI based summaries for repository activities in the past week #543

Open
rithviknishad opened this issue Nov 13, 2024 · 5 comments

Comments

@rithviknishad
Copy link
Member

rithviknishad commented Nov 13, 2024

Enter your suggestions in details:

Few things in mind that could be included in summary:

  1. Summary of PRs merged (changelog?)
  2. Summary of issues opened
  3. Showcase / highlight works by new contributors

(feel free to come up with more ideas)

This could be shown in the home page if the AI's API keys are configured in env.

cc: @nihal467

@pooranjoyb
Copy link
Contributor

Can I try this out @rithviknishad?

@pooranjoyb
Copy link
Contributor

Any update on this? @rithviknishad

@rithviknishad
Copy link
Member Author

Hey @pooranjoyb

Would love to hear how you are planning to build this out before you code it out. Along with that wireframes also would be appreciated.

@pooranjoyb
Copy link
Contributor

Hey @rithviknishad I thought for a while and I'm here with 2 ideas, lemme pitch 'em for you :

1. Redirection to a new page/route ➡ /summary

  • So as you mentioned we need to summarize the opened issues and merged PRs, we can achieve them using Gemini 1.5 Flash
  • As we already have the data from the api, we can just use regex to filter out the necessary PRs and Issues (say most recent ones - 10 issues/PRs)
  • Further the filtered array of Issues and PRs (if possible with their descriptions - advanced), we hit the Gemini API
  • Then this fetched responses can be used to render them in the UI. (Of course we'll also have to format it)

This Click here link will take us to new route
Image

It may look something like this.

⚠ To maintain the consistency I refactored the Discussions UI for this Summary Page.

Image

Icons can vary depending on Issues/PRs etc.

2. Not using a separate page

  • According to what you mentioned, we can also replace the content in the Home Page and then populate it with the summaries.
  • This is because we ultimately get the same thing in the Feed also, so we can also show this entire summary thing in the Home Page and the More button of course takes us to the Feed.

Image

Image

Well, this is what I thought of doing, do lemme know your thoughts on this! <3
Here is the Figma link for your reference.

https://www.figma.com/design/YZyB51kDMXmQa0HPLsQi8d/draft-design-idea-leaderboard-ohn?node-id=0-1&node-type=canvas&t=cd23EytisLd4a6Mk-0

@rithviknishad

@pooranjoyb
Copy link
Contributor

Any thoughts on this @rithviknishad ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants