Skip to content

Conversation

@eternal-flame-AD
Copy link
Member

@eternal-flame-AD eternal-flame-AD commented Aug 4, 2025

Not sure if it shows up like this on your end as well. Tried fixing it, can't find a way to make App Logos show up on really small screens neatly so I think we should just hide it: it saves metered traffic as well.

Before:

image image

After:

image image

Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
@eternal-flame-AD eternal-flame-AD requested a review from a team as a code owner August 4, 2025 21:13
@eternal-flame-AD eternal-flame-AD removed the request for review from a team August 4, 2025 21:15
@codecov
Copy link

codecov bot commented Aug 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.54%. Comparing base (f04cb2d) to head (3d8bee8).
⚠️ Report is 5 commits behind head on upgrade-ui.

Additional details and impacted files
@@             Coverage Diff             @@
##           upgrade-ui     #819   +/-   ##
===========================================
  Coverage       79.54%   79.54%           
===========================================
  Files              56       56           
  Lines            2645     2645           
===========================================
  Hits             2104     2104           
  Misses            450      450           
  Partials           91       91           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

SHELL := /bin/bash
ifdef GOTOOLCHAIN
GO_VERSION=$(GOTOOLCHAIN)
else
Copy link
Member

Choose a reason for hiding this comment

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

I think we should display the app images even on small screens (I can already smell the issues that the app icons aren't visible :D)

Maybe it could be formatted like this?

image

Maybe this could even be the default formatting on all sizes.

Copy link
Member

Choose a reason for hiding this comment

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

Could we do this change in a separate PR independent of upgrade-ui?

Copy link
Member Author

@eternal-flame-AD eternal-flame-AD Aug 5, 2025

Choose a reason for hiding this comment

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

I suppose, it is complicated and I think discussion potentially change is needed.

I personally don't use this icon feature very often: reason simply being it kind of becomes an ad-hoc graphics design problem where the icon needs to be readable on any screen and the file has to be appropriately compressed so it loads fast. More often than not I find just text description being better.

For example I name my servers after mountain names: nokogiri, gorgonio, ontake, etc. It is simply much more recognizable to write the name in text than find an appropriate image for these mountains that displays well under any size.

I think that is also why most "uptime monitoring" apps don't have app icon feature, users have difficulty sourcing images that display well in a list or card grid like fashion and it's more clean and neat without it.

But I feel the text app name absolutely should be there for both accessibility and user choice reasons.

Copy link
Member

Choose a reason for hiding this comment

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

I personally agree with the usefulness of the icons, but I think there are a significant amount of users that would. Maybe we could hide the image if it's the default one, and only display it when the user has uploaded a custom one.

But I feel the text app name absolutely should be there for both accessibility and user choice reasons.

Agreed, but we should probably omit it, if the title is equal to the app name.

import TimeAgo from 'react-timeago';
import Container from '../common/Container';
import {Markdown} from '../common/Markdown';
import * as config from '../config';
Copy link
Member

Choose a reason for hiding this comment

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

The changes currently break <code> blocks that are wider than the message box. And also markdown formatted messages

image
{
  "title": "Title",
  "message": "hello\n```\nmycodeaoeouanetohunaotheuntaoheuntoaheunt                                                                 oheuntoheunthoeaunthaoeunth\n```\n",
  "priority": 5,
  "extras": { "client::display": { "contentType": "text/markdown" } }
}

Copy link
Member Author

Choose a reason for hiding this comment

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

Huhh, I did test with markdown formatted images. Let me double check ..

Should we just have a sample database/script that posts a list of various messages so it is easy to check nothing breaks?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, we definitely should have this.

Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
@eternal-flame-AD eternal-flame-AD force-pushed the upgrade-ui-fix-message-layout branch from a9ef013 to 8741d1e Compare August 5, 2025 20:31
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
@eternal-flame-AD
Copy link
Member Author

Some minor changes:

  • Using the narrow time format feels better to use the horizontal space better in kind-of md devices.
  • two small tweaks for development environment compatibility and consistency

@jmattheis jmattheis merged commit 43574a0 into upgrade-ui Aug 6, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants