Commit graph

7155 commits

Author SHA1 Message Date
c578846b98 Support for searching local posts/users only 2023-11-15 08:43:53 +09:00
8398670530 Allow the search bar to be focused with '/' and closed with 'esc' 2023-11-10 06:35:49 +09:00
315d306eb4 Show loading circle on following searches too 2023-11-10 06:35:27 +09:00
e8b653737c Improved search experience
fixed invalid variable calls
changed to manage loading state tab by tab
made automatic tab selection less aggressive
made the api call fail-safe
fixed the format of the search result count
2023-11-09 07:12:43 +09:00
bdc1e9d9c6 If refactoring is so good, why isn't there refactoring 2? 2023-11-06 08:27:14 +09:00
3afad74579 Refactor search component 2023-11-06 07:44:00 +09:00
71b0ee672e Remove the loading state as soon as possible
i meant false, not true
2023-11-06 07:33:18 +09:00
88d9ee9904 Update readme 2023-11-06 05:52:18 +09:00
5d924d0a16 Add users from search results to the global store
fixes user cards
2023-11-06 05:37:08 +09:00
3551289a86 Restyle hashtag search results with touch devices in mind 2023-11-06 05:34:00 +09:00
ca5f98aeee Search the focused search type first 2023-11-06 03:55:44 +09:00
Ngô Ngọc Đức Huy
235c734d37
Use overflow: auto for description
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
Ngô Ngọc Đức Huy
deaef1d0b9
Use relative unit for font size 2023-11-05 09:21:01 +07:00
b808c84b55 Fix spell errors 2023-11-04 05:21:43 +09:00
42934f4299 Show search results asynchronously 2023-11-03 06:34:11 +09:00
8b63ade65b Update ja_pedantic translations 2023-11-03 06:16:51 +09:00
b35b8aeb01 Render search results using the Conversation component 2023-11-03 05:47:27 +09:00
a88fe43f03 Avoid direct access to properties 2023-11-03 05:26:51 +09:00
f54248e133 Format code 2023-11-03 05:26:04 +09:00
smitten
1b28ec3b72
Match UI i18n configuration to browser locales 2023-11-01 23:10:57 -04:00
smitten
c9dc8f00f9
Use window.navigator.language before interface i18n language 2023-10-30 23:56:53 -04:00
Oneric
beee99e733 Stop notifications boxes from change size over time
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 804ba0cdb6b353e0c959c68f44c6a1316c0d6b10 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
05fd58ec3f Merge remote-tracking branch 'upstream/develop' into bnakkoma 2023-10-23 04:26:49 +09:00
c85bdb5e54 Support OpenSearch protocol 2023-10-23 04:23:48 +09:00
e1dcfaa415 Hide search filter button from unregistered users 2023-10-23 04:20:22 +09:00
2677c6f846 Fix misplaced timeline menu/filter popover layer 2023-10-23 04:14:15 +09:00
99feef1027 Update ja_pedantic translations 2023-10-23 04:13:46 +09:00
e970b3fecd Make text-overflow work on timeline menu 2023-10-22 05:16:56 +09:00
Oneric
ab250c2f3a Explicitly set SameSite attribute for cookies
Modern browsers start to tighten down on third-party access to cookies.
E.g. in current Firefox, a warning about the userLanguage cookie was
shown since it did not yet explicitly set the SameSite attribute and the
default is about to change.

The cookie name being referred to as BACKEND_LANGUAGE_COOKIE_NAME
suggests it should be readable by the actual Akkoma backend, which can
live at a different domain than akkoma-fe. Thus explicitly enable
sharing with third-party sites.

No warnings were shown for other cookies, so I assume
this was the only one not yet setting SameSite.
2023-10-19 01:05:59 +02:00
e2f1870ee0 Fix timeline header overflow and line break
fixed by changing the class to the intended one
2023-10-17 13:51:55 +09:00
Norm
1de62fffcd
Update config.example.json link and example domain 2023-10-06 04:52:04 -04:00
Norm
306cea04a1
Use corepack in build instructions 2023-10-06 04:51:59 -04:00
Mergan
d9e1bc4d99 Re-added extension checking for still-image
- Bonus refactoring
2023-10-02 15:29:54 -07:00
FloatingGhost
52b0b6f008 add VI to messages.js 2023-10-02 13:28:23 +01:00
70ab970b42 Expand user fields on click 2023-09-28 06:23:36 +09:00
37a6f2be7b Shorten version name
'akkoma 3.10.0-akkoma+bnakkoma' is unnecessarily long
2023-09-28 06:20:04 +09:00
9d92a93892 Merge remote-tracking branch 'upstream/develop' into bnakkoma 2023-09-27 06:45:50 +09:00
179a21b71e Update README 2023-09-27 05:30:00 +09:00
e01dce03d8 Remove dead code 2023-09-27 05:28:29 +09:00
d53fc6923f Support the 'following' option on post searches 2023-09-27 05:23:24 +09:00
b3ab3be3be Check the availability of media search using instance flags 2023-09-27 04:31:13 +09:00
c14dfc1581 Improve support for favicon and PWA icons 2023-09-26 08:56:32 +09:00
8c0d8bb285 Give this fork a cool name
i don't want to complicate things, so the name of the software remains akkoma,
and i will, of course, continue to follow upstream changes as much as possible

p.s. michiru kagemori is peak character design
2023-09-26 08:50:20 +09:00
floatingghost
8afbe5e3bc Merge pull request 'Making still-image better' (#341) from Mergan/pleroma-fe:still-image-ultimate into develop
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma-fe/pulls/341
2023-09-25 13:29:29 +00:00
floatingghost
58be48d164 Merge pull request 'Do not copy all emojis in recentEmoji getter' (#340) from sn0w/akkoma-fe:feature/optimize-recent-emojis into develop
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma-fe/pulls/340
2023-09-25 13:24:12 +00:00
b4d3d28f1a Update ja_pedantic translations 2023-09-24 07:15:57 +09:00
a3b03a55f0 Update ja_pedantic translations 2023-09-24 06:59:22 +09:00
9820945335 Make line wraps in checkboxes okay 2023-09-24 04:27:54 +09:00
1015801074 Fix unintentionally layered buttons 2023-09-21 05:48:40 +09:00