Skip to content
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

Dashboard #1196

Merged
merged 12 commits into from Jul 15, 2023
Merged

Dashboard #1196

merged 12 commits into from Jul 15, 2023

Conversation

yohanboniface
Copy link
Member

Very basic version. Must land here so we can theme it in DSFR.

image

fix #1062
fix #391
cf #1048

Copy link
Contributor

@davidbgk davidbgk left a comment

Choose a reason for hiding this comment

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

I wonder if we want search results to match that new table style 🤔

umap/templates/umap/map_table.html Outdated Show resolved Hide resolved
umap/templates/umap/map_table.html Outdated Show resolved Hide resolved
@@ -0,0 +1,29 @@
{% load umap_tags umap_tags i18n %}
<table class="maps">
Copy link
Contributor

Choose a reason for hiding this comment

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

A <caption> is missing.

@@ -0,0 +1,29 @@
{% load umap_tags umap_tags i18n %}
<table class="maps">
<tr>
Copy link
Contributor

Choose a reason for hiding this comment

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

That tr should be in a thead

<th>{% blocktrans %}Owner{% endblocktrans %}</th>
<th>{% blocktrans %}Actions{% endblocktrans %}</th>
</tr>
{% for map_inst in maps %}
Copy link
Contributor

Choose a reason for hiding this comment

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

That part should be in a <tbody>

Copy link
Member Author

Choose a reason for hiding this comment

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

Can you elaborate on why we should add those tags ? I thought that HTML5 thing was to only add needed tags, to KISS :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Added <thead> and <tbody>, but not sure why we'd have a <caption>.

Note that all seems optional according to (my understanding of) MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table :)

@yohanboniface
Copy link
Member Author

I wonder if we want search results to match that new table style thinking

I'd say no, given those pages do not a address the same users/needs (we don't need status nor actions for example in the search results)

@yohanboniface yohanboniface force-pushed the dashboard branch 2 times, most recently from b0c1a6a to b14733e Compare July 13, 2023 19:36
@yohanboniface
Copy link
Member Author

Merging, so I can put it in today's release, and start working on it in DSRF version. Let's iterate to make it better :)

@yohanboniface yohanboniface merged commit 79da2a7 into master Jul 15, 2023
@yohanboniface yohanboniface deleted the dashboard branch July 15, 2023 07:36
@Pilaiv
Copy link

Pilaiv commented Jul 16, 2023

thank you for this new dashboard interface. I am new to github. Is here that I can suggest an addition in the "status" column, can you also add the detail "Who can see" in addition to "Who can modify"

@yohanboniface
Copy link
Member Author

Makes sense!

Something like this ?

image

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.

Getting list of one's own maps? [wishlist] Better distinction between own maps and others in "My maps"
3 participants