Comments (5)
I want to rephrase what this ticket is about.
This ticket is about indicating for each chain block, which blocks it accepts.
We can add to kasparov REST calls, that whenever a block object is returned, it will contain an array with the hashes of the blocks that it accepts. Then, you can get the initial state of a block from kasparoc REST and update it with updates from MQTT dag/selected-parent-chain.
from dagviz.
(a) Up until now, we discussed highlighting in teal a chain block's accepted blocks.
(b) I want to bring up now a different thing: teal highlight from each block (when hovering) to the accepting block.
For (a), we will need to give you a new API (block.acceptedBlockHashes) and you can get updates for this using the MQTT dag/selected_parent_chain.
For (b), the info is in each block (block.acceptingBlock) and you can get updates from MQTT.
from dagviz.
Holding off until the API is ready. It appears that we lack data to determine this programmatically. I really don't like the fact that the dataset will be larger due to that, but I guess there is no way around this.
from dagviz.
I can split this to two issues:
(a) highlighting in teal a chain block's accepted blocks
We will need to give you a new API (block.acceptedBlockHashes) and you can get updates for this using the MQTT dag/selected_parent_chain.
^ this one will remain in this issue and will defer until we supply this API.
(b) highlighting in teal from each block (when hovering) to its accepting block
The info is in each block (block.acceptingBlock) and you can get updates from MQTT.
^ this one will be in a new issue #28 .
from dagviz.
I noticed a bug with regards to this.
Link from chain block back to red blocks shouldn't be teal.
Link to DAGviz of the above blocks
To make a distinction between referenced blocks, I propose the following:
When hovering any block:
- incoming link from accepting block = bold teal (as today, done!)
- any linked block is highlighted darker (as today, done!)
- outgoing links to parent blocks and child blocks = bold
When hovering chain blocks (in addition to the above):
- outgoing links to accepted blocks = bold teal (block.acceptedBlockHashes, shouldn't include red blocks, bold teal overrides bold)
Notes:
- The group block.parentBlockHashes is going to have blue and red blocks.
- block.parentBlockHashes that are blue ∈ block.acceptedBlockHashes.
- block.parentBlockHashes that are red ∉ block.acceptedBlockHashes.
- The group block.acceptedBlockHashes may have blocks that are not in the group block.parentBlockHashes;
but these accepted blocks will be ancestors of the block (so parents of parents, or deeper ancestors);
so it is important that we can cold-teal the links to the accepted blocks on hover, even when they are not direct parents;
the link would span for example from block to parent to grandparent, likewise:
[ GP ]<==[ P ]<==[ B ]
P is a parent of B, and it is accepted by B
GP is not a parent of B, but it is accepted by B
both links should be bold-teal when hovering.
from dagviz.
Related Issues (20)
- Hovering all blocks and chain blocks - colors of links to related blocks HOT 1
- No color for anticone of selected tip HOT 2
- Update Accepting Block terminology to Merging Block HOT 1
- Add links to docs.kas.pa specific pages from the DAGviz explorer interface HOT 1
- Add link to Discord HOT 3
- Top Bar UI glitches HOT 1
- Confirmations progress proposal HOT 1
- Colorless block - to be grey - works on light and dark mode HOT 1
- Hover arrow stroke from SPC to SPC is narrower than to non-SPC HOT 1
- Red block mini cards have confirmations
- Block page > Header area > Related blocks HOT 1
- Copy button near block hash, tx hash, tx id and address, on hover
- Objective blocks per second calculation
- Transaction's Including Blocks
- Add Amount and Fee to Block's Transactions Table
- Inputs, outputs to link to other transactions
- Searching for a hash in the omni search box
- Panning UX
- Cannot drag blue score navigator on mobile
- Mobile Explorer interface fixes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dagviz.