diff --git a/v3/assets/a11y/report.png b/v3/assets/a11y/report.png new file mode 100644 index 0000000..d73e634 Binary files /dev/null and b/v3/assets/a11y/report.png differ diff --git a/v3/assets/a11y/violations.png b/v3/assets/a11y/violations.png new file mode 100644 index 0000000..5480d12 Binary files /dev/null and b/v3/assets/a11y/violations.png differ diff --git a/v3/feed.rss b/v3/feed.rss index 99f8d00..b18c7e9 100644 --- a/v3/feed.rss +++ b/v3/feed.rss @@ -2,139 +2,177 @@ GNU social V3https://gnusocial.rocks/v3/index.html Development blog where we announce our progress.en -Tue, 18 Jan 2022 13:13:44 +0000 -Tue, 18 Jan 2022 13:13:44 +0000 +Tue, 18 Jan 2022 13:56:41 +0000 +Tue, 18 Jan 2022 13:56:41 +0000 -Updates: Local Groups +Milestone: Automatic Accesibility (A11Y) testing

+

We use pa11y-ci to run our accesibility testing on all GNU social +pages. The process of setting this up was a bit of a ride, but the +results are quite useful:

-

We haven't implemented federation of Groups yet, but group tags and discussion -on how unbounded groups can be federated via ActivityPub has already started.

+

Accesibility report generated by Pa11y

-

Concerning federation of traditional groups, we will port our logic from v2 and -translate following the same rules as AndStatus because they work, as yvolk beautifully stated :)

+

We also take screenshots of all pages and compare them with the +previous, allowing us to spot (possibly) unintended changes in the UI.

-

Finally, also note that the group actors now have "self-tags", as the other actors, which was a milestone.

+

The way we do this is by using a docker image derived from node, +with pa11y-ci installed, which doesn't have an entrypoint. This then +allows us to spin up a webserver, PHP and Redis containers, mimiking a +staging environment. pa11y-ci uses a JSON config file to tell it +what to do, and handles visiting all pages with the given resolution, +logging in and registering any accesibility violations found.

+

Accesibility violations found by Pa11y

+ +

Note that most of these errors are actually the same.

+ +

The saved screenshots are then used to detect changes, with +ImageMagik's compare, to generate a report on visual changes.

+ +

Screenshot comparisons

+ +

We were already striving for making GNU social accesible, which is +clear from the really low number of violations found, but there's +always room for improvement :)

-]]>
https://gnusocial.rocks/v3/updates-local-groups.html -https://gnusocial.rocks/v3/./updates-local-groups.html +]]>https://gnusocial.rocks/v3/milestone-automatic-accesibility-a11y-testing.html +https://gnusocial.rocks/v3/./milestone-automatic-accesibility-a11y-testing.html GNU social development team -Tue, 18 Jan 2022 13:13:38 +0000
+Tue, 18 Jan 2022 13:56:33 +0000 -Milestone: Pinned Notes +Milestone: ActivityStreams 2.0 and WebFinger -

With this feature, an actor has more ways to express itself to the community as a whole. This activity is federated using Mastodon's featured collection extension.

+

The primary use of GNU social is to access the free network, be it ActivityWeb (ActivityPub) or Fediverse (OStatus).

+ +

Contrary to the original plan, we have merged The Free Network Module, WebFinger and LRDD into a single component named FreeNetwork. Likewise, ActivityPub and ActivityStreams 2.0 was kept the same plugin instead of separated.

+ +

Understanding the organisation chosen

+ +

The FreeNetwork component adds WebFinger (RFC7033) lookup and implements Link-based Resource Descriptor Discovery (LRDD) based on RFC6415, Web Host Metadata. It takes and produces both Extensible Resource Descriptor (XRD) and JSON (JavaSript Object Notation). Furthermore, and different from v2, every federation protocol will use the same distribution queue maintained by this component instead of holding its own.

+ +

We originally intended to have data modelling plugins that would extend the GS's "language". We then understood that it added more complexity than we wanted without any considerable advantage because we cannot dissociate data reception handling of the protocol itself.

+ +

Situation Report

+ +

ActivityPub already translates between activity and entity and allows plugins to extend it (thus serving a similar purpose to data modelling and representation plugins).

