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(astral-ruff): Minimal response and ephemeral expand #70

Merged
merged 2 commits into from
Feb 28, 2024

Conversation

Alc-Alc
Copy link
Collaborator

@Alc-Alc Alc-Alc commented Feb 28, 2024

Pull Request Checklist

  • New code has 100% test coverage
  • (If applicable) The prose documentation has been updated to reflect the changes introduced by this PR
  • (If applicable) The reference documentation has been updated to reflect the changes introduced by this PR
  • Pre-Commit Checks were ran and passed
  • Tests were ran and passed

Description

Close Issue(s)

Copy link

railway-app bot commented Feb 28, 2024

This PR was not deployed automatically as @Alc-Alc does not have access to the Railway project.

In order to get automatic PR deploys, please add @Alc-Alc to the project inside the project settings page.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

PR Type: Enhancement

PR Summary: This pull request introduces changes aimed at optimizing user interaction within the astral module of the application. Specifically, it modifies the behavior of response messages and the handling of interactive buttons. The changes include sending a minified version of an embed as the initial response and altering the functionality of an expand button to send a new ephemeral message instead of editing the existing message. Additionally, it simplifies the handling of button interactions by removing unnecessary parameters.

Decision: Comment

📝 Type: 'Enhancement' - not supported yet.
  • Sourcery currently only approves 'Typo fix' PRs.
✅ Issue addressed: this change correctly addresses the issue or implements the desired feature.
No details provided.
✅ Small diff: the diff is small enough to approve with confidence.
No details provided.

General suggestions:

  • Consider the impact of these changes on the user experience, especially the switch from editing an existing message to sending a new ephemeral message for expanded information. Ensure this aligns with user expectations and the overall design of the application.
  • Review the removal of the expand button callback and its replacement with the learn more button to ensure that this new approach provides a clear and intuitive user interface.
  • Assess the broader implications of these changes on the application's interaction patterns, particularly in terms of consistency across different modules or components that might offer similar functionalities.

Thanks for using Sourcery. We offer it for free for open source projects and would be very grateful if you could help us grow. If you like it, would you consider sharing Sourcery on your favourite social media? ✨

Share Sourcery

Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

src/byte/views/astral.py Outdated Show resolved Hide resolved
@JacobCoffee JacobCoffee merged commit 56203b1 into ruff-rule-buttons Feb 28, 2024
2 of 3 checks passed
@JacobCoffee JacobCoffee deleted the ephemeral-long-reply branch February 28, 2024 19:36
JacobCoffee added a commit that referenced this pull request Feb 29, 2024
* feat: add buttons to ruff rule embed

* fix(astral-ruff): Fix "This interaction failed" and added type hints (#69)

Co-authored-by: Alc-Alc <alc@localhost>

* feat(astral-ruff): Minimal response and ephemeral expand (#70)

* feat(astral-ruff): Minimal response and ephemeral expand

* Update src/byte/views/astral.py

---------

Co-authored-by: Alc-Alc <alc@localhost>
Co-authored-by: Jacob Coffee <jacob@z7x.org>

---------

Co-authored-by: Alc-Alc <alc@localhost>
Co-authored-by: Alc-Alc <45509143+Alc-Alc@users.noreply.github.com>
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