Skip to content

Conversation

@adityaoberai
Copy link
Member

@adityaoberai adityaoberai commented Jan 27, 2026

What does this PR do?

(Provide a description of what this PR does.)

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work.)

Related PRs and Issues

(If this PR is related to any other PR or resolves any issue or related to any issue link all related PR and issues here.)

Have you read the Contributing Guidelines on issues?

(Write your answer here.)

Summary by CodeRabbit

  • Chores
    • Updated the Imagine promotional alert: title now "Imagine is live on Product Hunt", message updated, CTA changed to "Head to Product Hunt", and promo link updated to the Product Hunt launch.
  • Style
    • Replaced the promo logo with the Product Hunt mark and increased its display size.
  • Behavior
    • Promo visibility and gating conditions remain unchanged.

✏️ Tip: You can customize this high-level summary in your review settings.

@appwrite
Copy link

appwrite bot commented Jan 27, 2026

Console (appwrite/console)

Project ID: 688b7bf400350cbd60e9

Sites (1)
Site Status Logs Preview QR
 console-stage
688b7cf6003b1842c9dc
Ready Ready View Logs Preview URL QR Code

Tip

Roll back Sites deployments instantly by switching between versions

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 27, 2026

Walkthrough

The bottom alerts promo entry content was updated: the alert id changed to modal:imagine-ph-launch-console, title, message and CTA text were replaced to announce the Product Hunt launch, and the CTA link now points to the Product Hunt launch URL. In the promo component, the imported SVG asset was switched from the Imagine asset to a Product Hunt SVG and the visible logo height was increased from 24px to 40px; an existing image element remains hidden/commented out.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'PH promo console' is partially related to the changeset—it references the Product Hunt promotion update but lacks clarity and specificity about what was actually changed. Consider a more descriptive title like 'Update Imagine promo to Product Hunt launch' or 'Update console promo for Product Hunt launch' to clearly convey the main change.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ 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

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@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: 1

🤖 Fix all issues with AI agents
In `@src/routes/`(console)/bottomAlerts.ts:
- Line 37: The long URL literal in the link property is causing Prettier
line-length failures; fix by extracting the URL into a named constant (e.g.,
IMAGINE_PRODUCT_HUNT_URL or PRODUCT_HUNT_IMAGINE_URL) at the top of the module
and return that constant from the link: () => ... function (or reference it in
the object) instead of embedding the full literal inline; update the link
property in the bottomAlerts export (the link function) to use the new constant
so the line shortens and Prettier passes.

dark: '#CCCCCC'
},
link: () => 'https://imagine.dev',
link: () => 'https://www.producthunt.com/products/imagine-2?launch=imagine-00018118-5267-43ba-b456-efeeb7cbfbc9',
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Fix Prettier failure by shortening the long URL literal (Line 37).
CI is failing on formatting; extracting the URL keeps line length under control and should satisfy Prettier.

🛠️ Proposed fix
 const SHOW_IMAGINE_PROMO = true;
+const IMAGINE_PH_LAUNCH_URL =
+    'https://www.producthunt.com/products/imagine-2?' +
+    'launch=imagine-00018118-5267-43ba-b456-efeeb7cbfbc9';

 const listOfPromotions: BottomModalAlertItem[] = [];
@@
-            link: () => 'https://www.producthunt.com/products/imagine-2?launch=imagine-00018118-5267-43ba-b456-efeeb7cbfbc9',
+            link: () => IMAGINE_PH_LAUNCH_URL,
📝 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
link: () => 'https://www.producthunt.com/products/imagine-2?launch=imagine-00018118-5267-43ba-b456-efeeb7cbfbc9',
const SHOW_IMAGINE_PROMO = true;
const IMAGINE_PH_LAUNCH_URL =
'https://www.producthunt.com/products/imagine-2?' +
'launch=imagine-00018118-5267-43ba-b456-efeeb7cbfbc9';
const listOfPromotions: BottomModalAlertItem[] = [];
link: () => IMAGINE_PH_LAUNCH_URL,
🤖 Prompt for AI Agents
In `@src/routes/`(console)/bottomAlerts.ts at line 37, The long URL literal in the
link property is causing Prettier line-length failures; fix by extracting the
URL into a named constant (e.g., IMAGINE_PRODUCT_HUNT_URL or
PRODUCT_HUNT_IMAGINE_URL) at the top of the module and return that constant from
the link: () => ... function (or reference it in the object) instead of
embedding the full literal inline; update the link property in the bottomAlerts
export (the link function) to use the new constant so the line shortens and
Prettier passes.

