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

Commented out Bluesky alt text line #651

Merged
merged 1 commit into from
Mar 13, 2025
Merged

Conversation

FoamToaster
Copy link

@FoamToaster FoamToaster commented Mar 12, 2025

Commented out the Bluesky alt text line for now until there is a way to set this from within Postiz.

What kind of change does this PR introduce?

Bug fix

Why was this change needed?

Current code assigns alt text 'image' to every uploaded image. Presence of alt text adds bars/empty space above and below the posted image and when the image is clicked on the word 'image' is visible at the lower left. Absence of alt text fixes this problem. There does not seem to be a way to edit/disable the alt text from within Postiz so have commented it out for now (commented out rather than deleted as I presume this feature might be implemented at some point).

Other information:

Checklist:

Put a "X" in the boxes below to indicate you have followed the checklist;

  • I have read the CONTRIBUTING guide.
  • I checked that there were not similar issues or PRs already open for this.
  • This PR fixes just ONE issue (do not include multiple issues or types of change in the same PR) For example, don't try and fix a UI issue and include new dependencies in the same PR.

Summary by CodeRabbit

  • Chores
    • Temporarily removed the default alternative text for images in posts in preparation for a future, dynamic description feature. This update maintains overall image display and embedding behavior without affecting user experience.

Commented out the alt text line for now until there is a way to set this from within Postiz
Copy link

vercel bot commented Mar 12, 2025

@FoamToaster is attempting to deploy a commit to the Listinai Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

coderabbitai bot commented Mar 12, 2025

Walkthrough

The change involves modifying the BlueskyProvider class by commenting out the line that assigns a default 'image' value to the alt property for embedded images. This alteration is intended to be temporary until a dedicated method for setting the alt text from within Postiz is implemented. There are no changes to the control flow or public interfaces.

Changes

File(s) Change Summary
libraries/.../bluesky.provider.ts Commented out the default assignment for the alt attribute in the post embedding logic; awaits a custom alt method.

Poem

I'm a rabbit, hopping through the code,
Found an alt text line that needed to be slowed.
With a quick comment and a gentle tweak,
My coding ears perk up, I happily speak.
Hop on, dear code, for improvements are bestowed!

✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

Your PR's base branch was set to main, PRs should be set to target dev.
The base branch of this PR has been automatically changed to development, please check that there are no merge conflicts

@github-actions github-actions bot changed the base branch from main to dev March 12, 2025 16:51
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
libraries/nestjs-libraries/src/integrations/social/bluesky.provider.ts (1)

193-197: Temporary Removal of Default Alt Text for Images

The change correctly comments out the assignment of the default alt text (alt: 'image') to prevent unwanted visual effects with uploaded images. This temporary measure addresses the bug described in the PR objectives until a proper mechanism for setting or disabling alt text is implemented.

Recommendations:

  • Consider adding a clear TODO or note adjacent to this commented code (if not already clear) that references the planned enhancement for user-configurable alt text. This will help ensure the temporary measure is revisited when the feature is developed.
  • Verify that omitting the alt text does not inadvertently affect accessibility requirements. If needed, plan to support an empty alt attribute or alternative handling to maintain a balance between visual correctness and accessibility.
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 186cff3 and e6ec03c.

📒 Files selected for processing (1)
  • libraries/nestjs-libraries/src/integrations/social/bluesky.provider.ts (1 hunks)

@egelhaus egelhaus added this to the v1.37.1 milestone Mar 13, 2025
@egelhaus egelhaus merged commit d794fca into gitroomhq:dev Mar 13, 2025
7 of 9 checks passed
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