+ +

GNU social v3 now supports mentions, which is a process that starts in the Posting component. The processing of local mentions naturally finds its entire handling here.

+ +

For remote ActivityPub mentions, ActivityPub handles it aided by the FreeNetwork component).

+ +

Next steps

+ +

We still have to port OStatus (and ActivityStreams 1.0) and implement the distribution by FreeNetwork, although the base work is done. Regarding ActivityPub, although some of it already works, expanding the existing plugins to supplement ActivityPub, and full validation isn't ready yet. We will most likely finish the implementation of the whole federation stack in the next week.

+ + + + + + + + + + + + + + + + + + + + + + + + + -

Source -Default view of the actor profile, showing the 'Pin this note' action, and its respective representation

-]]>
https://gnusocial.rocks/v3/milestone-pinned-notes.html -https://gnusocial.rocks/v3/./milestone-pinned-notes.html +]]>https://gnusocial.rocks/v3/milestone-activitystreams-20-and-webfinger.html +https://gnusocial.rocks/v3/./milestone-activitystreams-20-and-webfinger.html GNU social development team -Tue, 18 Jan 2022 12:36:14 +0000
+Tue, 18 Jan 2022 13:56:12 +0000 -Milestone: Notes with LaTeX +Milestone: Actor colour theme plugin LaTeX content types is now supported.

+

Actors are now able to set their own colours, through a brand new plugin: "Oomox". +Those accustomed to customising their own desktop should know where the name comes from ;)

-

+

Here's how it works!

-

latex

+

The Oomox plugin main class catches the "PopulateProfileSettingsTabs" event upon visiting user panel.

-

-

+
public function onPopulateProfileSettingsTabs(Request $request, array &$tabs): bool
+{
+    $tabs[] = [
+        'title'      => 'Light theme colours',
+        'desc'       => 'Change the theme colours.',
+        'controller' => C\Oomox::oomoxSettingsLight($request),
+    ];
+
+    $tabs[] = [
+        'title'      => 'Dark theme colours',
+        'desc'       => 'Change the theme colours.',
+        'controller' => C\Oomox::oomoxSettingsDark($request),
+    ];
+
+    return Event::next;
+}
+
+ +

As made evident by the code, two new tabs are added to profile settings, light and dark theme colours. +Since the page styling follows the system theme, actors may want to style each theme differently, therefore they are treated separately.

+ +

The actor's defined colours are then saved in the respective entity and cached. +Finally, the colour preferences are used to render the corresponding CSS file which defines the various colour variables used:

+ +
public function oomoxCSS(): Response
+{
+    $user = Common::ensureLoggedIn();
+
+    $oomox_table = PluginOomox::getEntity($user);
+    if (is_null($oomox_table)) {
+        throw new ClientException(_m('No custom colours defined', 404));
+    }
+
+    $content = Formatting::twigRenderFile('/oomox/root_override.css.twig', ['oomox' => $oomox_table]);
+    return new Response($content, status: 200, headers: ['content-type' => 'text/css']);
+}
+
+ +

Please note, upon rendering for the first time, page render may be blocked until the resulting file is served. Nonetheless, subsequent page renders +won't experience the issue again. That is, if the file is cached by the browser.

+ +

How it looks

+ +

Tabs added using the "PopulateProfileSettingsTabs" event: +User panel Oomox sections

+ +

Changing the dark theme colours! +Dark theme colours selection

+ +

The result of given changes, please note it's no longer a 'dark' theme. +Given a valid colour, it's the actor's responsibility whether or not the colours make sense. So, go wild! +The resulting colours in action!

- -]]>
https://gnusocial.rocks/v3/milestone-notes-with-latex.html -https://gnusocial.rocks/v3/./milestone-notes-with-latex.html -GNU social development team -Tue, 18 Jan 2022 11:41:47 +0000
- -Milestone: Notes with Markdown -Markdown content types is now supported.

- -

- -

Markdown

- -

-

- - - - - - - - -]]>
https://gnusocial.rocks/v3/milestone-notes-with-markdown.html -https://gnusocial.rocks/v3/./milestone-notes-with-markdown.html -GNU social development team -Tue, 18 Jan 2022 11:40:49 +0000
- -Milestone: Web Monetization -Web Monetization is being proposed as a W3C -standard at the Web Platform Incubator Community Group.

