Commit Graph

1909 Commits

Author SHA1 Message Date
Emma Winston
31d5547be3 Replace error elephant with hometown logo 2019-09-17 20:22:29 +01:00
Emma Winston
8acc541fa9 Remove elephants from CSS 2019-09-17 20:21:48 +01:00
Emma Winston
2ebe82c49b Utility function to detect background colour and select either light or dark default hometown logo 2019-09-17 16:57:08 +01:00
Emma Winston
87ad6ac03a Add default hometown mascot images 2019-09-17 16:46:21 +01:00
Emma Winston
41846b1e1f toot removal 2019-09-17 12:08:06 +01:00
Emma Winston
0eabec41a0 Remove Mastodon from draft warning text 2019-09-16 21:47:23 +01:00
Emma Winston
e83b30c39d De-tooting/removing mention of Mastodon 2019-09-16 21:13:35 +01:00
Emma Winston
0eeb168bbe reworded 'the visually impaired' to 'visually impaired users'
It's less clunky and dated language, and Darius said I could do it
2019-09-13 00:06:19 +01:00
Emma Winston
6ae391bbb3 Making more toots into posts 2019-09-12 23:52:17 +01:00
Darius Kazemi
1befe817c2 Fixing stray merge cruft 2019-08-31 16:51:47 -07:00
Darius Kazemi
168d0b304f Merge branch 'macaron-theme-tweaks' of github.com:emmawinston/hometown into hometown-dev 2019-08-31 15:43:28 -07:00
Darius Kazemi
3ff5b31cbc Merge branch 'fairy-floss-theme' of github.com:emmawinston/hometown into hometown-dev 2019-08-31 15:38:45 -07:00
Emma Winston
3da7ff7230 fix colour of bottom border of favourite notifications 2019-08-22 21:49:43 +01:00
Emma Winston
18f6b7e994 Fix public account page header colours 2019-08-22 21:16:44 +01:00
Emma Winston
63a7118ef1 Bugfix for notification border colours
- Fix bug which showed certain notifications with the wrong bottom border colour
2019-08-21 21:14:51 +01:00
Emma Winston
7ee0582c34 Additional theme tweaks for macaron
Additional refinements and bugfixes:

