Skip to content

Fix: Update BTCPay Server currencies and fix dark mode bug #22887

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 4 commits into from
Aug 8, 2025

Conversation

TChukwuleta
Copy link
Contributor

@TChukwuleta TChukwuleta commented Aug 4, 2025

What does this PR do?

With this in dark mode the price label is now visible and the price input text is also visible.

  • Includes more currencies that is supported by BTCPay server.

Visual Demo (For contributors especially)

A visual demonstration is strongly recommended, for both the original and new change (video / image - any one).

image

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • I have updated the developer docs in /docs if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

Checklist

Copy link

vercel bot commented Aug 4, 2025

@TChukwuleta is attempting to deploy a commit to the cal Team on Vercel.

A member of the Team first needs to authorize it.

@graphite-app graphite-app bot requested a review from a team August 4, 2025 13:58
@graphite-app graphite-app bot added the community Created by Linear-GitHub Sync label Aug 4, 2025
Copy link
Contributor

github-actions bot commented Aug 4, 2025

Hey there and thank you for opening this pull request! 👋🏼

We require pull request titles to follow the Conventional Commits specification and it looks like your proposed title needs to be adjusted.

Details:

Unknown release type "Fix" found in pull request title "Fix: Update BTCPay Server currencies and fix dark mode bug". 

Available types:
 - feat: A new feature
 - fix: A bug fix
 - docs: Documentation only changes
 - style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
 - refactor: A code change that neither fixes a bug nor adds a feature
 - perf: A code change that improves performance
 - test: Adding missing tests or correcting existing tests
 - build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
 - ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
 - chore: Other changes that don't modify src or test files
 - revert: Reverts a previous commit

@CLAassistant
Copy link

CLAassistant commented Aug 4, 2025

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ anikdhabal
❌ TChukwuleta
You have signed the CLA already but the status is still pending? Let us recheck it.

@TChukwuleta TChukwuleta changed the title Update BTCPay Server currencies and fix dark mode bug Fix: Update BTCPay Server currencies and fix dark mode bug Aug 4, 2025
@dosubot dosubot bot added app-store area: app store, apps, calendar integrations, google calendar, outlook, lark, apple calendar 🧹 Improvements Improvements to existing features. Mostly UX/UI labels Aug 4, 2025
Copy link

graphite-app bot commented Aug 4, 2025

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (08/04/25)

1 reviewer was added to this PR based on Keith Williams's automation.

"Add community label" took an action on this PR • (08/04/25)

1 label was added to this PR based on Keith Williams's automation.

"Add ready-for-e2e label" took an action on this PR • (08/04/25)

1 label was added to this PR based on Keith Williams's automation.

Copy link
Contributor

coderabbitai bot commented Aug 4, 2025

Walkthrough

The changes update the user interface for entering a price in the EventTypeAppSettingsInterface component by restructuring the container layout, adding a visible label above the price input, and adjusting styling for dark mode compatibility and input width. Additionally, the currency options in the currencyOptions.ts module are expanded from a single USD entry to a comprehensive list of 27 currencies, with updated labels and inclusion of the Japanese Yen (JPY) as a zero-decimal currency. The zero-decimal currency logic is updated to recognize JPY, affecting currency conversion functions.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~7 minutes

Possibly related PRs

Note

🔌 MCP (Model Context Protocol) integration is now available in Early Access!

Pro users can now connect to remote MCP servers under the Integrations page to get reviews and chat conversations that understand additional development context.


📜 Recent review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between c4babb0 and 5541f2f.

📒 Files selected for processing (1)
  • packages/app-store/btcpayserver/components/EventTypeAppSettingsInterface.tsx (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/app-store/btcpayserver/components/EventTypeAppSettingsInterface.tsx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Install dependencies / Yarn install & cache
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.
    • Explain this complex logic.
    • 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 explain this code block.
  • 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 explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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 generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests 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
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

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between a2205d4 and 22ca6d6.

📒 Files selected for processing (2)
  • packages/app-store/btcpayserver/components/EventTypeAppSettingsInterface.tsx (1 hunks)
  • packages/app-store/btcpayserver/lib/currencyOptions.ts (2 hunks)
🧰 Additional context used
📓 Path-based instructions (3)
**/*.ts

📄 CodeRabbit Inference Engine (.cursor/rules/review.mdc)

**/*.ts: For Prisma queries, only select data you need; never use include, always use select
Ensure the credential.key field is never returned from tRPC endpoints or APIs

Files:

  • packages/app-store/btcpayserver/lib/currencyOptions.ts
**/*.{ts,tsx}

📄 CodeRabbit Inference Engine (.cursor/rules/review.mdc)

Flag excessive Day.js use in performance-critical code; prefer native Date or Day.js .utc() in hot paths like loops

Files:

  • packages/app-store/btcpayserver/lib/currencyOptions.ts
  • packages/app-store/btcpayserver/components/EventTypeAppSettingsInterface.tsx
**/*.tsx

📄 CodeRabbit Inference Engine (.cursor/rules/review.mdc)

Always use t() for text localization in frontend code; direct text embedding should trigger a warning

Files:

  • packages/app-store/btcpayserver/components/EventTypeAppSettingsInterface.tsx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Tests / Unit
  • GitHub Check: Type check / check-types
🔇 Additional comments (4)
packages/app-store/btcpayserver/lib/currencyOptions.ts (2)

32-32: LGTM! JPY correctly classified as zero-decimal currency.

Japanese Yen is properly classified as a zero-decimal currency, which aligns with standard financial practices where JPY amounts are expressed as whole numbers.


34-46: LGTM! Currency conversion functions handle new currencies correctly.

The conversion functions properly handle the expanded currency list, including the newly added JPY as a zero-decimal currency.

packages/app-store/btcpayserver/components/EventTypeAppSettingsInterface.tsx (2)

63-66: LGTM! Improved accessibility and layout.

The addition of an explicit label element with proper htmlFor attribute enhances accessibility for screen readers. The inline-block container and text-default class provide better layout and dark mode support, addressing the PR objective.


69-69: LGTM! Dark mode visibility fix implemented correctly.

The updated className with text-black dark:text-white properly addresses the dark mode visibility issue mentioned in the PR objectives, ensuring the price input text is visible in both light and dark themes.

PeerRich
PeerRich previously approved these changes Aug 4, 2025
Copy link
Contributor

github-actions bot commented Aug 4, 2025

E2E results are ready!

@anikdhabal anikdhabal enabled auto-merge (squash) August 8, 2025 05:34
@anikdhabal anikdhabal merged commit 86f6e8b into calcom:main Aug 8, 2025
28 of 35 checks passed
Pallava-Joshi pushed a commit to Pallava-Joshi/cal.com that referenced this pull request Aug 8, 2025
)

* Update BTCPay Server currencies

* fix type

---------

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app-store area: app store, apps, calendar integrations, google calendar, outlook, lark, apple calendar community Created by Linear-GitHub Sync 🧹 Improvements Improvements to existing features. Mostly UX/UI ready-for-e2e
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants