Skip to content

Dashboard#115

Merged
machshev merged 2 commits intolowRISC:masterfrom
machshev:dashboard
Mar 13, 2026
Merged

Dashboard#115
machshev merged 2 commits intolowRISC:masterfrom
machshev:dashboard

Conversation

@machshev
Copy link
Collaborator

Add support for generating a dashboard.

Copy link
Contributor

@AlexJones0 AlexJones0 left a comment

Choose a reason for hiding this comment

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

Overall this LGTM! I've just left a couple of comments / questions.

{% set flow = summary.flow_results[block_name] %}
<tr>
<td class="p-0">
<a href="{{ base_url }}{{ block_name }}.html"
Copy link
Contributor

@AlexJones0 AlexJones0 Mar 12, 2026

Choose a reason for hiding this comment

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

If it isn't too hard, can you either:

  1. Omit the button / hyperlink if no base URL is given, or
  2. Get the base URL from the index.json path parent if it is not provided.

Depending on whatever the intended behaviour is, because at the moment if I run this locally without specifying --base-url I just get broken links. I suspect the intended behaviour is (1), so that if we generate a dashboard without giving it a link to find block reports (e.g. on a hosted site), it just doesn't link anywhere.

I think it would be better to have base_url be str | None (default None), and then only link in the template if base_url is not none. That way you can still use --base_url "" if you want links local to the dashboard output directory and still have the links be defined.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That should be working now.

@machshev machshev force-pushed the dashboard branch 2 times, most recently from 0ebe1ea to a06e80f Compare March 12, 2026 14:06
Copy link
Contributor

@AlexJones0 AlexJones0 left a comment

Choose a reason for hiding this comment

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

I appreciate that all the changes may not yet have been made, but I've left a couple more nits for the latest pushes (sorry!)

@machshev machshev force-pushed the dashboard branch 2 times, most recently from 29b3636 to d27f2f0 Compare March 12, 2026 18:05
@machshev machshev requested a review from AlexJones0 March 12, 2026 18:05
This function can be used for more than just the HTML report CSS and JS
rendering. So pull it out and add unit tests.

Signed-off-by: James McCorrie <james.mccorrie@lowrisc.org>
Signed-off-by: James McCorrie <james.mccorrie@lowrisc.org>
Copy link
Contributor

@AlexJones0 AlexJones0 left a comment

Choose a reason for hiding this comment

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

Thanks @machshev, this LGTM.

@machshev machshev added this pull request to the merge queue Mar 13, 2026
Merged via the queue into lowRISC:master with commit 2c3f4af Mar 13, 2026
6 checks passed
@machshev machshev deleted the dashboard branch March 13, 2026 10:41
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