- -

GNU social now supports that initiative with the Web Monetization plugin.

- -

With this, we also introduce an ActivityPub (FEP pending) GS extension -gs:webmonetizationWallet. This enables actors to support other actors with Web -Monetization in the fediverse.

- -

It looks like this:

- -

Own profile

- -

- -

In the profile of other actors

- -

- - - - - - - - - - - -]]>
https://gnusocial.rocks/v3/milestone-web-monetization.html -https://gnusocial.rocks/v3/./milestone-web-monetization.html -GNU social development team -Tue, 18 Jan 2022 01:57:40 +0000
- -Milestone: Mute notifications from a conversation -If a conversation in which you have interacted becomes very active and you wish -to stop receiving notifications derived from that, it is now possible: -

@@ -147,10 +185,10 @@ to stop receiving notifications derived from that, it is now possible: -]]>
https://gnusocial.rocks/v3/milestone-mute-notifications-from-a-conversation.html -https://gnusocial.rocks/v3/./milestone-mute-notifications-from-a-conversation.html +]]>https://gnusocial.rocks/v3/milestone-actor-colour-theme-plugin.html +https://gnusocial.rocks/v3/./milestone-actor-colour-theme-plugin.html GNU social development team -Tue, 18 Jan 2022 01:39:10 +0000
+Tue, 18 Jan 2022 13:56:12 +0000 Milestone: Albums ]]>https://gnusocial.rocks/v3/milestone-albums.html https://gnusocial.rocks/v3/./milestone-albums.html GNU social development team -Tue, 18 Jan 2022 01:23:27 +0000 +Tue, 18 Jan 2022 13:56:12 +0000 Milestone: Collections .

]]>
https://gnusocial.rocks/v3/milestone-collections.html https://gnusocial.rocks/v3/./milestone-collections.html GNU social development team -Tue, 18 Jan 2022 00:21:29 +0000
+Tue, 18 Jan 2022 13:56:12 +0000 -Milestone: ActivityPub +Milestone: Documentation and Tests Infrastructure ActivityPub Plugin source.

+

>WIKI Milestone entry

-

This milestone could be just this, what's different from any other ActivityPub -plugin? How is it better than v2's?

- -

It's better in how it's organised and extensible, check the EVENTS.md for examples.

- -

Video of GNU social v3 exchanging notes with GNU social v2.

- - - - - - - - - - - - - - - - - - -]]>
https://gnusocial.rocks/v3/milestone-activitypub.html -https://gnusocial.rocks/v3/./milestone-activitypub.html -GNU social development team -Fri, 10 Dec 2021 16:34:39 +0000
- -Milestone: Tags -GNU social now has its documentation available in +https://docs.gnusocial.rocks/. It features four +different books. These are automatically generated from the source using mdBook.

-

Due to the high density of technical aspects, we decided to keep this blog -post more on the light side and focus on explaining the new functionalities. -Check our Wiki Milestone entry for all the juicy details.

+

Only the development book is in an elaborated state, the other books are +holding for more ready code.

-

>WIKI Milestone entry

- -

GNU social v2 has tags and lists. It allows you to:

+

And two of them are new:

    -
  • search for an #hashtag and see a stream of notes tagged with it;
  • -
  • make lists of actors and mention them with @#list_name
  • -
  • self tag and enter a list of people in your instance with the same self tag
  • +
  • The Developer is both intended to guide third-party plugin developers and to make it easier of contributing to the code.
  • +
  • The Designer is the most recent of the four and came from a necessity of keeping some standardization between templates and ensuring the same principles are kept in mind when designing new themes.
-

It is limited with regards to federation of self tags and the @#list_name can't -target remote actors even when they are inside your list.

+

And two of them are updates from existing documentation:

+ + + +

Together with the documentation we've introduced a +wiki. Its purpose is to walk-through decisions, +convention, terminology. It's where we document the reasoning the development team went +through before implementing more sophisticated functionalities.

+ +

Finally, when the documentation doesn't explain, and to ensure the whole code +is properly tested, we have the +tests. And the coverage is available here. At the time of writing the coverage has 98.76% code lines tested.