Copy link
Contributor

@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: 1

🤖 Fix all issues with AI agents
In `@src/routes/`(console)/bottomAlerts.ts:
- Around line 16-20: The file src/routes/(console)/bottomAlerts.ts contains
unresolved git conflict markers around the alert object id; remove the conflict
markers (<<<<<<<, =======, >>>>>>>) and pick the correct id value for the alert
(either 'modal:imagine-ph-launch' or 'modal:imagine-ph-launch-studio') in the
object where id is set (the alert entry defined in this file), then save and
commit the resolved file so the build no longer fails.
🧹 Nitpick comments (2)
src/lib/components/promos/imagine.svelte (2)

15-17: Consider removing commented-out code instead of keeping dead references.

The commented block references ImagineSvg which is no longer imported. Keeping commented-out code that references removed dependencies creates confusion for future maintainers. If this is temporary for easy rollback, consider adding a TODO with context or simply remove it.


41-41: Minor: Add space after colon in CSS property.

For consistency with standard CSS formatting:

🧹 Suggested fix
-        height:40px;
+        height: 40px;

Comment on lines 16 to 20
<<<<<<< HEAD
id: 'modal:imagine-ph-launch',
=======
id: 'modal:imagine-ph-launch-studio',
>>>>>>> 8f176a8f7 (Switch Imagine logo with PH in bottom alert)
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

Critical: Unresolved git merge conflict markers break the build.

The file contains unresolved merge conflict markers causing all pipelines to fail. You need to resolve this conflict by choosing the appropriate id value.

🐛 Proposed fix (choose one id)

If modal:imagine-ph-launch is correct:

-<<<<<<< HEAD
         id: 'modal:imagine-ph-launch',
-=======
-        id: 'modal:imagine-ph-launch-studio',
->>>>>>> 8f176a8f7 (Switch Imagine logo with PH in bottom alert)

Or if modal:imagine-ph-launch-studio is correct:

-<<<<<<< HEAD
-        id: 'modal:imagine-ph-launch',
-=======
         id: 'modal:imagine-ph-launch-studio',
->>>>>>> 8f176a8f7 (Switch Imagine logo with PH in bottom alert)
📝 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
<<<<<<< HEAD
id: 'modal:imagine-ph-launch',
=======
id: 'modal:imagine-ph-launch-studio',
>>>>>>> 8f176a8f7 (Switch Imagine logo with PH in bottom alert)
id: 'modal:imagine-ph-launch-studio',
🧰 Tools
🪛 Biome (2.1.2)

[error] 16-16: Expected an expression but instead found '<<'.

Expected an expression here.

(parse)


[error] 16-16: Expected an expression but instead found '<<'.

Expected an expression here.

(parse)


[error] 17-17: expected > but instead found id

Remove id

(parse)


[error] 17-17: Expected a semicolon or an implicit semicolon after a statement, but found none

An explicit or implicit semicolon is expected here...

...Which is required to end this statement

(parse)


[error] 20-20: numbers cannot be followed by identifiers directly after

an identifier cannot appear here

(parse)


[error] 20-20: expected ( but instead found PH

Remove PH

(parse)


[error] 20-20: expected ) but instead found alert

Remove alert

(parse)


[error] 20-20: Expected a semicolon or an implicit semicolon after a statement, but found none

An explicit or implicit semicolon is expected here...

...Which is required to end this statement

(parse)


[error] 20-20: with statements are not allowed in strict mode

(parse)

🪛 GitHub Actions: E2E

[error] 16-16: Syntax error: Unexpected token '<<<<<< HEAD' due to unresolved git merge conflict markers in bottomAlerts.ts.

🪛 GitHub Actions: Tests

[error] 16-16: Merge conflict marker encountered.


[error] 18-18: Merge conflict marker encountered.


[error] 20-20: Merge conflict marker encountered.

🤖 Prompt for AI Agents
In `@src/routes/`(console)/bottomAlerts.ts around lines 16 - 20, The file
src/routes/(console)/bottomAlerts.ts contains unresolved git conflict markers
around the alert object id; remove the conflict markers (<<<<<<<, =======,
>>>>>>>) and pick the correct id value for the alert (either
'modal:imagine-ph-launch' or 'modal:imagine-ph-launch-studio') in the object
where id is set (the alert entry defined in this file), then save and commit the
resolved file so the build no longer fails.

@adityaoberai adityaoberai merged commit e56ee59 into main Jan 28, 2026
4 checks passed
@adityaoberai adityaoberai deleted the add-imagine-ph branch January 28, 2026 07:14
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.

3 participants