- fixed bug where notifications of DMs showed as the wrong colour
- fixed colours of poll notifications
- fixed colours of borders in profile
- made loading indicator more pastel green
2019-08-20 21:32:48 +01:00
Emma Winston
09ec02601b Small changes to macaron theme
- Change hover colour for shared links to purple
- Change background colour of textbox in list editing popup to blue
- Fix bug which made a border green instead of grey when being notified of a new follower
2019-08-20 15:28:36 +01:00
Emma Winston
926d05eb59 Add Fairy Floss theme for hometown 2019-08-20 15:14:49 +01:00
Darius Kazemi
bc7b3eaba8 Fix incorrect footer link 2019-08-19 14:36:08 -07:00
Darius Kazemi
6c2e2969ca Merge tag 'v2.9.3' into hometown-2.9.3 2019-08-19 14:28:19 -07:00
Emma Winston
29bdcf3bee Add macaron theme
Add macaron, a pastel light theme for hometown
2019-08-19 13:39:44 -07:00
ThibG
80d8ff97e4 Fix “read more” button behing hidden (regression from #11404) (#11522)
* Fix “read more” button behing hidden (regression from #11404)

This has the side-effect of putting the “Read more” button below possibly
trunctated polls instead of putting the poll below the “Read more”

* Remove dead code
2019-08-10 00:18:22 +02:00
Eugen Rochko
6861534d9c Fix "cancel follow request" button having unreadable text in web UI (#11521)
Fix #11478
2019-08-09 21:34:54 +02:00
ThibG
80e391afcd Improve focus handling with dropdown menus (#11511)
- Focus first item when activated via keyboard
- When the dropdown menu closes, give back the focus to
  the actual element which was focused prior to opening the menu
2019-08-09 21:34:54 +02:00
ThibG
c69f190af9 Fix image uploads being perfectly white when canvas read access is blocked (#11499)
Fixes #11496
2019-08-09 21:34:54 +02:00
ThibG
cec93c35d8 Improve keyboard navigation in privacy dropdown (#11492)
* Trap tab in privacy dropdown

* Give focus back to last focused element when privacy dropdown menu closes

* Actually give back focus to the element that had it before clicking the dropdown
2019-08-09 21:34:54 +02:00
ThibG
ad6fcb2d9c Improve dropdown menu keyboard navigation (#11491)
* Allow selecting menu items with the space bar in status dropdown menus

* Fix modals opened by keyboard navigation being immediately closed

* Fix menu items triggering modal actions

* Add Tab trapping inside dropdown menu

* Give focus back to last focused element when status dropdown menu closes
2019-08-09 21:34:54 +02:00
ThibG
d8cf2a0fb6 Fix privacy dropdown active state when dropdown is placed on top of it (#11495) 2019-08-09 21:34:54 +02:00
ThibG
21e3671e32 Trap tab in modals (#11493) 2019-08-09 21:34:54 +02:00
ThibG
3f7614f98a Disable list title validation button when list title is empty (#11475) 2019-08-09 21:34:53 +02:00
Eugen Rochko
ed27803822 Change account domain block to clear out notifications and follows (#11393) 2019-08-09 21:34:23 +02:00
koyu
d8b8c88c22 Added logout to dropdown menu (#11353)
* Added logout to dropdown menu

* Triggering build-and-test with empty commit as it seems it failed due to some internal failure

* Looks fine, ready to review

* Added changes from review

* method can be null without any problems

* Also target can be null
2019-08-09 21:33:18 +02:00
ThibG
ad0866804e Fix avatar animation on hover when not logged in (#11349) 2019-08-09 21:33:18 +02:00
ThibG
c8bf30df92 Fix animate on hover in poll options without CW (#11404) 2019-08-06 21:53:23 +02:00
ThibG
7f9431c306 Play animated custom emoji on hover (#11348)
* Play animated custom emoji on hover in status

* Play animated custom emoji on hover in display names

* Play animated custom emoji on hover in bios/bio fields

* Add support for animation on hover on public pages emojis too

* Fix tests

* Code style cleanup
2019-08-06 21:53:21 +02:00
ThibG
af410c0706 Display custom emoji in bio field names (#11350)
Already displayed in public pages, but not WebUI
2019-08-06 21:52:25 +02:00
ThibG
16f348431b Only scroll to the compose form if it's not horizontally in the viewport (#11246)
Avoids jumping the scroll around vertically when giving it focus and
editing long toots.
2019-08-06 21:52:25 +02:00
ThibG
6abd849803 When deleting & redrafting a poll, fill in closest expires_in (#11203)
Use the smallest preset expires_in such that the new poll would
not expire before the old one.

In the typical case of a quick delete & redraft, this results in
using the same poll duration.

Fixes #10567
2019-08-06 21:52:25 +02:00
ThibG
99b27a8b4b When sending a toot, ensure a CW is only set if the CW field is visible (#11206)
In some occasions, such as the browser or a browser extension auto-filling
the existing but disabled/hidden CW field, a CW can be set without the user
knowing.
2019-08-06 21:52:25 +02:00
ThibG
39741fa2cd Scroll to compose form rather than reply indicator on focus (#11182) 2019-08-06 21:52:25 +02:00
ThibG
5b3d70ffa7 Display FTS warning based on actual search term, not the one being typed (#11202)
Follow-up to #11112
2019-08-06 21:52:00 +02:00
ThibG
011909262a Add message telling FTS is disabled when no toot can be found because of this (#11112)
* Add message telling FTS is disabled when no toot can be found because of this

Fixes #11082

* Remove info icon and reword message
2019-08-06 21:52:00 +02:00
ThibG
6e28da2139 Apply filters to poll options (#11174)
* Apply filters to poll options in WebUI

Fixes #11128

* Apply filters to poll options server-side

* Add poll options to searchable text
2019-08-06 21:52:00 +02:00
ThibG
363afe5e05 Memoize ancestorIds and descendantIds in detailed status view (#11234) 2019-08-06 21:51:02 +02:00
ThibG
d588173ab3 Optimize makeGetStatus (#11211)
* Optimize makeGetStatus

Because `ImmutableList.filter` always returns a new object and `createSelector`
memoizes based on object identity, the selector returned by `makeGetStatus`
would *always* execute.

To avoid that, we wrap `getFilters` into a new memoizer that memoizes based on
deep equality, thus returning the same object as long as the filters haven't
changed, allowing the memoization of `makeGetStatus` to work.

Furthermore, we memoize the compiled regexs instead of recomputing them each
time the selector is called.

* Fix memoized result being cleared too often

* Make notifications use memoized getFiltersRegex
2019-08-06 21:51:02 +02:00
ThibG
de747948a1 Fix swiping columns on mobile sometimes failing (#11200)
Fixes #9779
2019-08-06 21:50:05 +02:00
Darius Kazemi
bfc0fbab2c Adding exclusive lists feature
Major new feature, currently testing in a branch right now. Fixes #1
2019-07-26 01:53:21 -07:00
Darius Kazemi
5585c244da Add link to Hometown source in footer 2019-07-10 21:10:58 -07:00
Darius Kazemi
f82b572102 Underlining hyperlinks by default 2019-06-30 15:23:53 -07:00
Darius Kazemi
0436aa9984 Adding full Article support
This creates a new column in the `statuses` table which keeps track of
activity_pub_type, so in the case of a Note it will be blank (the
default) and it will be a string "Article" if the received remote object
is an AP Article. There is now a bunch of special case code in the
formatters and sanitizers to handle Articles differently, as well as on
the clientside.
2019-06-30 15:16:11 -07:00