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

Feature: add PR to highlights from the extension #88

Closed
2 tasks done
a0m0rajab opened this issue May 18, 2023 · 17 comments · Fixed by #101
Closed
2 tasks done

Feature: add PR to highlights from the extension #88

a0m0rajab opened this issue May 18, 2023 · 17 comments · Fixed by #101

Comments

@a0m0rajab
Copy link
Contributor

Type of feature

🍕 Feature

Current behavior

it would be gerat to have an auto add option for PRs/issues to the extension where it will be not let the user move to the highlight page, or at least open highlight page with the PR information loaded (as first step)

Suggested solution

No response

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Contributing Docs

  • I agree to follow this project's Contribution Docs
@bdougie
Copy link
Member

bdougie commented May 18, 2023

This is a contribution that will need to be made on open-sauced/insights.

We can leverage ?query params. Pretty straight forward with the next router. Did you want to try it out there?

@a0m0rajab
Copy link
Contributor Author

I was thinking about something similar to Google Keep extension, where you click on it and it allows you to post it to your account from the extension without the need to open the website.
Keep extension screenshot

But your idea is less complex to apply I think, we can use it as a bookmark similar to the YC logic:

javascript:window.location="https://news.ycombinator.com/submitlink?u="+encodeURIComponent(document.location)+"&t="+encodeURIComponent(document.title)

@bdougie
Copy link
Member

bdougie commented May 18, 2023

This is also possible and a better user experience. We have an endpoint in https://api.opensauced.pizza for creating highlights

@a0m0rajab
Copy link
Contributor Author

a0m0rajab commented May 18, 2023

I will work on it. Might ship the first draft in a day or two. it will let me get familiar with the extension code as well :)

@a0m0rajab a0m0rajab self-assigned this May 18, 2023
@bdougie
Copy link
Member

bdougie commented May 18, 2023

Here is a screenshot of the giphy for github experience

Screen Shot 2023-05-18 at 2 49 40 PM

@a0m0rajab
Copy link
Contributor Author

a0m0rajab commented May 18, 2023

Do you prefer to have it in the comment section or the extension itself, I was thinking about a button: add to highlight.
after pressing the button I was thinking about showing a form with the: title, desc, and link.
example UI

@bdougie
Copy link
Member

bdougie commented May 18, 2023

It should be a pencil, similar to AI PR description option. I question if the Highlight is needed and if this could replace that. Especially if the feed will be viewable in the extension #78.

Screen Shot 2023-05-18 at 4 11 18 PM

@a0m0rajab
Copy link
Contributor Author

Sure, i will use the pencil, I was thinking about paper plane but this might be used for the send button.
image

@a0m0rajab
Copy link
Contributor Author

This is related to #12 and #64

@a0m0rajab
Copy link
Contributor Author

The main page,
image

The post on the highlight page:
image

I wanted to use the OG data to add the link on the post on highlight page but did not figure how to do that, I might check insights project to get some ideas from there. If I cant figure that out, I will add an input to add a link through it.

@a0m0rajab
Copy link
Contributor Author

@takanome-dev
Copy link

The main page, image

The post on the highlight page: image

I wanted to use the OG data to add the link on the post on highlight page but did not figure how to do that, I might check insights project to get some ideas from there. If I cant figure that out, I will add an input to add a link through it.

Looking good so far @a0m0rajab👍 At this point, I think you can open a draft pr and add these screenshots to the pr visual changes section 😃

@bdougie
Copy link
Member

bdougie commented May 22, 2023

Highlights need to be associated to a pull request and we now have a way to generate highlight messages.

This addition should include a way to reference the pr for the highlight. Add a highlight option should only show while a pull request is being viewed.

@a0m0rajab a0m0rajab mentioned this issue May 22, 2023
19 tasks
@a0m0rajab
Copy link
Contributor Author

Thank you for the comment @takanome-dev opened a PR,
@bdougie I did this as a page right now, I can add the logic you mentioned.
I followed the keep design right now, but might change it to giphy if it's needed.

@a0m0rajab
Copy link
Contributor Author

This is also possible and a better user experience. We have an endpoint in https://api.opensauced.pizza for creating highlights

Example usage for reference: https://github.com/open-sauced/insights/blob/e083ea541c78d0e992d989eda942f3d50bbac980/lib/hooks/createHighlights.ts#L23

@diivi diivi moved this to In Progress in Extension Status Board May 26, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in Extension Status Board May 29, 2023
@github-actions
Copy link

🎉 This issue has been resolved in version 1.3.1-beta.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions
Copy link

github-actions bot commented Jun 3, 2023

🎉 This issue has been resolved in version 1.4.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging a pull request may close this issue.

3 participants