Commit Graph

3633 Commits

Author SHA1 Message Date
floatingghost ed0b403c33 Merge pull request 'Auto-approve followbacks (frontend part)' (#365) from Oneric/akkoma-fe:followbacks-fe into develop
ci/woodpecker/push/woodpecker Pipeline was successful Details
Reviewed-on: #365
2024-02-20 16:24:37 +00:00
Oneric 050c7df2e6 Display profile background of other users
ci/woodpecker/pr/woodpecker Pipeline was successful Details
And add a new frontend setting to hide other people's background.
2024-02-14 18:44:57 +01:00
Oneric a77a9e04d9 Expose new server-side permit_followback setting
ci/woodpecker/pr/woodpecker Pipeline was successful Details
Added to backend in AkkomaGang/akkoma#674
2024-02-04 22:19:14 +01:00
Hazel Koehler ea9ad4d600 fix "always show content warning" setting
ci/woodpecker/pr/woodpecker Pipeline was successful Details
2023-12-20 12:39:31 -05:00
Hazel Koehler 34e2800f59 add button to toggle the spoiler / CW field
ci/woodpecker/pr/woodpecker Pipeline was successful Details
2023-12-16 14:44:26 -05:00
Hazel Koehler 3d65eccf04 use main emoji button for spoiler / CW field 2023-12-16 13:37:59 -05:00
floatingghost aee97fa948 Merge pull request 'Re-added extension checking for still-image' (#346) from Mergan/pleroma-fe:still-image-ultimate into develop
ci/woodpecker/push/woodpecker Pipeline was successful Details
Reviewed-on: #346
2023-12-15 12:24:07 +00:00
floatingghost 7da1687f31 Merge pull request 'Use relative font size and set appropriate overflow behavior' (#355) from xarvos/pleroma-fe:update-css into develop
ci/woodpecker/push/woodpecker Pipeline was successful Details
Reviewed-on: #355
2023-12-15 12:12:28 +00:00
floatingghost a8f193d4bd Merge pull request 'Stop constant movement of notifications due to changing timestamps' (#353) from Oneric/akkoma-fe:notification-writhing into develop
ci/woodpecker/push/woodpecker Pipeline was successful Details
Reviewed-on: #353
2023-12-15 11:57:47 +00:00
Oneric c524a47e6f Drop broken "@ symbol as icon" setting
ci/woodpecker/pr/woodpecker Pipeline was successful Details
It was merged into pleroma-fe on 2022-02-03 in
76547fe66d and imported
into akkoma-fe on 2022-06-08 with the merge commit
f6cf509a04.

However, something went wrong in the merge and while the setting
and its infrastructure exist, it is never used anywhere and @ is
always displayed as text.

Given it existed in this broken state for nearly one and a half years,
never worked on akkoma-fe and no bugs were filed about this, it appears
nobody cares, so let’s just remove it.
2023-11-15 23:36:19 +01:00
Ngô Ngọc Đức Huy 235c734d37
Use overflow: auto for description
ci/woodpecker/pr/woodpecker Pipeline was successful Details
Previously it sets overflow: scroll, so there's an unnecessary
horizontal scroll.
overflow: auto only shows scrollbar when it overflows
2023-11-05 09:32:19 +07:00
Oneric beee99e733 Stop notifications boxes from change size over time
ci/woodpecker/pr/woodpecker Pipeline was successful Details
Notifications about favourites and follows use .notification-right,
notifications about replies instead use .heading-right.

Previously only the former set a min-width, however the
chosen value of 3em was too small to fit the worst case.
As a consequence, when the timestamp text changes over time,
its element width changes, which may result in neighbouring text
(no longer) needing to wrap to a new line in turn changing the size
of the whole notification box pushing older notification boxes down/up.

These constant movements at the side of the screen can be quite
annoying and confusing when the cause cannot be immediately discerned.

Avoid this, by reserving enough space for any timestamp.

For English, the worst case is the five-character 'XXmin', since the
short identifier for minutes is the longest with three letters.
With two exceptions, all other current localisation also do not exceed
three letters in any short unit identifier up to days.
However, some localisations (e.g. Polish) additionally insert a space
between numerical value and unit. This matches SI recommendations
pushing the worst case to 6 characters.

6 characters will be sufficient for timestamps up to 3 weeks in all
languages (minus prev exceptions), which seems reasonable enough
as beyond this timestamps rarely change anyway.

The aforementioned exceptions being Vietnamese and Occitan,
but in the current localisation all or the relevant short unit
identifiers are identical to the long forms indicating this is
just due to incomplete translation.
Indeed, Vietnamese Wikipedia (read through machine translation) suggests
“ph” is commonly used as unit identifiers for minutes, but the current
localisation fully spells it out as “phút”.
2023-10-25 00:37:09 +02:00
Oneric ccb0ffdc8a Don't show direction in notification timestamps
Currently all notifications except follow-related once include
and explicit direction text. (It missing in follow notifs is due to an
omission in 804ba0cdb6 which only added
the newly introduced with-direction to status-related notifs. Before,
presumably all notifs included direction text.)

But in the notification tray horizontal space is scarce
and notifs can already be assumed to only come from the past.
While it might not be too bad for the English localisation’s 4-letter
' ago' suffix, e.g. the Indonesian localisation’s ' yang lalu' needs
10 letters.

Thus instead of fixing the omission for follow-related notifs,
drop direction text from all notification timestamps.
2023-10-24 23:28:45 +02:00
Mergan d9e1bc4d99 Re-added extension checking for still-image
ci/woodpecker/pr/woodpecker Pipeline was successful Details
- Bonus refactoring
2023-10-02 15:29:54 -07:00
Mergan 1056b89fd1 Disabled aggressive matching for reduced motion (we search for gif now)
ci/woodpecker/pr/woodpecker Pipeline was successful Details
2023-09-12 04:32:01 -07:00
Mergan 3e64d78d05 An oopsie 2023-09-12 04:17:28 -07:00
Mergan 3947aafeba Aligning canvas to image 2023-09-12 04:08:47 -07:00
Mergan 345934c2f3 Make label visible on avatar 2023-09-12 03:37:05 -07:00
Mergan 42a13b0f1b Modify label 2023-09-12 03:35:58 -07:00
Mergan e13c4b6b85 Revamped still-image 2023-09-12 02:48:53 -07:00
FloatingGhost 3b4208ea41 debounce emoji searching
ci/woodpecker/push/woodpecker Pipeline was successful Details
2023-08-04 16:48:13 +01:00
floatingghost 856324fa26 Merge pull request 'Make favicon next to post username use Still-Image functionality' (#327) from Mergan/pleroma-fe:still-image-instance-favicon into develop
ci/woodpecker/push/woodpecker Pipeline failed Details
Reviewed-on: #327
2023-08-04 15:09:56 +00:00
floatingghost 5a9322d2c7 Merge pull request 'StillImage: Improved animated image detection' (#335) from yukijoou/akkoma-fe:still-image-better-gif-detection into develop
ci/woodpecker/push/woodpecker Pipeline was successful Details
Reviewed-on: #335
2023-08-04 15:09:32 +00:00
floatingghost 2b05a738c9 Merge pull request 'Add replying info for redraft' (#332) from xarvos/pleroma-fe:fix-reply-redraft into develop
ci/woodpecker/push/woodpecker Pipeline was successful Details
Reviewed-on: #332
2023-08-04 14:56:20 +00:00
tusooa 29cfdcbbcd Add load more to blocks/mutes
ci/woodpecker/push/woodpecker Pipeline failed Details
2023-08-04 15:54:04 +01:00
Yuki Joou 43d0a24547 StillImage: Improved animated image detection
ci/woodpecker/pr/woodpecker Pipeline was successful Details
This patch makes StillImage's animation detection return early in cases
where we can't detect the mimetype of the image. It also sets the image
as animated in those cases if the user agent wants reduced motion.

As reduced motion is an accessibility setting, I think it's best to use
a "better safe than sorry" approach, it's better to accidentally mark
something as animated that isn't than to have unblocked animations.
2023-08-03 16:34:28 +02:00
Yuki Joou 51ebe643d5 components: Honour 'prefers reduced motion' setting in many components
ci/woodpecker/pr/woodpecker Pipeline was successful Details
This helps accessibility for motion-sensitive people such as myself, and
can improve battery life in "battery saving" mode on most devices
2023-08-03 14:45:02 +02:00
Ngô Ngọc Đức Huy 7c14e1a5bd
Add replying info for redraft
ci/woodpecker/pr/woodpecker Pipeline was successful Details
2023-08-02 08:40:19 +07:00
David 0da0e2c814 Make favicon next to post username use Still-Image functionality
ci/woodpecker/pr/woodpecker Pipeline was successful Details
2023-07-24 01:08:11 -07:00
floatingghost a249baea8c Merge pull request 'Make emoji reactions use Still-Image functionality' (#326) from Mergan/pleroma-fe:still-image-emoji-reactions into develop
ci/woodpecker/push/woodpecker Pipeline was successful Details
Reviewed-on: #326
2023-07-21 19:42:41 +00:00
David 32dc55b07c Make emoji reactions use Still-Image functionality
ci/woodpecker/pr/woodpecker Pipeline was successful Details
2023-07-20 17:20:54 -07:00
David 91eab22d77 Simplified and fixed and/or oopsie
ci/woodpecker/pr/woodpecker Pipeline was successful Details
2023-07-20 17:18:59 -07:00
David e2125c57d6 Turn on by default
ci/woodpecker/pr/woodpecker Pipeline was successful Details
2023-07-20 16:26:52 -07:00
David e0a6418e91 Add prefers-reduced-motion support 2023-07-20 16:14:36 -07:00
FloatingGhost 2f479c670f Add DM settings 2023-05-23 13:46:59 +01:00
floatingghost ecb6be2152 Merge pull request 'fix unfinished post being sent when scrolling' (#312) from denys/akkoma-fe:accidental-mobile-posts into develop
ci/woodpecker/push/woodpecker Pipeline was successful Details
Reviewed-on: #312
2023-05-23 11:38:28 +00:00
floatingghost 9e4985e225 Merge pull request 'fix apply theme button without page refresh' (#309) from denys/akkoma-fe:fix-apply-theme into develop
ci/woodpecker/push/woodpecker Pipeline was successful Details
Reviewed-on: #309
2023-05-23 11:37:24 +00:00
Denys Nykula 8c6ccc321d fix unfinished post being sent when scrolling
ci/woodpecker/pr/woodpecker Pipeline was successful Details
2023-05-15 03:11:07 +03:00
floatingghost 596ae7e377 Merge pull request 'fix dropdown-item-icon and form controls using missing variables' (#307) from denys/akkoma-fe:missing-sass-vars into develop
ci/woodpecker/push/woodpecker Pipeline was successful Details
Reviewed-on: #307
2023-05-08 15:29:58 +00:00
Denys Nykula 2a76be56e7 fix apply theme button without page refresh
ci/woodpecker/pr/woodpecker Pipeline was successful Details
2023-05-01 20:54:18 +03:00
Denys Nykula 661a98d38d order bubble after public in sidebar like in other two menus
ci/woodpecker/pr/woodpecker Pipeline was successful Details
2023-05-01 20:53:29 +03:00
Denys Nykula 94d640f9f1 fix dropdown-item-icon and form controls using missing variables
ci/woodpecker/pr/woodpecker Pipeline was successful Details
2023-05-01 20:50:31 +03:00
solidsanek db33fe8ee2 Drafts: Fix drafts erasing edits and redrafts
ci/woodpecker/pr/woodpecker Pipeline was successful Details
2023-04-09 11:02:13 +02:00
FloatingGhost 14cedc5ed1 don't crash if `class` isn't a list
ci/woodpecker/push/woodpecker Pipeline was successful Details
2023-04-01 07:55:47 +01:00
Ngô Ngọc Đức Huy 47fc082fb9
Fix floating point error for poll expiry
ci/woodpecker/pr/woodpecker Pipeline was successful Details
Previous code multiply with 0.001 before multiplication which leads to a
floating point error.  By changing it to division by 1000 after
multiplication this is avoided.
2023-03-24 20:48:02 +07:00
FloatingGhost 7e1b1e79f4 simplify timeline vibility checks
ci/woodpecker/push/woodpecker Pipeline was successful Details
2023-03-18 20:22:47 +00:00
FloatingGhost b92b2f74a4 add timeline visibility setting parsing 2023-03-18 20:01:05 +00:00
FloatingGhost 7361f4e77e Add checks for currentUser on sidebar
ci/woodpecker/push/woodpecker Pipeline was successful Details
2023-03-16 16:41:37 +00:00
FloatingGhost 42ab3eada4 Remove links from navs if we can't see the timeline
ci/woodpecker/push/woodpecker Pipeline was successful Details
2023-03-15 22:20:54 +00:00
flisk 6fdef479d0 add recently used emojis panel to emoji picker (#283)
ci/woodpecker/push/woodpecker Pipeline was successful Details
~~(not intended for merging yet, just submitting this for preliminary review and discussion)~~

this patch adds a tab with recently used emojis to the emoji picker: https://akko.lain.gay/notice/ASoGCtyoiXbYPJjqpk

there's a couple of things i'm ~~still trying to work out~~ not totally happy with and i'd appreciate any feedback on them:

* the recentEmojis getter is called very frequently and has to do a possibly somewhat expensive lookup of emoji objects by their `displayName` each time, which i'm not sure is ideal
* ~~emoji reactions on posts added through the picker are picked up by the recentEmojis module, but clicks on existing emoji reactions are not, because `addReaction` in `react_button.js` only currently receives the replacement and not the full emoji object (if there even is one wherever that method is called from)~~ this works now and does the same stupid full search of all emojis by their name which i guess is less bad because this only happens when you hit a reaction emoji button that already existed

Reviewed-on: #283
Co-authored-by: flisk <akkomadev.mvch71fq@flisk.xyz>
Co-committed-by: flisk <akkomadev.mvch71fq@flisk.xyz>
2023-03-10 19:10:42 +00:00