Various small fixes #459

Merged
Oneric merged 4 commits from Oneric/akkoma-fe:varfixes-20251018 into develop 2025-10-24 18:56:42 +00:00
Owner
  • fixes image attachments overflowing their display box (#456; regression in last release (already before hotfix))
  • fixes document attachments description not being scrollable in the entire width (brought up in #456)
  • finally fixes failed media uploads bricking the frontend (#339)
  • copy AP IDs also for local posts (related to #166)

Seemed fine in initial checks, but more testing welcome

... apparently we still account for the response format of the legacy qvitter API in the frontend. This really should be all purged at some point

- fixes image attachments overflowing their display box (#456; regression in last release (already before hotfix)) - fixes document attachments description not being scrollable in the entire width (brought up in #456) - finally fixes failed media uploads bricking the frontend (#339) - copy AP IDs also for local posts (related to #166) Seemed fine in initial checks, but more testing welcome ... apparently we still account for the response format of the legacy qvitter API in the frontend. This really should be all purged at some point
This reverts commit e1b4d8f59a
and obsoletes commit c2db0e66ef
which already unset min-height in notifications where this
caused images to become effectively invisible.

Image previews are currently designed to always show the full image
scaled down as needed. With min-height though they were allowed to
take the full width even if it caused overflows in vertical direction.
This happened to look kind of fine with only easy-to-miss overflows
in the main post view if each preview row had the same amount of
columns, but creates jarring overlaps otherwise.

Fixes: #456
This is the canonical reference to a post and works best for lookups on
other servers. Previously this canonical ID was not accessible from the
frontend at all.

The "source" button continues to redirect to the preferred display URL
though (if set), since this is as the name suggests the preferred URL
for viewing the post in a browser (it might however not work when the
source instance restricts unauthenticated access even to local content).

This lifts the redundancy between the "source" and "copy link" buttons.

Since the legac qvitter API is still accounted for in the entity
normaliser, we just assume its external_url serves as both the canoncial
location and preferred display URL. It is dubious however, if this
codepath can even still be triggered at all and it likely makes more
sense to purge all remnants of the legacy API from the codebase.

Resolves: #166
The upload call hid errors and the entity normaliser lets them pass
through as well (assuming it must be an already "correctly" formatted
legacy qvitter response), which led to errors being added to the the
draft as if it was a valid attachment object.
On later use of this error exceptions occur breaking the frontend and
due to being saved as part of a draft this could only be recovered by
clearing local client data.

Fixes: #339
Ensure attachment descriptions fill full width
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
9dea46bc8a
Was noticeable by e.g. the scrollbar being shown somewhere inside the
container and not being able to scroll near the edges if each line of
text was sufficiently short.

Directly implements the suggesstion from
#456 (comment)
Oneric force-pushed varfixes-20251018 from 9dea46bc8a
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
to 93bbe267b4
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2025-10-18 18:08:57 +00:00
Compare
Oneric force-pushed varfixes-20251018 from 93bbe267b4
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
to 66b026561f
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful
2025-10-24 18:29:02 +00:00
Compare
Author
Owner

nobody complained and i didn’t notice issues either, so seems this is (hopefully) at least not worse than before

nobody complained and i didn’t notice issues either, so seems this is (hopefully) at least not worse than before
Oneric merged commit b13ecbcf6f into develop 2025-10-24 18:56:42 +00:00
Oneric deleted branch varfixes-20251018 2025-10-24 18:56:43 +00:00
Sign in to join this conversation.
No description provided.