Commit Graph

900 Commits

Author SHA1 Message Date
Christian Bundy 3c9ec37d2f Add very basic test suite
Problem: ESLint and TypeScript help catch some types of regressions, but
they don't protect us against obvious stuff like "the server won't
start". This means that humans need to test a bunch of stuff manually,
and that can be really tedious and exhausting.

Solution: Yesterday someone invented this cool concept called "testing"
where you write automated tests for your software to ensure it actually
works the way you expect. It might have beeen invented before yesterday,
I don't know. Anyway, this solution adds a bunch of tests that send HTTP
GET requests to a bunch of endpoints to make sure the server is at least
returning HTTP 200 responses. It also fixes a race condition where HTTP
server was available before the readme / version strings were loaded.
2020-04-03 09:17:13 -07:00
Sean Billig 4318b9a22a
Merge pull request #384 from christianbundy/clean-up-root
Clean up root of project directory
2020-04-02 07:39:47 -07:00
Sean Billig b97e27b24b
Merge pull request #350 from christianbundy/add-mailmap
Add .mailmap for canonical identities
2020-04-02 07:38:06 -07:00
Sean Billig b9aaa698fa
Merge pull request #383 from christianbundy/fix-button-hover
Fix footer button hover background
2020-04-02 07:36:06 -07:00
Christian Bundy 7f95a6f7ac Re-add stylelint config
Problem: Apparently we were still using that.

Solution: Re-add the file.
2020-04-01 18:28:59 -07:00
Christian Bundy b01ff74dbc Clean up root of project directory
Problem: Project root has a handful of files that aren't used at all or
could be placed elsewhere.

Solution: Delete unused files and move the changelog to the
documentation directory with the other Markdown files (other than the
readme, of course).
2020-04-01 15:04:57 -07:00
Christian Bundy 72ee2e90fb Fix footer button hover background
Problem: Footer buttons have the normal button background hover state
that makes them difficult to read. This was meant to be fixed in another
PR but I think I got the CSS order wrong.

Solution: Reorder the CSS hierarchy to fix the bug. For real this time.
2020-04-01 07:45:15 -07:00
Sean Billig 8fc5437b6b
Merge pull request #381 from christianbundy/fix-italian
Fix linter problems with Italian translation
2020-03-31 15:14:08 -07:00
Christian Bundy 361fe9783e
Merge pull request #382 from timjrobinson/improve-liked-by
Show liked-by in title attr, handle many likes
2020-03-31 11:38:57 -07:00
Tim Robinson 48fc0e0086 Don't show likedby with zero likes. Improve style.
- Don't add "Liked by..." title when there are zero likes.
- Refactor code to use const's and have a single defined message.
2020-03-31 11:05:12 -07:00
Tim Robinson 206044e21f Show liked-by in title attr, handle many likes
- Instead of having a custom on hover effect, just add the Liked by
message to the title of the heart.
- When there are > 16 likes on a post, show +X more to convey this to
users.
2020-03-31 10:56:49 -07:00
Christian Bundy 302bd3fa8c Merge commit 'refs/pull/367/head' of github.com:fraction/oasis into fix-italian 2020-03-31 10:27:02 -07:00
Christian Bundy ac6441d3e0
Merge pull request #377 from timjrobinson/add-liked-names
Show who liked content on hover
2020-03-31 10:13:55 -07:00
Christian Bundy 81b6c907bb
Merge pull request #378 from nickwynja/thread-query
Updates query for threads
2020-03-31 10:11:30 -07:00
Jonathan Dahan 044ab08565
Merge pull request #379 from nickwynja/header-index
Fix z-index on sticky header
2020-03-31 12:13:11 -04:00
Nick Wynja 922086199d Fix z-index on sticky header 2020-03-31 11:05:38 -04:00
Nick Wynja 0e698df8f3 Updates query for threads
Previous query incorrectly pulled and sorted posts, often showing years
old posts from newly followed people. This now behaves more consistently
as "recent threads from people in your extended network".
2020-03-31 10:34:47 -04:00
Tim Robinson 4884a49dfb Pretty-ify code. Remove unnecessary comment 2020-03-31 00:19:58 -07:00
Tim Robinson 8cce580008 Show who liked content on hover
- Adds a hover popup that shows the names of everyone who liked a post
when hovering of the heart.
- Add new call to post.get that retrieves the names of all voters and
returns them instead of their ID's.
2020-03-30 23:53:27 -07:00
Sean Billig 573d7096f3
Merge pull request #372 from christianbundy/block-unblock
Add block and unblock to author profile
2020-03-28 15:51:24 -07:00
Christian Bundy 7e22829578 Fix own profile error
Problem: A `null` relationship represents when it's your profile, which
isn't very intuitive. It causes an error when we try to check for the
`blocking` and `following` properties, which don't exist on `null`.

Solution: Instead of `null`, set a `me` property to tell whether this
relationship is our own profile.
2020-03-28 13:32:02 -07:00
Christian Bundy b629727e4f
Merge pull request #373 from sbillig/docs
minor doc fixes; add gh cli instructions
2020-03-28 12:35:39 -07:00
sean billig 974fb7fc07 minor doc fixes; add gh cli instructions 2020-03-28 11:34:04 -07:00
Christian Bundy e7bd3ed305 Add block and unblock to author profile
Problem: We have a way to follow and unfollow, but there's no way to
block or unblock. Also if you go to the profile of a blocked peer, their
posts still show up.

Solution: Add block and unblock and hide messages from blocked peers on
their profile page.

