Skip to content

Test Review App Workflows #640

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

Merged
merged 2 commits into from
Apr 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 0 additions & 36 deletions .github/workflows/debug-workflow.yml

This file was deleted.

42 changes: 37 additions & 5 deletions .github/workflows/deploy-to-control-plane-review-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ env:
PR_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number || github.event.inputs.pr_number }}

jobs:
debug:
uses: ./.github/workflows/debug-workflow.yml
with:
debug_enabled: false

deploy:
if: |
(github.event_name == 'pull_request') ||
Expand Down Expand Up @@ -371,3 +366,40 @@ jobs:
comment_id: ${{ steps.create-comment.outputs.comment-id }},
body: isSuccess ? successMessage : failureMessage
});

- name: Show Quick Reference
if: github.event_name == 'pull_request' && github.event.action == 'opened'
uses: actions/github-script@v7
with:
script: |
try {
console.log('Creating quick reference message...');
const helpMessage = [
'# 🚀 Quick Review App Commands',
'',
'Welcome! Here are the commands you can use in this PR:',
'',
'### `/deploy-review-app`',
'Deploy your PR branch for testing',
'',
'### `/delete-review-app`',
'Remove the review app when done',
'',
'### `/help`',
'Show detailed instructions, environment setup, and configuration options.',
'',
'---'
].join('\n');

await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: helpMessage
});

console.log('Quick reference posted successfully');
} catch (error) {
console.error('Error posting quick reference:', error);
core.setFailed(`Failed to post quick reference: ${error.message}`);
}
56 changes: 0 additions & 56 deletions .github/workflows/review-app-help.yml

This file was deleted.

2 changes: 1 addition & 1 deletion client/app/bundles/comments/components/Footer/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default class Footer extends BaseComponent {
Example of styling using image-url and Open Sans Light custom font
</h3>
</a>
<a href="https://twitter.com/railsonmaui" className="flex gap-4 items-center">
<a href="https://x.com/railsonmaui" className="flex gap-4 items-center">
<div className="w-16 h-16 bg-[url('../images/twitter_64.png')]" />
Rails On Maui on X (Twitter)
</a>
Comment on lines 16 to 18
Copy link

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Update icon asset and accessible text for X branding

While the URL is updated, the UI still uses the old Twitter icon and mentions “(Twitter)”. We should:

  • Replace twitter_64.png with an X logo asset (e.g., x_64.png).
  • Remove “(Twitter)” from the link text.
  • Add accessibility attributes (role="img", aria-label="X logo") to the <div>.
  • Consider opening the external link in a new tab with target="_blank" rel="noopener noreferrer".

Apply this diff within lines 15–18:

-          <a href="https://x.com/railsonmaui" className="flex gap-4 items-center">
-            <div className="w-16 h-16 bg-[url('../images/twitter_64.png')]" />
-            Rails On Maui on X (Twitter)
+          <a href="https://x.com/railsonmaui" className="flex gap-4 items-center" target="_blank" rel="noopener noreferrer">
+            <div
+              className="w-16 h-16 bg-[url('../images/x_64.png')]"
+              role="img"
+              aria-label="X logo"
+            />
+            Rails On Maui on X
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<div className="w-16 h-16 bg-[url('../images/twitter_64.png')]" />
Rails On Maui on X (Twitter)
</a>
<a
href="https://x.com/railsonmaui"
className="flex gap-4 items-center"
target="_blank"
rel="noopener noreferrer"
>
<div
className="w-16 h-16 bg-[url('../images/x_64.png')]"
role="img"
aria-label="X logo"
/>
Rails On Maui on X
</a>

Expand Down
Loading