+ + + -

What's new with v3?

-

Federated self tags

-

We now federate self tags and lists, so that constraint from v2 was moved out of -the way.

-

In the future, the use of these tags can allow you to find people, -groups and even individual notes that have a tag you're interested in. We only -mean filtering, not magic recommendation algorithms.

-

Tag Wrangling

-

Proposed by @licho in Tue, 02 Jun 2019 17:52:07 GMT:

-
-

I like the tag wrangling feature of AO3, which I think would help for cases of synonymous tags like #introduction and #introductions

-

https://archiveofourown.org/wrangling_guidelines/11

-

Is it feasible for !gnusocial ? Or would it cause problems?

-
-

The answer is yes and will be released with v3. With the addition of -Languages in notes and actors there was little excuse not to be feasible.

-

-

-

Whenever you post a note containing tags, you can choose whether to -make those tags canonical. This means that, for instance, the tags -#run and #running become the 'same', meaning that when you click on -the link for the #run tag, you'll also see notes tagged #running. You -can opt out of the behaviour by unchecking the "Make note tags -canonical". An identical process occurs for people tags.

-

-

Internally, this transformation is accomplished by splitting the tag -into words and stemming each word.

-

Related Tags

-

In a tag feed, you can see tags that are often used together with the -one you're seeing. This can be useful, for instance, for finding other -content you'd be interested in.

-

-

-

Improved Tag feeds

-

-

When you click on a tag, be it a note tag or a person tag, you'll see -a feed of notes/people with that tag. You can also edit the feeds you -see in your left panel, so you can follow a given tag.

-

Mute Self Tags and Note Tags

-

- -

-

If you don't like seeing a given tag in your feeds, for whatever -reason, you can choose to mute it. You can mute a note tag or a person -tag, in which case you wouldn't see any notes from people with that -tag.

@@ -402,8 +380,143 @@ tag.

-]]>
https://gnusocial.rocks/v3/milestone-tags.html -https://gnusocial.rocks/v3/./milestone-tags.html +]]>https://gnusocial.rocks/v3/milestone-documentation-and-tests-infrastructure.html +https://gnusocial.rocks/v3/./milestone-documentation-and-tests-infrastructure.html GNU social development team -Thu, 09 Dec 2021 15:21:18 +0000
+Tue, 18 Jan 2022 13:56:12 +0000 + +Milestone: Mute notifications from a conversation +If a conversation in which you have interacted becomes very active and you wish +to stop receiving notifications derived from that, it is now possible: +

+ + + + + + + + + + + + +]]>
https://gnusocial.rocks/v3/milestone-mute-notifications-from-a-conversation.html +https://gnusocial.rocks/v3/./milestone-mute-notifications-from-a-conversation.html +GNU social development team +Tue, 18 Jan 2022 13:56:12 +0000
+ +Milestone: Notes and Actors with languages +Well, it's that, our notes now have a language attribute.

+ +

... All right, all right, it's not just it.

+ +

Here's what comes with it:

+ + + +

Here's how it looks

+ +

First, the user panel section where the desired preferences are selected: +User panel language settings section

+ +

Upon sending the previous form, the user is redirected to order their selection: +Ordering the selections made in previous page

+ +

Finally, when posting the language with the highest priority is selected by default.

+ +

However, by accessing "Additional options", another language may be selected. The resulting +note will have the html lang attribute according to it.

+ +

The posting widget itself: +Selecting the language of a note when posting

+ +

What does this mean?

+ +

We can now show you the notes you can read, but for groups, this mean that you +can access umbrella groups and filter the feeds to see what's in your language +and even region.

+ +

For too long the fediverse struggled with languages, this step makes it easier +for actual internationalization of the free network.

+ +

A marvellous feed filtered by note language

+ +

+ + + + + + + + + + + + + + + + + +]]>
https://gnusocial.rocks/v3/milestone-notes-and-actors-with-languages.html +https://gnusocial.rocks/v3/./milestone-notes-and-actors-with-languages.html +GNU social development team +Tue, 18 Jan 2022 13:56:12 +0000
+ +Milestone: Notes with LaTeX +LaTeX content types is now supported.

+ +

