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

feat(snacks): async notifications #862

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tris203
Copy link
Contributor

@tris203 tris203 commented Feb 16, 2025

Describe what this PR does / why we need it

Makes the notifications picker use the async system properly

This might need some iteration, the snacks picker doesn't really work with json very well

- Refactored the notifications picker to use a new approach with `gh.run`.
- Removed redundant code and streamlined the process of fetching and displaying
  notifications.
- Improved the transformation and formatting of notification items.
Comment on lines +151 to +153
if opts.return_args_only then
return opts.args
end
Copy link
Collaborator

@wd60622 wd60622 Feb 21, 2025

Choose a reason for hiding this comment

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

Maybe the function should be broken into two.

  • Creating the args
  • running the command

gh.run with return_args_only seems confusing.

Thoughts?

Copy link
Collaborator

@wd60622 wd60622 Feb 21, 2025

Choose a reason for hiding this comment

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

Plus this would making debugging / testing a lot easier if we can just swap out
gh.run with gh.create_args but have the same signature / similar

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

Successfully merging this pull request may close these issues.

2 participants