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

Tweaks #1428

Merged
merged 4 commits into from
Aug 11, 2023
Merged

Tweaks #1428

merged 4 commits into from
Aug 11, 2023

Conversation

longhotsummer
Copy link
Contributor

  • fix judges in judgment table (I broke this a while ago :( )
  • cache request language, this gets called a lot (reduces SQL queries)
  • move labels below document title

image

image

{# djlint:off #}
{{ bench.judge.name }}{% if not forloop.last %},{% endif %}
{# djlint:on #}
{% endfor %}
</td>
Copy link
Contributor

Choose a reason for hiding this comment

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

@longhotsummer I thought we removed these because some judgments have many judges which makes the table look a bit odd. Maybe we could limit the list to 3 or 4?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, fair point. It's useful information for users to have, particularly those who know the judges.

Let's think it through in more detail, because a long list on mobile is particularly bad. Maybe we can do something like the first 3/4 and have "... and 3 more" or something.

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree. We'll need a better way of displaying long lists.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've removed this change based on feedback from the team that the judges aren't actually useful in the listing.

@longhotsummer
Copy link
Contributor Author

I've removed the judges column in the judgment table because (a) it's complex to get right on both wide and narrow displays, and (b) it's not critical information.

Copy link
Contributor

@actlikewill actlikewill left a comment

Choose a reason for hiding this comment

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

Looks good.

@longhotsummer longhotsummer merged commit a482c82 into main Aug 11, 2023
9 checks passed
@longhotsummer longhotsummer deleted the tweaks branch August 11, 2023 06:37
@sentry-io
Copy link

sentry-io bot commented Aug 21, 2023

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ InterfaceError: connection already closed /{frbr_uri} View Issue
  • ‼️ InterfaceError: connection already closed /{frbr_uri} View Issue
  • ‼️ InterfaceError: cursor already closed /{frbr_uri} View Issue
  • ‼️ InterfaceError: connection already closed /judgments/{code}/ View Issue
  • ‼️ TransactionManagementError: An error occurred in the current transaction. You can't execute queries until the end of the 'ato... /{frbr_uri} View Issue

Did you find this useful? React with a 👍 or 👎

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.

3 participants