Commit graph

1167 commits

Author SHA1 Message Date
Nick Schonning
86d0a0b7d8 Enable formatjs/prefer-pound-in-plural () 2023-04-24 08:07:19 +02:00
Eugen Rochko
4141f9228c Add lines to threads in web UI () 2023-04-24 08:07:03 +02:00
Christian Schmidt
4613dfe97b Use CSS to trim long card descriptions () 2023-04-23 22:32:47 +02:00
Eugen Rochko
30666618ea Add new onboarding flow to web UI () 2023-04-23 22:24:53 +02:00
Claire
a55f461b4b Fix infinite loop in emoji replacement code () 2023-04-21 18:08:28 +02:00
Claire
2473078db7 Fix characters being emojified even when using Variation Selector 15 (text) () 2023-04-20 16:43:55 +02:00
Claire
8e36b04fd2 Fix crash when trying to open the filter modal () 2023-04-17 10:15:21 +02:00
fusagiko / takayamaki
e8450b1dc2 Rewrite GIFV component with React hooks () 2023-04-16 16:09:04 +02:00
Ivan Rodriguez
9b7e66c109 Fix status title for statuses without text () 2023-04-14 17:29:09 +02:00
Nick Schonning
de18852ec7 typo: collapsable -> collapsible () 2023-04-14 11:01:23 +02:00
Claire
e5498861d4 Add “In Memoriam” banner back to profiles () 2023-04-12 14:50:02 +02:00
Eugen Rochko
8b0c634a8a Change all components to use the same error page in web UI () 2023-04-12 12:44:58 +02:00
Christian Schmidt
c9fed25d56 Fix loading spinner + infinite scroll for private mentions () 2023-04-07 15:44:31 +02:00
Christian Schmidt
2507c0a462 Fix height of announcements not being updated when using reduced animations () 2023-04-05 14:58:10 +02:00
Nick Schonning
37e98d9d56 Set marginRight as string () 2023-04-05 10:57:36 +02:00
Nick Schonning
53376db94c Ensure tabIndex is number instead of string () 2023-04-04 16:33:44 +02:00
Nick Schonning
4ba81aa8dd HTML string attributes set as booleans () 2023-04-04 16:33:33 +02:00
Christian Schmidt
d5da587d27 Add colour to follow button when hashtag is being followed () 2023-04-03 16:25:15 +02:00
fusagiko / takayamaki
4866812b28 [Proposal] Make able to write React in Typescript ()
Co-authored-by: berlysia <berlysia@gmail.com>
Co-authored-by: fusagiko / takayamaki <takayamaki@users.noreply.github.com>
2023-04-03 03:31:39 +02:00
Eugen Rochko
d22e712648 Change search pop-out in web UI () 2023-04-01 09:59:10 +02:00
Eugen Rochko
4e63f1e64b Fix regressions from change in account row design in web UI () 2023-04-01 09:27:23 +02:00
Eugen Rochko
868d478b1b Change "direct message" nomenclature to "private mention" in web UI () 2023-03-30 15:16:20 +02:00
Tdxdxoz
d339684df5 Fix: set multiColumn value for /explore Statuses () 2023-03-30 10:14:49 +02:00
Yamagishi Kazutoshi
8b68ca7e61 Add missing parenthesis () 2023-03-24 04:35:43 +01:00
Yamagishi Kazutoshi
e272fc91e4 Remove legacy decorators syntax () 2023-03-24 03:17:53 +01:00
Christian Schmidt
61e7fe2e2a Fix broken links in account gallery () 2023-03-23 05:17:29 +01:00
Christian Schmidt
7583523bf0 Replace Status#translatable? with language matrix in separate endpoint () 2023-03-16 11:07:24 +01:00
Christian Schmidt
50b76430b4 Do not leave Mastodon when clicking “Back” () 2023-03-04 23:18:19 +01:00
Terry Garcia
f5fe444913 Switched bookmark and favourites around () 2023-03-03 20:37:49 +01:00
Claire
3faa229d8d Fix duplicate “Publish” button on mobile () 2023-03-03 20:25:36 +01:00
Christian Schmidt
41655e16ea Add lang attribute to media and poll options () 2023-02-26 20:13:27 +01:00
Christian Schmidt
e56145661c Add lang attribute to preview card () 2023-02-24 20:04:38 +01:00
Claire
82c464d4d0 Add lang tag to native language names in language picker () 2023-02-21 09:23:39 +01:00
Claire
b5b0bc17e8 Change compose form checkbox to native input with appearance: none () 2023-02-20 11:32:27 +01:00
Renaud Chaput
ae3812d182 Rename JSX files with proper .jsx extension () 2023-02-20 03:20:59 +01:00
Nick Schonning
2663b421be Enable ESLint import recommended rules () 2023-02-13 15:12:31 +01:00
Nick Schonning
1c2ca9557f Enable ESLint no-useless-escape () 2023-02-13 15:12:14 +01:00
Claire
3c1e48d304 Fix attached media uploads not being cleared when replying to a post () 2023-02-10 22:03:35 +01:00
Christian Schmidt
059a055e65 Show spinner while loading follow requests () 2023-02-06 16:50:08 +01:00
Christian Schmidt
9b74ffa7e0 Spell check input fields () 2023-02-04 16:34:21 +01:00
Eugen Rochko
92e5feb621 Add setting for status page URL () 2023-02-04 04:56:06 +01:00
Akira Ouchi
bbcbb2dd7f autofocus the compose form again on /share () 2023-01-30 14:49:10 +01:00
Nick Schonning
ffcd50da2b Update hasOwnProperty calls for ESLint () 2023-01-30 03:07:51 +01:00
Nick Schonning
9a5233f107 Upgrade ESlint to v8 () 2023-01-30 01:45:35 +01:00
Nick Schonning
3874a3067d Separate ESLint CI from Superlinter ()
* Separate ESLint CI from Superlinter

