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

Ext/GitHub smart notification #12180

Closed

Conversation

shoppingjaws
Copy link
Contributor

@shoppingjaws shoppingjaws commented May 5, 2024

Description

Github Notification Viewer

  • automatically read unnecessary notification
  • automatically read notification based on configured rule

Screencast

github-smart-notification 2024-05-05 at 17 33 09

github-smart-notification 2024-05-05 at 17 33 23

github-smart-notification 2024-05-05 at 17 34 07

Checklist

@shoppingjaws
Copy link
Contributor Author

changes

Thank you for reviewing. re-submit my PR.

  • move form view from root command into configuration view.
  • set default command path.
  • set notification view item icons sourced from repository icon

@shoppingjaws
Copy link
Contributor Author

@pernielsentikaer Updated 👍

Copy link
Collaborator

@pernielsentikaer pernielsentikaer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi 👋

I have now tested your extension, and I have some feedback ready for you:

  • If you're opening the menubar command as the first thing, then there is no data since it doesn't fetch items, maybe it should do that?

Raycast04062024-ZBKQpQxe png@2x

  • It's still possible to add a new configuration without a description

github-smart-notification 2024-06-04 at 10 04 33

github-smart-notification 2024-06-04 at 10 05 11

  • add a confirmAlert when you delete the notification and add a missing icon Icon.Trash maybe?

I'm looking forward to testing this extension again 🔥

Request a new review when you are ready. Feel free to contact me here or at Slack if you have any questions.

Comment on lines 68 to 84
{
"name": "ghCommandPath",
"title": "gh command binary PATH",
"description": "Installed Path of gh command",
"type": "textfield",
"required": false,
"default": "/opt/homebrew/bin/gh"
},
{
"name": "autoReadMergedPr",
"title": "automatically read merged PR",
"description": "if true, merged PR will be read",
"default": true,
"type": "checkbox",
"label": "checkbox",
"required": true
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{
"name": "ghCommandPath",
"title": "gh command binary PATH",
"description": "Installed Path of gh command",
"type": "textfield",
"required": false,
"default": "/opt/homebrew/bin/gh"
},
{
"name": "autoReadMergedPr",
"title": "automatically read merged PR",
"description": "if true, merged PR will be read",
"default": true,
"type": "checkbox",
"label": "checkbox",
"required": true
}
{
"name": "ghCommandPath",
"title": "gh Command Binary PATH",
"description": "Installed Path of gh command",
"type": "textfield",
"required": false,
"default": "/opt/homebrew/bin/gh"
},
{
"name": "autoReadMergedPr",
"title": "Options",
"description": "if true, merged PR will be read",
"default": true,
"type": "checkbox",
"label": "Automatically mark merged PRs as read",
"required": true
}

shortcut={Keyboard.Shortcut.Common.Open}
/>
<Action
title="Mark As Read"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
title="Mark As Read"
title="Mark as Read"

@raycastbot
Copy link
Collaborator

This pull request has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 7 days to keep our backlog clean 😊

@raycastbot raycastbot added the status: stalled Stalled due inactivity label Jun 18, 2024
@raycastbot raycastbot removed the status: stalled Stalled due inactivity label Jun 22, 2024
@shoppingjaws
Copy link
Contributor Author

@pernielsentikaer Hi, I updated.

  • add alert and trash icon to the configuration view on delete.

If you're opening the menubar command as the first thing, then there is no data since it doesn't fetch items, maybe it should do that?

  • You mean adding the loading logic, right?

@pernielsentikaer
Copy link
Collaborator

Yes, that would make sense since the command and menubar uses the same cache

@shoppingjaws
Copy link
Contributor Author

@pernielsentikaer Ive already added loading logic to the menubar.tsx.
when isLoading is set true when the state is undefined. The menubar becomes invisible while the fetching task is in progress. Isn’t this enough?

@mil3na
Copy link
Contributor

mil3na commented Jul 2, 2024

Hi! Is this ready for the next review?

@shoppingjaws
Copy link
Contributor Author

@pernielsentikaer yes, please 👍

@mil3na
Copy link
Contributor

mil3na commented Jul 4, 2024

Hi! Per is on vacation, so I will be reviewing your extension.
I wonder if this wouldn't be a better addition to the Github extension instead. https://www.raycast.com/raycast/github/commands
There, we already have a notification command, you could add a filter as a preference.
What do you think?

@shoppingjaws
Copy link
Contributor Author

@pernielsentikaer @mil3na That's good idea. Is it too late to suggest that?
I'd love to port this feature to a Github extension, but why not wait until you've released it?

@mil3na
Copy link
Contributor

mil3na commented Jul 15, 2024

The Github extension is opensource and open for contributions. Feel free to add this functionality there! I will close this PR for now :)

@mil3na mil3na closed this Jul 15, 2024
@shoppingjaws
Copy link
Contributor Author

If so, I wish you had suggested it a little earlier.

@mil3na
Copy link
Contributor

mil3na commented Jul 16, 2024

I suggested as soon as I saw and reviewed your PR :)
if you want to discuss it, please reach out on our Slack community https://raycast.com/community

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new extension Label for PRs with new extensions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants