Skip to content

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

@williambdean williambdean 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

@williambdean williambdean 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

Copy link
Collaborator

Choose a reason for hiding this comment

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

Hi @tris203, are you still interested in this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes I think it's necessary to move the snackers picker along

However, iirc when I looked the JSON/object parsing was limited to make the best benefit of it

Let me relook at where I got

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