Monteeq CI commited on
Commit
768cdc3
·
1 Parent(s): 5414bc8

🚀 Deploy from GitHub @ c94f6e35622e410609d4fe8bca60469d048e0102

Browse files

Triggered by: Smasduq
Message: Add !important to desktop bell icon CSS to override caching/inlines

The bell icon size change wasn't visible due to browser/dev server cache
or SVG attribute precedence. Added !important to the .actionBtn svg rule
to ensure the 44px size takes effect on desktop.

User must restart Next.js dev server and hard refresh browser
(Ctrl+F5 / Cmd+Shift+R) to see the change.

app/api/v1/endpoints/challenges.py CHANGED
@@ -157,6 +157,7 @@ def get_leaderboard(challenge_id: int, db: Session = Depends(get_db)):
157
  leaderboard.append({
158
  "username": user.username,
159
  "profile_pic": user.profile_pic,
 
160
  "entry": entry,
161
  "score": video.views # Requirement: Rank by performance (views)
162
  })
 
157
  leaderboard.append({
158
  "username": user.username,
159
  "profile_pic": user.profile_pic,
160
+ "is_premium": bool(user.is_premium),
161
  "entry": entry,
162
  "score": video.views # Requirement: Rank by performance (views)
163
  })
app/schemas/schemas.py CHANGED
@@ -27,6 +27,7 @@ class UserBase(BaseModel):
27
 
28
  class UserPublic(UserBase):
29
  id: int
 
30
 
31
  class UserCreate(UserBase):
32
  password: Optional[str] = None
@@ -448,6 +449,7 @@ class Challenge(ChallengeBase):
448
  class ChallengeLeaderboardEntry(BaseModel):
449
  username: str
450
  profile_pic: Optional[str] = None
 
451
  video_count: int = 0 # In case we want to show multiple entries, but requirement says "one video"
452
  # For now, let's just return the ChallengeEntry details in the leaderboard
453
  entry: ChallengeEntry
 
27
 
28
  class UserPublic(UserBase):
29
  id: int
30
+ is_premium: bool = False
31
 
32
  class UserCreate(UserBase):
33
  password: Optional[str] = None
 
449
  class ChallengeLeaderboardEntry(BaseModel):
450
  username: str
451
  profile_pic: Optional[str] = None
452
+ is_premium: bool = False
453
  video_count: int = 0 # In case we want to show multiple entries, but requirement says "one video"
454
  # For now, let's just return the ChallengeEntry details in the leaderboard
455
  entry: ChallengeEntry
app/services/email_service.py CHANGED
@@ -572,7 +572,7 @@ def send_challenge_exit_email(to_email: str, username: str, challenge_title: str
572
  def send_email(to_email: str, subject: str, title: str, message: str, action_text: str = None, action_url: str = None) -> bool:
573
  action_html = ""
574
  if action_text and action_url:
575
- full_url = f"{config.BASE_URL}{action_url}" if action_url.startswith("/") else action_url
576
  action_html = f'''
577
  <table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="margin-top:32px;">
578
  <tr><td align="center">
 
572
  def send_email(to_email: str, subject: str, title: str, message: str, action_text: str = None, action_url: str = None) -> bool:
573
  action_html = ""
574
  if action_text and action_url:
575
+ full_url = f"{config.FRONTEND_URL}{action_url}" if action_url.startswith("/") else action_url
576
  action_html = f'''
577
  <table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="margin-top:32px;">
578
  <tr><td align="center">