Skip to content

chore: improve inputs and outputs lists#388

Merged
tuliomir merged 5 commits intomasterfrom
chore/improve-utxos
Mar 12, 2025
Merged

chore: improve inputs and outputs lists#388
tuliomir merged 5 commits intomasterfrom
chore/improve-utxos

Conversation

@obiyankenobi
Copy link
Copy Markdown
Member

Acceptance Criteria

  • add new design for inputs and outputs list;
  • make whole title line of dropdown element clickable to improve usability;
  • compact hash format (like in the initial page) changed to font-size 16px;
  • hash item list (parents & children) font-size to 14px;

Security Checklist

  • Make sure you do not include new dependencies in the project unless strictly necessary and do not include dev-dependencies as production ones. More dependencies increase the possibility of one of them being hijacked and affecting us.

Screenshots

image

@obiyankenobi obiyankenobi self-assigned this Mar 3, 2025
@obiyankenobi obiyankenobi requested a review from r4mmer as a code owner March 3, 2025 15:32
if (idx in this.props.spentOutputs) {
return (
<span>
// TODO for some reason, bold does not work with SF Pro
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@pedroferreira1 @tuliomir any idea why? I tried all options (bold, strong, 700, etc). I believe all text we have as bold on the website (that's currently working) uses Mona Sans font, not SF Pro.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Based on our recent conversation, it seems the bold font files were available on the developer machines that implemented these changes ( and also on mine, as I couldn't reproduce the error ), but were not available in the repository for all users.

Adding those to the repository will probably solve this issue.

Copy link
Copy Markdown
Member Author

@obiyankenobi obiyankenobi Mar 7, 2025

Choose a reason for hiding this comment

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

Fixed by adding the font file (src/assets/fonts/SFPRODISPLAYBOLD.OTF) and definition on scss.

image

image

.table-details td {
color: var(--purple-text);
padding: 20px 10px;
padding: 20px 0px;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Removed the padding from the lists. It's not according to Ana's design, but I personally think it looks better.

Original
image

New
image

gap: 2px;
align-items: center;
font-size: 14px;
font-size: 16px;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The original design has both this and the timestamp column as 14px. However, we currently use 14px for this and 16px for the timestamp. Since both can use 16px, it's better for usability.


const renderNewUiDivList = hashes => {
const renderTxListWithSpacer = hashes => {
const obj = hashes.map( h => <Link className="fs-14" to={`/transaction/${h}`}>{h}</Link> );
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Increased font size to 14px to improve usability. It was too small before.

Original
image

New
image

@tuliomir tuliomir moved this from Todo to In Progress (Done) in Hathor Network Mar 7, 2025
return (
<div className={`container-drop-div ${open ? 'container-drop-div-open' : ''}`}>
<div className="container-drop-header">
<div className="container-drop-header" onClick={click}>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

note(non-blocking): This behavior was supposed to be fixed in #378, but an issue with overlays postponed it.

I'm sharing this here because I believe there are still some places where this kind of overlay issue is still happening, and in these cases the container-drop-header click event will seem not to be working, breaking the manual QA.

I couldn't find precisely where to open an objective issue about it, but will do it soon.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I don't understand. This makes the whole dropdown header row clickable. Is it supposed to be fixed in #378?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We currently have some "ghost" divs with a high z-index that block the click behavior of some elements on the screen.

This is the issue that was partially solved in 378. However, every now and then I try to click some element on screen and notice it's not working. Just a small scroll up or down is enough to avoid this problem.

During an eventual QA, this issue might be mistaken for a bug on your code on the click behavior of the header row, and that's why I brought it here: to clarify the actual source of the problem.

@obiyankenobi obiyankenobi force-pushed the chore/improve-utxos branch from 2508a42 to 5f32157 Compare March 7, 2025 23:50
return (
<div key={token.uid}>
const obj = this.state.tokens.map(token => (
// TODO I don't think we have a TokenMarker here on Figma. Remove?
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@tuliomir is that the case? Should we remove TokenMarkers?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I believe TokenMarkers were not considered in the current design.

We should send examples of marked tokens to the designer to have a new version of the figma considering them, and then we remove or adapt the TokenMarker elements accordingly.

Do you agree with this approach?

@github-project-automation github-project-automation bot moved this from In Progress (Done) to In Review (WIP) in Hathor Network Mar 12, 2025
@tuliomir tuliomir moved this from In Review (WIP) to In Review (Done) in Hathor Network Mar 12, 2025
@tuliomir tuliomir merged commit 753ae8d into master Mar 12, 2025
1 check passed
@github-project-automation github-project-automation bot moved this from In Review (Done) to Waiting to be deployed in Hathor Network Mar 12, 2025
@tuliomir tuliomir deleted the chore/improve-utxos branch March 12, 2025 15:42
@tuliomir tuliomir moved this from Waiting to be deployed to Done in Hathor Network Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants