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: create banner for online conf #3312

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

thulieblack
Copy link
Member

@thulieblack thulieblack commented Oct 21, 2024

Summary by CodeRabbit

  • New Features
    • Updated event banner details for the AsyncAPI Online Conference 2024, including:
      • Title change to "AsyncAPI Online Conference 2024"
      • Location updated to "YouTube"
      • Date and location revised to "30th of October, 2024 | YouTube & LinkedIn"
      • Call to action changed to "Join us Live"
      • Live streaming link provided for the event.

Copy link

coderabbitai bot commented Oct 21, 2024

Walkthrough

The changes involve updates to the shouldShowBanner function's documentation and modifications to the banners array in components/campaigns/banners.ts. The cfpDeadlineParis variable is changed to a new date, which influences the banner display conditions. The banners array sees significant updates, including changes to the title, city, dateLocation, cfaText, eventName, and link, transitioning from an in-person event in Paris to an online conference hosted on YouTube and LinkedIn.

Changes

File Change Summary
components/campaigns/banners.ts - Updated cfpDeadlineParis from '2024-10-12T06:00:00Z' to '2024-10-30T06:00:00Z'.
- Modified banners array:
- Title: "AsyncAPI Conf on Tour'24" → "AsyncAPI Online Conference 2024"
- City: 'Paris' → 'YouTube'
- DateLocation: '3rd - 5th of December, 2024

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant BannerComponent
    participant YouTube
    participant LinkedIn

    User->>BannerComponent: Request to view banners
    BannerComponent->>YouTube: Check banner availability
    BannerComponent->>LinkedIn: Check banner availability
    YouTube-->>BannerComponent: Return banner details
    LinkedIn-->>BannerComponent: Return banner details
    BannerComponent-->>User: Display updated banners
Loading

🐰 "In the land where banners gleam,
A conference shifts, a new dream!
From Paris streets to YouTube's light,
Join us online, it will be bright!
With LinkedIn too, we'll share the cheer,
Hop along, the event is near!" 🐇✨


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 5a40ab8 and 17b8b0d.

📒 Files selected for processing (1)
  • components/campaigns/banners.ts (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • components/campaigns/banners.ts

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ 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 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

netlify bot commented Oct 21, 2024

Deploy Preview for asyncapi-website ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 7639112
🔍 Latest deploy log https://app.netlify.com/sites/asyncapi-website/deploys/671666b14dde1c00080a95db
😎 Deploy Preview https://deploy-preview-3312--asyncapi-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@asyncapi-bot
Copy link
Contributor

asyncapi-bot commented Oct 21, 2024

⚡️ Lighthouse report for the changes in this PR:

Category Score
🔴 Performance 44
🟢 Accessibility 98
🟢 Best practices 92
🟢 SEO 100
🔴 PWA 33

Lighthouse ran on https://deploy-preview-3312--asyncapi-website.netlify.app/

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

🧹 Outside diff range and nitpick comments (2)
components/campaigns/banners.ts (2)

18-18: LGTM! Consider using a constant for improved maintainability.

The updated deadline aligns with the shift to an online conference. The date format is correct (ISO 8601).

Consider defining this date as a constant at the top of the file for easier maintenance:

const CFP_DEADLINE_PARIS = '2024-10-30T06:00:00Z';

Then use it like this:

const cfpDeadlineParis = CFP_DEADLINE_PARIS;

23-29: LGTM! Consider updating the city property for consistency.

The updates accurately reflect the shift to an online conference and are consistent with the PR objectives.

For consistency, consider updating the city property to reflect both platforms:

-    city: 'YouTube',
+    city: 'YouTube & LinkedIn',

This would align with the dateLocation and eventName properties that mention both platforms.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 3a8f69a and 5a40ab8.

📒 Files selected for processing (1)
  • components/campaigns/banners.ts (1 hunks)
🧰 Additional context used
🔇 Additional comments (1)
components/campaigns/banners.ts (1)

18-29: Overall, the changes successfully update the banner for the online conference.

The modifications effectively transform the banner from advertising an in-person event in Paris to an online conference on YouTube and LinkedIn. The deadline extension and updated event details are consistent with this change.

To ensure all references to the Paris event have been updated, please run the following script:

This will help identify any remaining references that might need updating.

Copy link

codecov bot commented Oct 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 53.17%. Comparing base (3a8f69a) to head (7639112).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3312   +/-   ##
=======================================
  Coverage   53.17%   53.17%           
=======================================
  Files          21       21           
  Lines         598      598           
=======================================
  Hits          318      318           
  Misses        280      280           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -15,18 +15,18 @@ function shouldShowBanner(cfpDeadline: string) {
return true;
}

const cfpDeadlineParis = '2024-10-12T06:00:00Z';
const cfpDeadlineParis = '2024-10-30T06:00:00Z';
Copy link
Member

Choose a reason for hiding this comment

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

Instead of using this variable, can you please add this inside map? It is very confusing to understand why are we giving cfpDeadlineParis deadline to every banner 😅

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm lost @akshatnema please explain. Oooh I used default cfpparis because it was a quick change after the Paris banner 🫣🫣🫣

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