Skip to content

feat(sponsor)#1496

Merged
deadlyjack merged 13 commits intomainfrom
feat-sponsor
Aug 13, 2025
Merged

feat(sponsor)#1496
deadlyjack merged 13 commits intomainfrom
feat-sponsor

Conversation

@deadlyjack
Copy link
Copy Markdown
Member

@deadlyjack deadlyjack commented Aug 11, 2025

Changes:

  • Removed donate page
  • New sponsor page
  • Updated dependencies (biomejs, sass, html-tag-js)
  • post-process hook will not fail when there is no fdroid.bool

This comment was marked as outdated.

@deadlyjack
Copy link
Copy Markdown
Member Author

New changes:

  • Fixed issue when launching browser activity the status bar hides
  • Fixed issue when theme is set system the statusbar text is not readable.
  • Updated sponsors page and added an icon in sidebar to quick access sponsors page

This comment was marked as outdated.

@deadlyjack deadlyjack requested a review from Copilot August 12, 2025 22:16

This comment was marked as spam.

@bajrangCoder
Copy link
Copy Markdown
Member

bajrangCoder commented Aug 13, 2025

System theme now doesn't work and even doesn't follow system. In system theme it used Legacy light theme which is pretty weird and outdated

When cancelling the the payment stuff on sponsor page it doesn't removes loader from header

@deadlyjack
Copy link
Copy Markdown
Member Author

Changes:

  • Changelogs will be loaded from app by default or if device is offline
  • Fix rendering changelog
  • Hide loader when user cancel purchase
  • Used theme's button color

@deadlyjack deadlyjack requested a review from Copilot August 13, 2025 07:03
Copy link
Copy Markdown
Contributor

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 introduces a new sponsorship system to replace the existing donation functionality, updates build configurations for better organization, and modernizes the development setup.

  • Replaced the donation page with a new comprehensive sponsor system featuring tiered sponsorship levels
  • Refactored webpack configuration to consolidate build outputs and simplified asset management
  • Updated dependencies including biomejs, sass, and html-tag-js with improved SCSS module usage

Reviewed Changes

Copilot reviewed 94 out of 115 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/pages/sponsors/ New sponsor listing page with tier-based sponsor display
src/pages/sponsor/ New individual sponsor page with purchase integration
src/pages/donate/ Removed old donation system files
webpack.config.js Consolidated build outputs and simplified asset handling
src/main.scss Updated to use @use instead of @import for SCSS modules
src/lang/*.json Updated language files to replace "donate" with "sponsor"

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

}}
>
<div className="sponsor-avatar">
<img src={`https://acode.app/sponsor/image/${image}`} />
Copy link

Copilot AI Aug 13, 2025

Choose a reason for hiding this comment

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

The image src will result in a broken URL when the image parameter is undefined or null. Consider adding a fallback or conditional rendering.

Suggested change
<img src={`https://acode.app/sponsor/image/${image}`} />
{image && (
<img src={`https://acode.app/sponsor/image/${image}`} />
)}

Copilot uses AI. Check for mistakes.
reader.onload = () => {
image = reader.result;

if (result && typeof result === "object") {
Copy link

Copilot AI Aug 13, 2025

Choose a reason for hiding this comment

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

The condition checks if result exists, but result is not defined at this point in the code. This will cause a ReferenceError.

Copilot uses AI. Check for mistakes.
website = "http://" + website;
}
system.openInBrowser(website);
}}
Copy link

Copilot AI Aug 13, 2025

Choose a reason for hiding this comment

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

[nitpick] Creating a new arrow function on every render can impact performance. Consider extracting this to a named function or using useCallback equivalent.

Suggested change
}}
function handleClick() {
if (!website) return;
let url = website;
if (!url.startsWith("http")) {
url = "http://" + url;
}
system.openInBrowser(url);
}
return (
<div
attr-role="button"
className={`sponsor-card ${tier}`}
onclick={handleClick}

Copilot uses AI. Check for mistakes.
return View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR;
}

private int getDeprecatedSystemUiVisibility(View decorView) {
Copy link

Copilot AI Aug 13, 2025

Choose a reason for hiding this comment

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

[nitpick] The method name suggests it's deprecated but it's a new method. Consider using a more descriptive name like getSystemUiVisibilityLegacy or getSystemUiVisibilityApi30.

Suggested change
private int getDeprecatedSystemUiVisibility(View decorView) {
private int getSystemUiVisibilityLegacy(View decorView) {

Copilot uses AI. Check for mistakes.
@deadlyjack deadlyjack merged commit 4aefa74 into main Aug 13, 2025
4 checks passed
@deadlyjack deadlyjack deleted the feat-sponsor branch August 13, 2025 17:06
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.

5 participants