+ +

latex

+ +

+

+ + + + + + + +]]>
https://gnusocial.rocks/v3/milestone-notes-with-latex.html +https://gnusocial.rocks/v3/./milestone-notes-with-latex.html +GNU social development team +Tue, 18 Jan 2022 13:56:12 +0000
+ +Milestone: Notes with Markdown +Markdown content types is now supported.

+ +

+ +

Markdown

+ +

+

+ + + + + + + + +]]>
https://gnusocial.rocks/v3/milestone-notes-with-markdown.html +https://gnusocial.rocks/v3/./milestone-notes-with-markdown.html +GNU social development team +Tue, 18 Jan 2022 13:56:12 +0000
diff --git a/v3/index.html b/v3/index.html index 1ba2444..bd53763 100644 --- a/v3/index.html +++ b/v3/index.html @@ -45,42 +45,28 @@ Our objective is to further differentiate GNU social from the alternative softwa

Blog

January 2022

-

December 2021

- -

November 2021

- -

September 2021

- -

August 2021

- -

May 2021

-
All tagsSubscribe
diff --git a/v3/milestone-automatic-accesibility-a11y-testing.html b/v3/milestone-automatic-accesibility-a11y-testing.html new file mode 100644 index 0000000..8582877 --- /dev/null +++ b/v3/milestone-automatic-accesibility-a11y-testing.html @@ -0,0 +1,81 @@ + + + + + + + + + +Milestone: Automatic Accesibility (A11Y) testing - GNU social V3 + +
+ + +
+ +
+
+
+
+ +

+Milestone: Automatic Accesibility (A11Y) testing +

+ +
January 18, 2022 — +GNU social development team +
+ + +

We use pa11y-ci to run our accesibility testing on all GNU social +pages. The process of setting this up was a bit of a ride, but the +results are quite useful:

+ +

Accesibility report generated by Pa11y

+ +

We also take screenshots of all pages and compare them with the +previous, allowing us to spot (possibly) unintended changes in the UI.

+ +

The way we do this is by using a docker image derived from node, +with pa11y-ci installed, which doesn't have an entrypoint. This then +allows us to spin up a webserver, PHP and Redis containers, mimiking a +staging environment. pa11y-ci uses a JSON config file to tell it +what to do, and handles visiting all pages with the given resolution, +logging in and registering any accesibility violations found.

+ +

Accesibility violations found by Pa11y

+ +

Note that most of these errors are actually the same.

+ +

The saved screenshots are then used to detect changes, with +ImageMagik's compare, to generate a report on visual changes.

+ +

Screenshot comparisons

+ +

We were already striving for making GNU social accesible, which is +clear from the really low number of violations found, but there's +always room for improvement :)

+ + + +
+
+ diff --git a/v3/milestone-automatic-accesibility-a11y-testing.md b/v3/milestone-automatic-accesibility-a11y-testing.md new file mode 100644 index 0000000..34fb0f0 --- /dev/null +++ b/v3/milestone-automatic-accesibility-a11y-testing.md @@ -0,0 +1,32 @@ +Milestone: Automatic Accesibility (A11Y) testing + +We use `pa11y-ci` to run our accesibility testing on all GNU social +pages. The process of setting this up was a bit of a ride, but the +results are quite useful: + +![Accesibility report generated by Pa11y](assets/a11y/report.png) + +We also take screenshots of all pages and compare them with the +previous, allowing us to spot (possibly) unintended changes in the UI. + +The way we do this is by using a `docker` image derived from `node`, +with `pa11y-ci` installed, which doesn't have an entrypoint. This then +allows us to spin up a webserver, PHP and Redis containers, mimiking a +staging environment. `pa11y-ci` uses a JSON config file to tell it +what to do, and handles visiting all pages with the given resolution, +logging in and registering any accesibility violations found. + +![Accesibility violations found by Pa11y](assets/a11y/violations.png) + +Note that most of these errors are actually the same. + +The saved screenshots are then used to detect changes, with +ImageMagik's `compare`, to generate a report on visual changes. + +![Screenshot comparisons](assets/a11y/compare.png) + +We were already striving for making GNU social accesible, which is +clear from the really low number of violations found, but there's +always room for improvement :) + +