* Correct JS indenting level

* Remove extra semicolons with ESLint autofix
2023-01-29 23:44:03 +01:00
Christian Schmidt
6f08e79465 Add lang attribute to image description textarea and poll option field () 2023-01-29 19:00:19 +01:00
Claire
6feec4fd18 Add lang attribute to compose textarea and CW field ()
Fixes 
2023-01-24 18:49:21 +01:00
Mina Her
453b6eb2bd Make <Audio> to handle volume change () 2023-01-24 16:24:46 +01:00
Claire
07ee9f2ed5 Fix missing filtering on some notification types ()
* Fix missing warning-type filtering on some notification types

* Fix missing hide-type filtering on some notification types
2023-01-23 13:21:50 +01:00
Claire
0fdeb4d160 Fix confusing wording in the sign in banner ()
* Fix confusing wording in the sign in banner

* Split into two sentences
2023-01-18 17:15:23 +01:00
Connor Shea
be280f10c5 Add listing of followed hashtags ()
* Add followed_tags route.

This at least gets us to the point where the page can actually be
rendered, although it doesn't display any hashtags (yet?).

Attempting to implement .

* Fix minor issues.

* I've got the followed tags data partially working

But the Hashtag component errors for some reason. Something about the
value of the history attribute being invalid.

* Fix a mistake in the code

* Minor change.

* Get the followed hashtags list fully working.

Still need to add the Follow/Unfollow buttons, though.

* Resolve JS linter issues.

* Add pagination logic to followed tags list view.

However, it currently loads further pages immediately on page load, so
that's not ideal. Need to figure that one out.

* Appease the linter.

* Apply suggestions from code review

Co-authored-by: Claire <claire.github-309c@sitedethib.com>

* Fixes and resolve some other feedback.

* Use set/update instead of setIn/updateIn.

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2023-01-18 16:44:33 +01:00
Claire
340be8d706 Add option to make the landing page be /about even when trends are enabled ()
* Add option to make the landing page be /about even when trends are enabled

* Restablish /explore as landing page by default
2023-01-18 16:43:58 +01:00
Claire
42aa864c84 Add support for editing media description and focus point of already-posted statuses ()
* Add backend support for editing media attachments of existing posts

* Allow editing media attachments of already-posted toots

* Add tests
2023-01-18 16:33:55 +01:00
Jeong Arm
f4df1455ea Make visible change for new post notification setting icon () 2023-01-18 16:29:07 +01:00
Claire
ff5f21d505 Remove hardcoded width from dropdown overlays ()
* Remove hardcoded width from dropdown overlays

* Fix emoji picker position
2023-01-12 16:43:02 +01:00
Peter Simonsson
9d20c31f9c Fix dropdown menu positions when scrolling ()
* Update react-overlays to latest version

* Fix breaking changes in dropdown menus

* Use react-overlays built-in arrow positioning feature
* Re-implemented `.dropdown-menu__arrow` to have a defined width and height to improve positioning
* Moved wrapping div (`.dropdown-menu` from `DropdownMenu` to `Dropdown`)
* Wrap button in a span to solve issue with ref
* Temporarily remove animations

* Fix breaking changes in emoji picker

* Wrap EmojiPickerMenu in a div where react-overlays’ ref is added

* Fix breaking changes in language dropdown

* Fix breaking changes in privacy dropdown

* Fix breaking changes in search form

* Add animations back using `@keyframes`

* Fix arrow color in light theme

* Fix linting issue

* Remove unused `mounted` state

* Remove `placement` state from components and redux

And remove the placement state from props of the menu components.

* Remove abolution position to fix flip issue

