Skip to content

Add a column to display estimated expiration date#12

Open
zire wants to merge 1 commit intoninegua:mainfrom
zire:add-est-days
Open

Add a column to display estimated expiration date#12
zire wants to merge 1 commit intoninegua:mainfrom
zire:add-est-days

Conversation

@zire
Copy link
Copy Markdown

@zire zire commented Jul 7, 2025

This PR tries to display the estimated expiration date directly in the user's dashboard table as the fourth column to the right.

  • The original code displays only 3 columns: Canister, Allocated, and Donated.
  • The user has to click on the specific canister to open up a collapsed menu to see more details.
  • Among those details, the estimated days remaining (before cycles run out) is probably the most vital statistic for the user.
  • This PR would display this statistic (but in the transformed format of July 7, 2026) directly in the dashboard table, without the user having to click on the canister ID.
  • The effect looks like this on a local replica:
    Screenshot 2025-07-07 at 14 41 14
  • The original .gitignore leaves room for some environmental or artifact files. I did not stage those for my commit. This is supposed to be a simple UI change. The only affected files should be the index.html and index.js, I think.
    Screenshot 2025-07-07 at 14 50 07

<th class="fixed-th">Canister</th>
<th class="right">Allocated</th>
<th class="right">Donated</th>
<th class="right">Est. Expiration Date</th>
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

This name is a bit long, the table won't look as nice on mobile phone. How about "Est. TTL"? TTL = time to live

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Agree. Est. TTL sounds good. The original col header is indeed too long, even on the desktop.

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