Skip to content

[FIL-837] Add countdown and change default allocation type #195

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 2 commits into from
May 8, 2025

Conversation

Filip-L
Copy link
Collaborator

@Filip-L Filip-L commented May 7, 2025

Screenshot from 2025-05-08 11-00-33

@Filip-L Filip-L temporarily deployed to staging-fidl May 7, 2025 11:38 — with GitHub Actions Inactive
@Filip-L Filip-L force-pushed the FIL-837-add-countdown-and-change-default branch from 0f9ada5 to 8115719 Compare May 7, 2025 15:42
@Filip-L Filip-L requested review from tmaciej-neti and kacperzuk-neti and removed request for tmaciej-neti May 7, 2025 15:43
@Filip-L Filip-L temporarily deployed to staging-fidl May 7, 2025 15:43 — with GitHub Actions Inactive
Comment on lines 68 to 72
Direct client allocation will be deprecated in{' '}
<span className="inline-block text-center" style={{ width: '90px' }}>
{timeLeft.days}:{timeLeft.hours}:{timeLeft.minutes}:{timeLeft.seconds}
</span>
. Start using the Client smart contract today.
Copy link
Collaborator

@kacperzuk-neti kacperzuk-neti May 8, 2025

Choose a reason for hiding this comment

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

Suggested change
Direct client allocation will be deprecated in{' '}
<span className="inline-block text-center" style={{ width: '90px' }}>
{timeLeft.days}:{timeLeft.hours}:{timeLeft.minutes}:{timeLeft.seconds}
</span>
. Start using the Client smart contract today.
Direct allocation of DataCap will be deprecated in{' '}
<span class="whitespace-nowrap">{timeLeft.days} days</span> (June 1). Start using the Client smart contract today.

Reasons:

  1. Numbers in countdown are confusing. 24:10:24:02? Users will need to guess what it means
  2. Some (me :D) will prefer explicit date.
  3. Direct client allocation sounds confusing. We're not allocating clients, we're allocating datacap.
  4. Why the fixed width and inline-block and text-center? I assume it was to prevent breaking the text over new line. whitespace-nowrap seems better for that purpose. If the reason was different please explain.

Comment on lines 68 to 72
Direct client allocation will be deprecated in{' '}
<span className="inline-block text-center" style={{ width: '90px' }}>
{timeLeft.days}:{timeLeft.hours}:{timeLeft.minutes}:{timeLeft.seconds}
</span>
. Start using the Client smart contract today.
Copy link
Collaborator

Choose a reason for hiding this comment

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

We need to add a link to instruction/more in-depth explanation.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The link to the instructions will be added once the instructions are ready.

@@ -1046,6 +1046,7 @@ const AppInfoCard: React.FC<ComponentProps> = ({
/>
)}
</CardContent>
<Countdown />
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's move it to the modal where allocator chooses contract vs direct.

}
}, [])

if (!isMounted) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Any reason to do that?

@Filip-L Filip-L merged commit 2f6b1df into main May 8, 2025
6 checks passed
@Filip-L Filip-L deleted the FIL-837-add-countdown-and-change-default branch May 8, 2025 12:40
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.

3 participants