Skip to content

fix: release configuration#3

Merged
sirily11 merged 1 commit intomainfrom
release
Mar 2, 2026
Merged

fix: release configuration#3
sirily11 merged 1 commit intomainfrom
release

Conversation

@sirily11
Copy link
Copy Markdown
Contributor

@sirily11 sirily11 commented Mar 2, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 2, 2026 11:36
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
rxnote Error Error Mar 2, 2026 11:54am

Request Review

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates production configuration and improves theming/dark-mode behavior across the Next.js “backend” (MDX/legal pages) and the RxNote SwiftUI app (accent color + embedded web pages).

Changes:

  • Adjust RxNote Release API base URL and update the iOS/macOS app accent color usage in UI components.
  • Add Next.js theme infrastructure (ThemeProvider + theme toggle, MDX styling tweaks, dark-mode pre-paint handling) and legal-page loading UI.
  • Update legal MDX copy to reference “RxNote” and revise content categories.

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
backend/mdx-components.tsx Updates MDX blockquote styling and adds an hr component.
backend/components/theme-toggle.tsx Adds a client-side theme toggle using next-themes.
backend/app/providers.tsx Wraps app providers with ThemeProvider.
backend/app/layout.tsx Adds hydration suppression and an early script/meta to reduce theme flash.
backend/app/globals.css Adds pre-JS background/color-scheme rules based on prefers-color-scheme.
backend/app/(legal)/terms/page.mdx Updates Terms copy to reference RxNote.
backend/app/(legal)/privacy/page.mdx Updates Privacy copy and “Content” description to match RxNote.
backend/app/(legal)/loading.tsx Adds skeleton loading UI for legal routes.
backend/app/(legal)/layout.tsx Adds a header container (currently empty) and imports ThemeToggle.
RxNote/RxNote/Views/Settings/WebPageView.swift Hides tab bar and injects CSS into WKWebView for dark backgrounds.
RxNote/RxNote/Views/Notes/WiFiActionButton.swift Adds connected-state coloring and uses the new app accent color.
RxNote/RxNote/Views/Notes/NoteListView.swift Reorders sheet/fullScreenCover modifiers and fixes indentation of list pagination .onAppear.
RxNote/RxNote/Views/Notes/NoteEditorView.swift Introduces Color.appAccent, applies it across UI, and adjusts action row styling/behavior.
RxNote/RxNote/Config/Release.xcconfig Updates production API host.
RxNote/RxNote/Assets.xcassets/AccentColor.colorset/Contents.json Defines light/dark variants for the AccentColor asset.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

// API Configuration - Production
// Update this to your production API URL
API_BASE_URL = https:/$()/note.rxlab.app
API_BASE_URL = https:/$()/rxnote.rxlab.app
Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

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

PR title suggests this is only a release configuration fix, but this PR also introduces significant UI/theme and legal-page changes (Next.js theming, new ThemeToggle, MDX styling, SwiftUI UI tweaks). Consider updating the PR title/description or splitting into focused PRs to reduce review/rollback risk.

Copilot uses AI. Check for mistakes.
return (
<div className="min-h-screen bg-background">
<main className="mx-auto max-w-3xl px-6 py-12">{children}</main>
<header className="mx-auto max-w-3xl px-6 pt-6 flex justify-end"></header>
Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

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

ThemeToggle is imported but never rendered, and the <header> is empty. This will likely trigger lint failures (unused import) and adds unnecessary markup. Either render <ThemeToggle /> inside the header (if intended) or remove both the import and the empty header element.

Suggested change
<header className="mx-auto max-w-3xl px-6 pt-6 flex justify-end"></header>
<header className="mx-auto max-w-3xl px-6 pt-6 flex justify-end">
<ThemeToggle />
</header>

Copilot uses AI. Check for mistakes.
Comment on lines +8 to +20
@media (prefers-color-scheme: dark) {
html {
background-color: oklch(0.145 0 0);
color-scheme: dark;
}
}
@media (prefers-color-scheme: light) {
html {
background-color: oklch(1 0 0);
color-scheme: light;
}
}

Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

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

The prefers-color-scheme media queries set html background/color-scheme based on system theme, which can flash the wrong theme for users who explicitly chose a different theme via next-themes (e.g. user-selected light while OS is dark will still start with dark background). Consider keying this “pre-JS” styling off the presence of the .dark class (or next-themes' injected attribute) instead of prefers-color-scheme, or otherwise ensure stored theme overrides system in the initial paint.

Suggested change
@media (prefers-color-scheme: dark) {
html {
background-color: oklch(0.145 0 0);
color-scheme: dark;
}
}
@media (prefers-color-scheme: light) {
html {
background-color: oklch(1 0 0);
color-scheme: light;
}
}
html {
background-color: oklch(1 0 0);
color-scheme: light;
}
html.dark {
background-color: oklch(0.145 0 0);
color-scheme: dark;
}

Copilot uses AI. Check for mistakes.
Comment on lines 16 to 22
WebViewRepresentable(url: page.url)
.toolbar(.hidden, for: .tabBar)
.navigationTitle(page.title)
#if os(iOS)
.navigationBarTitleDisplayMode(.inline)
#endif
#if os(iOS)
.navigationBarTitleDisplayMode(.inline)
#endif
.ignoresSafeArea(edges: .bottom)
Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

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

.toolbar(.hidden, for: .tabBar) is applied unconditionally, but this file includes a macOS NSViewRepresentable branch. This modifier (and .tabBar) is iOS-specific in other parts of the codebase (e.g. NoteDetailView guards it with #if os(iOS)), so it should be similarly guarded here to avoid macOS build failures.

Copilot uses AI. Check for mistakes.
Comment on lines 30 to 32
let url: URL
@Environment(\.colorScheme) private var colorScheme

Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

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

@Environment(\.colorScheme) private var colorScheme is declared but not used. If it’s not needed, remove it; if it’s intended to drive the injected CSS / webview styling, wire it up so the web content follows the app’s current scheme.

Copilot uses AI. Check for mistakes.
Comment on lines +15 to +27
extension Color {
static var appAccent: Color {
Color(light: Color(red: 0.506, green: 0.220, blue: 0.820),
dark: Color(red: 0.720, green: 0.520, blue: 0.780))
}

init(light: Color, dark: Color) {
self.init(uiColor: UIColor { traitCollection in
traitCollection.userInterfaceStyle == .dark
? UIColor(dark)
: UIColor(light)
})
}
Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

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

The new Color extension uses UIColor and Color(uiColor:) unconditionally. Since this file is cross-platform (the project has macOS-specific code paths), this will not compile on macOS. Wrap the UIKit-based implementation in #if os(iOS) and provide an AppKit equivalent (NSColor / Color(nsColor:)), or prefer using the existing AccentColor asset / Color.accentColor instead.

Copilot uses AI. Check for mistakes.
@sirily11 sirily11 merged commit e68c420 into main Mar 2, 2026
8 of 9 checks passed
@sirily11 sirily11 deleted the release branch March 2, 2026 12:09
@sirily11
Copy link
Copy Markdown
Contributor Author

sirily11 commented Mar 2, 2026

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants