Skip to content

Commit

Permalink
feat: Announce Pachli 2.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nikclayton committed Jul 29, 2024
1 parent 8c7293c commit e800680
Show file tree
Hide file tree
Showing 10 changed files with 502 additions and 0 deletions.
160 changes: 160 additions & 0 deletions _posts/2024-07-29-2.7.0-release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
---
layout: post
title: "Pachli 2.7.0 released"
date: "2024-07-29 09:00:00 +0200"
categories: pachli
image:
path: /assets/posts/2024-07-xx-2.7.0-release/og_image.png
---
Pachli 2.7.0 is now available. This release makes it easier to use Mastodon's search operators, prompts you if it looks like you're posting in a language other than the one you've specified, improves the UI when a post is filtered, as well as the usual bug fixes and other improvements.

<!--more-->

## New features and other improvements

### Search operators

Newer versions of Mastodon include "operators" you can add to your search.

For example, you can add `has:image` to your search to limit the results to only posts with images. Or `-has:image` if you want to exclude posts with images from the results.

Luca Hammer wrote a great explanatory blog post, [Mastodon Advanced Search Guide and Operators](https://lucahammer.com/2024/04/25/mastodon-advanced-search-guide-and-operators), which goes in to more detail.

Pachli now provides a UI allowing you to set these directly, without needing to know the specific syntax.

Tapping on the search icon in the toolbar opens the search screen as normal, but now there's a new "filter" icon to the right of where you enter text. It looks like this screenshot:

![Pachli search screen, with filter icon](/assets/posts/2024-07-xx-2.7.0-release/search-filter-closed.png)

Tapping the new filter icon shows the search operators, as in this screenshot:

![Pachli search screen, with filter operators open](/assets/posts/2024-07-xx-2.7.0-release/search-filter-open.png)

They are organised in three rows; the first row is high-level operators, allowing you to choose settings like:

- A specific account to include or exclude from the results
- A range of dates to search
- The language to search for
- Where to search

The middle row covers post attachments; images, video, sound files, polls, and so on.

The bottom row lets you limit the results to replies only, or exclude replies. And similarly, limit the results to sensitive content only, or exclude sensitive content entirely.

Tap any of them to open a dialog showing the specific options you can set.

You can select more than one option. Whenever an option is selected the filter icon shows an "!" badge to remind you an option is selected.

![Pachli search screen, with filter operators selected](/assets/posts/2024-07-xx-2.7.0-release/search-filter-selected.png)

Tapping the filter icon again closes the operators, which you can do if you want more space on the screen to see the search results.

If you close the operator list while any of them are set the exclamation badge stays on the filter icon to remind you.

![Pachli search screen, with filter operators selected while filters are closed](/assets/posts/2024-07-xx-2.7.0-release/search-filter-selected-closed.png)

While developing this feature I received very useful feedback from [@kaybeeqye@fosstodon.org](https://fosstodon.org/@kaybee335)

### The search keyboard pop up

While I was working on this I noticed if you:

1. Search
2. Open one of the search results
3. Press "Back"

then you're returned to the list of search results, *but* the keyboard focus is set back to the search text, and this causes the keyboard to pop up again, obscuring the results you probably want to look at.

So that's fixed too.

### Warn if you post in the wrong language

Mastodon expects you to accurately set the language of your post before posting. In Pachli you do this using the language selector when writing a post, at the top of the screen next to your avatar.

There are real-world accessibility problems if you set it incorrectly, including:

1. Mastodon's translation feature may not work correctly
2. When people follow you they can opt-in to only receive posts you send in a particular language. If you mis-label the language of your posts you may be inadvertently spamming your followers.

Pachli now makes it more difficult for you to set this incorrectly.

When you press the "Toot" button Pachli tries to determine the language the post is written in, and if it doesn't match the language you've selected -- within a certain level of confidence -- then a dialog pops up to ask you to confirm before sending.

In this example I've written the post in English, but the language is set to German ("DE" at the top-right of the screen).

![Language confirmation dialog](/assets/posts/2024-07-xx-2.7.0-release/language-confirmation.png)

The language detection runs entirely on your device. No information (whether about you, the content of your post, or anything else) leaves your device to do this, it remains private.

If you have installed Pachli from Google Play this feature uses Google's ML Kit library, which will send some information to Google, including version information (to check for updates to the language model) and metrics about performance.

This necessitated a change to the Pachli privacy policy. This is explained in more detail in the post "[Privacy policy update for Pachli from Google Play](/pachli/2024/07/02/privacy-policy.html)".

### Show author bylines

Recently Mastodon introduced support for including the author's Mastodon profile information (if available) when links are shared. This is used to show a byline for the author, and a link to their profile.

This is described in their blog post, "[Highlighting journalism on Mastodon](https://blog.joinmastodon.org/2024/07/highlighting-journalism-on-mastodon/)", written by Eugen Rochko.

The byline (if present) appears in the preview, per this screenshot.

![Post with article link and embedded byline](/assets/posts/2024-07-xx-2.7.0-release/post-with-byline.png)

If you use accessibility features a new accessibility action has been added specifically for opening the profile in the byline.

### Quicker filter editing

Suppose you created a filter showing a warning for posts matching the filter.

If you ever decide to change the filter you had to open your account preferences, then the "Filters" section, then find the matching filter, then edit it and save. And then tap "Back" multiple times to get back to your timeline.

No more. Posts matching a filter now have a button allowing you to edit the filter directly; maybe you want to delete the filter, maybe you want to change it from "warn" to "hide". One tap to edit the filter, one tap to save the changes, and one tap to get back to your timeline.

![Filtered post, with "Edit filter" and "Show anyway" buttons](/assets/posts/2024-07-xx-2.7.0-release/new-warn-filter.png)

### Smarter hashtag autocomplete

Hashtag autocomplete when writing a post is now smarter. The list of matching hashtags is now sorted by recent popularity, and a count of the number of times the hashtag has been used recently is also shown.

### Updates to translations

Languages with updated translations are:

- Chinese (Traditional, Simplified, and Hong Kong) by [Ricky](https://github.com/pachli/pachli-android/[email protected]) (their first contributions to Pachli)
- Finnish by [Kalle Kniivilä](https://github.com/pachli/pachli-android/[email protected])
- Irish by [Aindriú Mac Giolla Eoin](https://github.com/pachli/pachli-android/[email protected]) (their first contributions to Pachli)
- Norwegian translations by [sunniva](https://github.com/pachli/pachli-android/[email protected]) (their first contributions to Pachli)
- Spanish by [Miles Krell](https://github.com/pachli/pachli-android/[email protected]) and [Juan M Sevilla](https://github.com/pachli/pachli-android/[email protected])
- Swedish by [Luna Jernberg](https://github.com/pachli/pachli-android/[email protected])

If you would like to help improve Pachli's translation in to your language there's [information on how you can contribute](https://github.com/pachli/pachli-android/blob/main/docs/contributing/translate.md).

## Significant bug fixes

### Remove spurious punctuation in accessibility descriptions

[@TalkingDroid@tweesecake.social](https://tweesecake.social/@TalkingDroid) reported that the description of posts read by screenreaders and other assistive technology could include spurious commas without any text in-between. This was obviously a very jarring experience and reduced accessibility.

This was fixed in #[808](https://github.com/pachli/pachli-android/pull/808)

### Correctly calculate a post's length if it's a reply with a content-warning

[@BryanGreyson@social.tchncs.de](https://github.com/BDGreyson) reported (#[815](https://github.com/pachli/pachli-android/issues/815)) that if you replied to a post with a content-warning the length of your reply wasn't calculated correctly, and you might not be able to send the reply. That was fixed in #[821](https://github.com/pachli/pachli-android/pull/821).

### Ensure server filtering is enabled on GoToSocial 0.16 and above

The previous implementation of this wasn't working if the user was connected to a GoToSocial server running 0.16 or above. Now it does (#[826](https://github.com/pachli/pachli-android/pull/826))

### Ensure trending hashtag names are always visible

A display glitch meant the name of a hashtag in the "Trending hashtags" view might not always be fully visible. It is now (#[831](https://github.com/pachli/pachli-android/pull/831)).

### Support Mastodon features on the Glitch fork

The "Glitch" fork of the Mastodon codebase should support the same features as the stock Mastodon variant at the same version number, so Pachli now treats them as equivalent (#[828](https://github.com/pachli/pachli-android/pull/828)).

## Thank you

Thank you to everyone who took the time to report issues and provide additional followup information and screenshots.

[Download Pachli 2.7.0 from Google Play](https://play.google.com/store/apps/details?id=app.pachli), [F-Droid](https://f-droid.org/en/packages/app.pachli/), or the [GitHub release page](https://github.com/pachli/pachli-android/releases/tag/v2.7.0).
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit e800680

Please sign in to comment.