Skip to content

Comments

feat/PRO-2905/Points-Tile#220

Merged
RanaBug merged 3 commits intostagingfrom
feat/PRO-2905/Points-Tile
Jan 8, 2025
Merged

feat/PRO-2905/Points-Tile#220
RanaBug merged 3 commits intostagingfrom
feat/PRO-2905/Points-Tile

Conversation

@RanaBug
Copy link
Collaborator

@RanaBug RanaBug commented Dec 19, 2024

Description

  • Points tile frontend implementation

How Has This Been Tested?

  • Unit tests and manual testing

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@RanaBug RanaBug requested a review from IAmKio December 19, 2024 15:43
@RanaBug RanaBug self-assigned this Dec 19, 2024
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 19, 2024

Deploying x with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6c96edc
Status: ✅  Deploy successful!
Preview URL: https://73b3c3a5.x-e62.pages.dev
Branch Preview URL: https://feat-pro-2905-points-tile.x-e62.pages.dev

View logs

@github-actions github-actions bot temporarily deployed to Preview (feat/PRO-2905/Points-Tile) December 19, 2024 16:26 Inactive
Comment on lines +8 to +11
const totalSeconds = Math.floor(timestamp / 1000);
const days = Math.floor(totalSeconds / (24 * 3600));
const hours = Math.floor((totalSeconds % (24 * 3600)) / 3600);
const minutes = Math.floor((totalSeconds % 3600) / 60);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just a note, luxon library might help you better in future 🙏

Copy link
Collaborator

@IAmKio IAmKio left a comment

Choose a reason for hiding this comment

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

Just a minor point but other than that looks good!

</div>
</div>

<div className="flex desktop:flex-col tablet:flex-row mobile:flex-row desktop:w-[25%] tablet:w-full mobile:w-full h-full bg-container_grey/[.9] rounded-[10px] p-4 pt-8 justify-between gap-4">
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could we make this conditional please on the referal data existing? When we launch this it likely won't exist so we need to hide this column for now

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ok no worries I added a condition if no code AND no href, then it does not show


expect(screen.queryByText('My Points Tile')).not.toBeInTheDocument();
expect(screen.queryByText('500')).not.toBeInTheDocument();
});
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just a note to add a test to hide referals section when not available

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@github-actions github-actions bot temporarily deployed to Preview (feat/PRO-2905/Points-Tile) January 7, 2025 18:03 Inactive
Copy link
Collaborator

@IAmKio IAmKio left a comment

Choose a reason for hiding this comment

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

LGTM!

@RanaBug RanaBug merged commit a45ecc6 into staging Jan 8, 2025
5 checks passed
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.

2 participants