Commit Graph

195 Commits

Author SHA1 Message Date
André Staltz
90634b0c96
Merge pull request #80 from ssb-ngi-pointer/css-invite-pages
style the invite-list page
2021-03-16 10:29:41 +02:00
Andre Staltz
6dc7fb1788
localize invite-list page 2021-03-12 16:57:03 +02:00
Andre Staltz
25663d4d8f
support mobile layout on invite-list 2021-03-12 16:56:46 +02:00
Andre Staltz
bd9c521fcf
fix typo in AdminInvitesWelcome 2021-03-12 13:35:09 +02:00
Andre Staltz
134d9124bf
style the invite-list page 2021-03-12 13:25:27 +02:00
c9eb1aef9d
Merge pull request #77 from ssb-ngi-pointer/server-startup
Flesh out development instructions
2021-03-12 12:24:51 +01:00
d0c480d665
Apply suggestions from code review
Co-authored-by: Henry <111202+cryptix@users.noreply.github.com>
2021-03-12 11:33:01 +01:00
7ac4cda00a
Update README.md
Co-authored-by: Henry <111202+cryptix@users.noreply.github.com>
2021-03-12 11:24:12 +01:00
4a8ed9f9b3
Update README.md 2021-03-12 10:48:42 +01:00
Henry
decce2252d
Merge pull request #74 from ssb-ngi-pointer/the-big-rename
The big rename
2021-03-11 12:12:48 +01:00
Henry
ccee696507 use exported InputsInForm helper in web/handlers/admin 2021-03-11 12:08:54 +01:00
c487622633
flesh out development instructions 2021-03-11 10:44:49 +01:00
Henry
96b57b7562 split up http_test and move assertion helpers into a new package 2021-03-11 09:55:38 +01:00
Henry
639bffeffa typo in web/handlers/invites.go
Co-authored-by: Alexander Cobleigh <cblgh@cblgh.org>
2021-03-11 09:32:17 +01:00
Henry
3898b845b5 sqlite: streamline receiver names
following the pattern of their first letters. ie:

func (cn CompoundName) ...
2021-03-11 09:32:17 +01:00
Henry
ad7c01fb10 web/handlers: streamline receiver names 2021-03-11 09:32:03 +01:00
Henry
e013a5604d meta fixes
* update gitignore
* dont commit testruns
* fix github actions script
2021-03-11 09:31:46 +01:00
Henry
23c7e02c45 rename muxrpc packages 2021-03-10 16:57:49 +01:00
Henry
117cad48a7 rename admindb to roomdb 2021-03-10 16:44:46 +01:00
Henry
04824eeed7
Merge pull request #59 from ssb-ngi-pointer/invite-pages
Invite pages
2021-03-10 09:41:06 +01:00
Henry
b95c8de8be add room v1 "invite" until we have ssb-uri finalized 2021-03-10 09:35:54 +01:00
Henry
b21e2b2062 More testing
* test for invite accept form rendering
* show placeholder if there is no suggested alias
* accept form and consume endpoint
2021-03-10 09:35:30 +01:00
Henry
6945221557 check that invite.Consume adds to the allow list 2021-03-10 09:35:30 +01:00
Henry
fd21dfc60a Various fixes
* fix accept and consumed view
* Apply suggestions from Alex' code review
* define admin.Databases options struct
* structify database parameters of web/handlers
2021-03-10 09:34:36 +01:00
Henry
672647cd4d Add GetByID and GetByToken to invite service 2021-03-10 09:34:36 +01:00
Henry
98468e93a5 Invite endpoints
* Add revoke and created templates
* Render invite accept with domain
* Flesh out accept page
2021-03-10 09:33:55 +01:00
Henry
9f1fef1916 more consistent type names for handlers 2021-03-10 09:33:27 +01:00
Henry
fd5312b04a disambiguate redirect url 2021-03-10 09:33:27 +01:00
Henry
91dd6017e0 add user.FromContext middleware
A helper package so that handler and render code isnt directly tied to
the authentication package.

Also reduces db lookup overhead to one request to sqlite per request for
the user lookup.
2021-03-10 09:33:27 +01:00
Henry
3c58a1361c add endpoint for create 2021-03-10 09:33:27 +01:00
Henry
97554069b5 re-use pagination code 2021-03-10 09:33:27 +01:00
Henry
c7bcef4339 invite form testing 2021-03-10 09:33:15 +01:00
Henry
bbcab73cb5 add admindb.InviteService
interface methods: create, consume, list and revoke.

SQLite implementation and some light testing.

Related changes:

* have authfallback.Create return the user id

At some point we will need to not assume that authfallback is our users
table but that will not become relevant before we start adding
moderation roles.

* Update package documentation of admindb and admindb/sqlite

* remove leftover generated.db

now using the roomdb file created by TestSimple

Review comments by @cblgh

* better documentation of hashed token storage
* space between %d and `bytes`
* make interface assertion comments less scary
2021-03-05 08:42:11 +01:00
Henry
96a30af405
Merge pull request #61 from ssb-ngi-pointer/update-readme
Update readme with typo fixes
2021-03-04 15:10:18 +01:00
b28094dc05 remove "just" 2021-03-04 14:24:09 +01:00
6035d3e119 update readme with typo fixes 2021-03-04 14:17:01 +01:00
André Staltz
be1eae80f7
Merge pull request #54 from ssb-ngi-pointer/fix-code-block-wrap
fix CSS for long code blocks
2021-03-02 16:42:16 +02:00
Andre Staltz
11d1c8cdee
fix CSS for long code blocks 2021-03-02 16:29:35 +02:00
Henry
d85f2e4a3e
Merge pull request #53 from ssb-ngi-pointer/clarify-handlers
disambiguate "handlers" package
2021-03-02 14:23:08 +01:00
Henry
6132b37f39 disambiguate "handlers" package
This was fine when there was just one for muxrpc but "handlers"
and "web/handlers" feels like asking for confusion.
2021-03-02 14:17:42 +01:00
André Staltz
30841eb71e
Merge pull request #48 from ssb-ngi-pointer/markdown-style
style the markdown body
2021-03-02 11:11:29 +02:00
Andre Staltz
254fd4d0c6
style the markdown body 2021-03-01 18:09:06 +02:00
André Staltz
0f38fd3c16
Merge pull request #43 from ssb-ngi-pointer/css-notices
Style the notices
2021-03-01 17:17:49 +02:00
Andre Staltz
e5cc68696d
fix tests of the landing page 2021-03-01 17:10:38 +02:00
Andre Staltz
1f3c7e1dc5
add urlToNotice in tests 2021-03-01 14:16:52 +02:00
Andre Staltz
e5162fea5d
style the notice-edit page 2021-03-01 12:21:05 +02:00
Andre Staltz
2156ed1af0
style the notices page 2021-02-25 18:42:00 +02:00
Andre Staltz
03fb9b9833
don't show menu button on mobile menu page 2021-02-25 18:40:42 +02:00
Andre Staltz
7700eb6d4f
don't show footer in mobile menu 2021-02-25 18:38:13 +02:00
Andre Staltz
874a37cbbc
format the HTML in allow-list.tmpl 2021-02-25 18:18:58 +02:00