* Remove z-index to fix modals and overlay positions

* Fix lint issues

* Set placement in privacy and language components

Copy the placement state into the `PrivacyDropdown` and `LanguageDropdown` components, to apply correct styling to the buttons depending on which placement the Overlay has.

* Move `placement` state to correct component
2023-01-11 21:58:46 +01:00
Holden Foreman
c2b8b81052 Fix footer link circle dividers' screen reader accessibility by adding aria-hidden ()
* Fix footer link circle dividers' screen reader accessibility by adding aria-hidden

* Remove a circle erroneously added in prev commit, and make code more DRY
2023-01-09 03:54:03 +01:00
Akira Ouchi
f57a144941 Add variable autoFocus to video () ()
* add variable autoFocus to video
* set autoFocus in video_modal.js
2023-01-09 03:52:37 +01:00
Claire
c78d61f21a Add dropdown menu item to open admin interface for remote domains ()
* Allow /admin/instances/:domain to handle IDNs

* Add dropdown menu item to open admin interface for remote domains
2023-01-05 14:03:46 +01:00
Holden Foreman
4515ec2696 Add aria-hidden to content warning field when dimmed so that it is not confusing to screen reader users () 2023-01-05 13:39:58 +01:00
Nick Schonning
507f2b4c1e Enable eslint:recommended ruleset ()
* Enable ESLint recommended ruleset

* Disable failing ESLint recommended rules

* Remove rules shadowed by eslint:recommended
2022-12-19 00:51:37 +09:00
Claire
cfeb01b17f Add follow request banner on account header ()
* Add requested_by to relationship maps

* Display whether an account has requested to follow you on their profile
2022-12-15 18:50:11 +01:00
Holden Foreman
cf06626067 Fix language surrounding disability in prompts for alt text and other media descriptions () 2022-12-15 18:46:13 +01:00
Bramus!
e6f386edf1 Fix media markup ()
This brings the markup of the MediaItem component on par with the Item component from media_gallery.

Co-authored-by: Effy Elden <effy@effy.space>
2022-12-15 18:37:47 +01:00
Rens Groothuijsen
37e12ff0ae Display search popout at fixed screen position ()
* Display search popout at fixed screen position

* Attach search popout to search box
2022-12-15 17:38:50 +01:00
Arnout Engelen
18e78d2f5a Don't autofocus the compose form ()
When opening a page such as /web/timelines/home in a desktop browser, the
cursor was automatically placed in the textarea of the compose form.

When using the keyboard for navigation (using a browser plugin like vimium or
vim vixen, or just to hit 'space' to scroll down a page), you have remember to
leave the field before using that.

Since you only visit the page to write a new post some of the time, this PR
attempts to have nothing focused initially (and require the user to click or
e.g. use 'tab' to focus the textarea).

Tested:
* /web/timeslines/home no longer autofocuses the compose box
* pressing the 'n' hotkey still focuses the compose box
* clicking 'reply' for a post still focuses the compose box
* replying to a CW'ed post still focuses the compose box
* introducing the CW field still focuses the CW field
* introducing the CW field for a reply still focuses the CW field
* removing the CW field still focuses the compose box
* /web/statuses/new still autofocuses the compose box

fixes 
2022-12-15 17:37:05 +01:00
Meisam
272ae2baa8 set activation for tag follow button ()
Co-authored-by: meisam <meisam@noreply.codeberg.org>
2022-12-15 17:04:52 +01:00
Nick Schonning
691a69adf5 Fix typo in handler function call name () 2022-12-15 16:37:17 +01:00
Yamagishi Kazutoshi
21ffc2340f FormattedMessage must be used directly ()
* `FormattedMessage` must be used directly

* rollback
2022-12-15 16:20:46 +01:00
Pleclown
8993b7d630 Adding 12 hours option for polls ()
* Adding 12 hours option for polls

Adding 12 hours option for polls

* Adding 12 hours option for polls

Missing > on a line
2022-12-15 16:20:34 +01:00
Alex Stine
ce1103a154 Fix hidden label causing accessibility issue for search inputs ()
* Try unhiding search label.

* Use aria-label. Remove label as empty labels are useless.

* Remove addition of package-lock.json.
2022-12-15 16:20:21 +01:00
cadars
40bf70b802 Make handle more easily selectable on profile page ()
* Make handle more easily selectable on profile page

* Wrap handle in a span

* Add `user-select: all` to span

* remove whitespace
2022-12-13 19:43:03 +01:00
Claire
eb24df264f Fix “Sign up” button with closed registrations not opening modal on mobile ()
Fixes 
2022-12-07 00:25:40 +01:00
Claire
feaa152fcd Fix expanded statuses not always being scrolled into view () 2022-11-28 16:42:04 +01:00
Connor Shea
2821d7aaa7 Make the 'Trending now' header a link to Explore. ()
This keeps the same design that exists currently, but makes "Trending
now" into a link to the Hashtags section of "Explore".