Fixes: https://github.com/fraction/oasis/issues/370
2020-03-28 10:03:31 -07:00
Sean Billig 033dbede33
Merge pull request #363 from christianbundy/type-defs
Add TypeScript definitions for better guardrails
2020-03-27 19:19:17 -07:00
Sean Billig 0c5116ad0c
Merge branch 'master' into type-defs 2020-03-27 19:10:35 -07:00
Sean Billig 4aa2841247
Merge pull request #339 from christianbundy/add-auto-hops
Automatically connect to replicated peers
2020-03-27 17:20:18 -07:00
wuhei 6d396c16cc typos 2020-03-28 00:04:10 +01:00
Sean Billig e96486b1d0
Merge pull request #366 from christianbundy/fix-double-channel
Avoid processing popular posts twice
2020-03-27 14:51:02 -07:00
Jonathan Dahan f3644354ac
Merge pull request #368 from christianbundy/add-contributing-maintaining
Add contributing and maintainting documents
2020-03-27 17:34:55 -04:00
Christian Bundy 4091fce767 Fix linter problems
Problem: This doesn't pass the linter.

Solution: Run `npm run fix` and disable the spell-checker when we
define language names.
2020-03-27 14:14:39 -07:00
Christian Bundy 3627ce4658 Fix CSpell error in example typo
Problem: The sample typo in `docs/contributing.md` was failing our
spell-check test.

Solution: Disable the spell-chack on that line.
2020-03-27 13:47:50 -07:00
Christian Bundy 927c356303 Add contributing and maintainting documents
Problem: We had our contract in `contributing.md` but that didn't really
give actionable information on how to contribute or how to maintain this
project.

Solution: Move contract to `contract.md` and start documents for
contributing and maintaining.
2020-03-27 12:41:51 -07:00
wuhei b27b6241f2 Italian translation, changed a string in the Spanish translation 2020-03-27 19:12:49 +01:00
Sean Billig 288d5f10fa
Merge pull request #341 from christianbundy/root-channel
Don't append channel to non-root posts
2020-03-27 10:46:07 -07:00
Sean Billig e53003fbd5
Merge pull request #365 from christianbundy/add-chat
Add Matrix chat room to readme
2020-03-27 10:44:29 -07:00
Christian Bundy 5b2ae2a219 Avoid processing popular posts twice
Problem: Messages are being fetched with `post.get()`, which runs the
`transform()` function to decorate them with Markdown/etc, but then
they're being passed through `transform()` a second time at the end of
the function. This is inefficient and applies side-effects (like adding
channels to the post) twice.

Solution: Remove the final `transform()` so that these posts are only
decorated once.

Fixes: https://github.com/fraction/oasis/issues/358
2020-03-27 09:43:57 -07:00
Christian Bundy 7152d42a5c Add Matrix chat room to readme
Problem: There's a chat room but it isn't in the readme.

Solution: Put it in the readme.

Fixes: https://github.com/fraction/oasis/issues/318
2020-03-27 09:24:13 -07:00
Christian Bundy 555249277f Remove @ts-ignore workaround
Problem: The workaround is no longer necessary now that the new version
of @types/koa has been published. Thanks to @peterblazejewicz,
@harryparkdotio, and @orta for the quick upstream fix.

Solution: Run `npm update` and remove the `@ts-ignore` comment.
2020-03-27 09:13:31 -07:00
Christian Bundy fb23d25217 Add more type definitions to reduce implicit any
Problem: We still have heaps of implicit 'any' types that our linters
can't make sense of.

Solution: Keep on adding type documentation! Slowly but surely I'm
hoping we can reduce the amount of untyped JavaScript in the repo.
2020-03-27 08:21:40 -07:00
Christian Bundy defb57321e Merge branch 'master' of github.com:fraction/oasis into type-defs 2020-03-27 08:02:44 -07:00
Christian Bundy 4883efbc2c
Merge pull request #362 from nickwynja/inline-header-fix
Revert selector to span to fix lock alignment
2020-03-27 07:21:07 -07:00
Nick Wynja bae675f039 Revert selector to span to fix lock alignment 2020-03-27 10:11:11 -04:00
Nick Wynja 8efe326cdf
Merge pull request #357 from christianbundy/consistent-ui
Fix UI inconsistencies
2020-03-27 09:44:47 -04:00
Christian Bundy 3ada298d53
Merge pull request #360 from msiqu/patch-1
fix follow button link for non-english languages
2020-03-26 17:46:15 -07:00
mario siqueira acba28af67 Prettiered 2020-03-26 18:13:38 -03:00
Mario Siqueira 2c86eb5cf1
fixed the fix
Previous fix did not take into account "unfollow". Now it does
2020-03-26 17:56:10 -03:00
Mario Siqueira a5ae700b92
fix follow button link for non-english languages
currently if non-english language is set in configuration, the FOLLOW button doesn't work (it takes the i18n translation as part of the URL).
2020-03-26 16:48:16 -03:00
Christian Bundy 43c8310abf Reduce indent border size
Problem: The indent borders take up lots of space and visual attention
when you're in highly-nested threads.

Solution: Reduce their size by half.
2020-03-26 11:22:24 -07:00
Christian Bundy 9ddb23b501 Fix UI inconsistencies
Problem: After some fantastic new pull requests, there are some
inconsistencies between how each author implemented different features.

Solution: Fix regressions and iron out inconsistencies. This fixes the
heart highlight bug, uses the same indentation for Summaries + Threads +
the thread view, tightens up the CSP now that we don't need
unsafe-inline styles, and uses a neutral tone for indents with the same
width as the blockquote border (so far violet has been reserved for
private messages).
2020-03-25 16:03:51 -07:00