Resolves .
2022-11-27 23:49:32 +01:00
Claire
e668be4cac Fix infinite loading instead of soft 404 for non-existing remote accounts ()
Fixes , 
2022-11-27 20:48:12 +01:00
James Adney
0a302f7673 fix gif autoplay on iOS () 2022-11-27 20:46:23 +01:00
Claire
f47fbb8729 Fix “Share @{name}'s profile” profile menu item () 2022-11-27 20:42:17 +01:00
Claire
41be06e4ec Remove use of DOMParser in front-end emoji rewriting code ()
* Add jstest for node ordering in emojify

* Remove use of DOMParser in front-end emoji rewriting code
2022-11-17 11:24:59 +01:00
Levi Bard
8f32b59570 Make the button that expands the publish form differentiable from the button that publishes a post () 2022-11-17 10:53:38 +01:00
nyura123dev
c18c565cb3 Fix safari explore disappearing tabs ()
* fix disappearing Explore tabs on Safari

* fix lint

Co-authored-by: nyura <nyura@hidden.com>
2022-11-17 08:54:43 +01:00
Claire
97ac51901d Fix nodes order being sometimes mangled when rewriting emoji ()
* Fix front-end emoji tests

* Fix nodes order being sometimes mangled when rewriting emoji
2022-11-14 22:14:55 +01:00
Claire
bd267f6353 Fix emoji substitution not applying only to text nodes in Web UI ()
Signed-off-by: Claire <claire.github-309c@sitedethib.com>

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2022-11-14 20:26:03 +01:00
Eugen Rochko
ca6df7a68c Fix dropdown menu on profiles not being accessible on narrow screens in web UI () 2022-11-14 06:05:10 +01:00
trwnh
1b9ad6fb4b Change in-app links to keep you in-app ()
* Change in-app links to keep you in-app

* refactor Permalink into Link

* rewrite link hrefs in status content

* please linter

* please linter again
2022-11-13 21:10:20 +01:00
Claire
532fc2e361 Fix WebUI crash when listing server blocks and rationale is not available ()
Regression from 

Fixes 
2022-11-11 21:23:03 +01:00
Claire
d55054b166 Add the ability to edit media attachment metadata for any unattached media () 2022-11-11 21:22:17 +01:00
Cutls
f22910ef4a Do not show drag&drop dialog when not logined ()
* Cannot upload until login

* and do not fire upload

* change username props to context
2022-11-11 21:19:48 +01:00
Claire
28ae058593 Remove “No description added” media warning in edit mode ()
Editing media metadata is not currently possible in edit mode, the button would
open the modal but saving the changes would error out.
2022-11-11 09:20:24 +01:00
Eugen Rochko
609cb69251 Fix domain blocks on about page not working well on small screens in web UI () 2022-11-11 08:26:58 +01:00
Eugen Rochko
802416d2e9 Fix confusing wording in interaction modal in web UI () 2022-11-10 08:49:48 +01:00
Eugen Rochko
3ff5a02f65 Add option to open original page in dropdowns of remote content in web UI ()
Change profile picture click to open profile picture in modal in web UI
2022-11-10 08:49:35 +01:00
Sasha Sorokin
f3339b4ba9 Remove aria-pressed where it's redundant ()
This commit removes aria-pressed attribute from all elements which
contents or other descriptive attributes change in active state,
effectively replacing the meaning of the button, in which case
aria-pressed, an attribute specified whether the button is currently
pressed, would create a confusion. (Spoiler: it's everywhere).

See https://github.com/mastodon/mastodon/issues/13545#issuecomment-1304886969
2022-11-08 17:31:32 +01:00
Claire
ffef3ac03b Fix opening the language picker scrolling the single-column view to the top ()
Fixes 
2022-11-08 03:52:52 +01:00
Sunny Ripert
6dd0521788 Add form element on focal point modal ()
* Add form element on focal point modal

* Add type="button" for detection button
2022-11-07 15:41:42 +01:00
Sunny Ripert
461d06bec8 Fix console log error on column settings load () 2022-11-07 03:39:48 +01:00
Eugen Rochko
786b5a7c49 Change design of new list form in web UI () 2022-11-05 23:06:32 +01:00
Eugen Rochko
8742e0000e Fix missing interpolation of domain in disabled account banner in web UI () 2022-11-05 21:11:35 +01:00
Eugen Rochko
716696cd80 Change design of moved account banner in web UI () 2022-11-05 21:11:24 +01:00
Claire
3d24ef2967 Change sign-in banner to reflect disabled or moved account status () 2022-11-05 18:28:13 +01:00