Commit Graph

703 Commits

Author SHA1 Message Date
Asaf Gartner cf809a3cdc Twitch fixes 2022-10-20 12:43:26 +03:00
Asaf Gartner 0f58cfc2da Added support for db arrays and some twitch fixes. 2022-10-20 12:43:26 +03:00
Asaf Gartner 5cc920dc2f Better twitch tracking 2022-10-20 12:43:26 +03:00
Ben Visness 304371a9a9 The thing is at a place 2022-10-17 20:31:40 -05:00
Ben Visness 5aa5595115 Remove news posts 2022-10-17 20:20:50 -05:00
Ben Visness 968e859dde Show HMS banner 2022-10-17 20:13:58 -05:00
Ben Visness b5dac2f4d8 Add !!!figure tag to ggcode 2022-10-08 17:28:36 -05:00
Ben Visness 3d7c095c87 Add entrepreneurship fishbowl title/description 2022-10-03 15:31:17 -05:00
ilidemi 8189151a74 Add entrepereuship fishbowl (#99)
Code notes:
*  MathJax treats text between two dollar signs as math. Escaped those cases in html (`\$`) - is there a way to not run mathjax on fishbowls instead?
* Limited embed image sizes to match Discord
* Fixed replies to a quote wrapping on a new line

Content notes:
* Moved intros to the top, untangled the discussions (hopefully without significant loss), pulled in audience comments
* Most book links are to Amazon as the promo websites are shitty or non-functioning
* Demetri had interesting points in -audience afterwards but they tie to Allen and may be hard to pull in without a lot of context
* Catchy title and description are TBD as usual

Co-authored-by: Ilia Demianenko <ilia.demianenko@gmail.com>
Reviewed-on: hmn/hmn#99
Co-authored-by: ilidemi <belk94@gmail.com>
Co-committed-by: ilidemi <belk94@gmail.com>
2022-10-03 20:30:03 +00:00
Ben Visness 0feeaada1b Update HMS media link 2022-09-20 10:19:49 -05:00
Ben Visness 8121830561 Remove resources from the table of contents 2022-09-19 20:26:43 -05:00
Asaf Gartner 4b9fe628e6 Merge branch 'master' of git.handmade.network:hmn/hmn 2022-09-18 22:25:09 +03:00
Asaf Gartner ca663d874b Allow separate mailer account and From address 2022-09-18 22:23:36 +03:00
Ben Visness bdb08dd14b Fix TOC width issue 2022-09-17 16:26:52 -05:00
Ben Visness b27ddd1e7f A few education improvements 2022-09-17 16:21:58 -05:00
Asaf Gartner c489d0ffa9 Consolidated shared editor-related params 2022-09-15 00:44:27 +03:00
Ben Visness c9ee420dbb Allow authors to hide editor notes 2022-09-12 22:55:51 -05:00
Ben Visness 045a2c2379 Add education toggle to user admin settings 2022-09-10 16:52:02 -05:00
Ben Visness 168b210c5b Restore the library since we're not actually rolling out education yet 2022-09-10 12:54:26 -05:00
Ben Visness 19d79a2a77 Fix nil user in education template 2022-09-10 12:28:32 -05:00
bvisness d2b34cb87d Initial version of education content (#90)
Co-authored-by: Ben Visness <bvisness@gmail.com>
Reviewed-on: hmn/hmn#90
2022-09-10 16:29:57 +00:00
Asaf Gartner 42e1ed95fb Added logs for twitch 2022-08-29 01:18:55 +03:00
Ben Visness 11c4dbe925 Jam starts now go go go 2022-08-15 06:58:24 -05:00
Ben Visness d7b43fdea0 Use the register destination when coming from the login page 2022-08-13 15:07:37 -05:00
Ben Visness 782db18cc3 dammit 2022-08-13 14:49:53 -05:00
Ben Visness 81d8d4559f Fix bug where Discord settings were cleared while disabled 2022-08-13 14:29:40 -05:00
Ben Visness a0cc2f5c66 Update auth flows 2022-08-13 14:15:00 -05:00
Ben Visness 4f1989f663 Add /wishlist command 2022-08-12 22:01:40 -05:00
giggs 9e786e132d New buttons with project colors + small bugfix (#80)
Following the discussion on [#74](hmn/hmn#74), here are changes to the submit buttons so that they match theme/project color.

Border colors are set to match the button background.

I've also included a "bugfix" where the `editor-toolbar-button-background` parameter in the dark theme.css and variables.scss were missing the # sign.

I wasn't sure whether to remove the `form button` values from theme.css and variables.scss and left them, as I'm not sure they're used anywhere now

Reviewed-on: hmn/hmn#80
Co-authored-by: giggs <darkgiggsxx@gmail.com>
Co-committed-by: giggs <darkgiggsxx@gmail.com>
2022-08-13 02:13:13 +00:00
Ben Visness bb48a77b9d Switch to the main Discord invite link, sigh 2022-08-12 18:15:59 -05:00
Asaf Gartner 319b1a05b9 Delete snippets when banning and prevent banned users from logging in 2022-08-09 12:57:12 +03:00
Asaf Gartner 822a489c09 Don't center file links in snippets. 2022-08-09 12:33:52 +03:00
Ben Visness 7ea11ebd51 Bam that's the rest of the todo list 2022-08-06 23:43:15 -05:00
Ben Visness 9f88ce1223 something something colors 2022-08-06 23:12:23 -05:00
Ben Visness 4289a1e27a Improvements to snippet edit 2022-08-06 22:32:29 -05:00
Ben Visness 48490d83a9 Some tweaks 2022-08-06 20:21:12 -05:00
Asaf Gartner 97ed892ce3 Added snippets to admin approval queue 2022-08-07 02:03:34 +03:00
Asaf Gartner 4c1daae5e1 Fixed pre-line issue in chrome 2022-08-07 01:04:45 +03:00
Asaf Gartner b995df4533 Added cancel button for snippet edit 2022-08-07 00:51:29 +03:00
Asaf Gartner dc94262bfb Snippets edited on a project page can't be disassociated from that
project on that page.
2022-08-07 00:45:07 +03:00
Asaf Gartner 841264de0f Fix element focus issue on project creation. 2022-08-07 00:40:05 +03:00
Asaf Gartner d2f44f8e5f No jam snippets if no jam projects! 2022-08-06 05:19:49 +03:00
Asaf Gartner a9b0606b79 Use new snippet-project association for jam index showcase 2022-08-06 00:48:56 +03:00
Asaf Gartner 89b1e48e69 Code review 2022-08-06 00:42:08 +03:00
Asaf Gartner 87a146dfa8 Fetch jam snippets by project id 2022-08-06 00:42:08 +03:00
Asaf Gartner efc7d76cb7 Snippet creation and editing 2022-08-06 00:41:37 +03:00
Ben Visness 41c2b6e111 Make slightly more prettier 2022-08-05 00:04:22 -05:00
Ben Visness 1b79f45d71 Make the feed page nicer 2022-08-04 23:22:30 -05:00
Ben Visness 92b175c84d Make good pretty jam wow much good 2022-08-04 21:00:15 -05:00
Ben Visness 62972ae35a Merge remote-tracking branch 'origin/master' into jam-2022 2022-08-04 18:37:51 -05:00
Ben Visness 09652c4146 Re-apply the avatar change
It was only made to CSS and we overwrote it...
2022-08-03 18:59:48 -05:00
Ben Visness 081186c8f0 Add automatic scrolling behavior to jam carousel 2022-08-02 15:14:29 -05:00
Ben Visness ba667f717e Fix overflow issues with new jam stuff 2022-08-02 15:03:48 -05:00
Ben Visness e84754eda0 Add last year's projects to the jam page 2022-08-02 14:56:47 -05:00
Ben Visness 6982503393 Fix fishbowl images 2022-08-01 22:09:23 -05:00
Ben Visness d164a58ba0 Fix issues with asset upload
It didn't work when creating a new project or editing personal projects,
due to routing issues. I also took this opportunity to make the script
support multiple form submit buttons, since in some cases we will have a
submit button on each tab, and I figured they all should respect the
fact that you have an upload in progress.
2022-08-01 21:59:42 -05:00
mark.dev a295d0ed52 Copy drag/drop from blog edit to project (#6) (#77)
I migrated the relevant parts of `editor.html` and `forums.go` (via `blogs.go`) into `project_edit.html` and `projects.go`.

Let me know if you would prefer pulling the shared javascript into a shared file. Only some variable names were changed.

I did not test the case where the upload fails.

Co-authored-by: mark.dev <mark@mark.dev>
Reviewed-on: hmn/hmn#77
Co-authored-by: mark.dev <mark.dev@noreply.localhost>
Co-committed-by: mark.dev <mark.dev@noreply.localhost>
2022-08-02 02:01:55 +00:00
Ben Visness 1806da0389 Polish up the latest fishbowl 2022-08-01 20:29:56 -05:00
ilidemi 25e13df04d Add code reuse fishbowl (#78)
Only needs someone with creative juices to write a description and good to go!

Co-authored-by: Ilia Demianenko <ilia.demianenko@gmail.com>
Reviewed-on: hmn/hmn#78
Co-authored-by: ilidemi <belk94@gmail.com>
Co-committed-by: ilidemi <belk94@gmail.com>
2022-08-01 04:52:34 +00:00
Ben Visness c36ae9d91b Merge remote-tracking branch 'origin/live' 2022-07-29 11:09:23 -05:00
giggs 85c8c92a0c Non square avatars no more squeeshed (#76)
Avatars don't get squeeshed anymore

[#15](hmn/hmn#15)

Please ignore the commit history, still learning git

Reviewed-on: hmn/hmn#76
Co-authored-by: giggs <darkgiggsxx@gmail.com>
Co-committed-by: giggs <darkgiggsxx@gmail.com>
2022-07-29 16:05:42 +00:00
Ben Visness 1f731a17c5 time to get physical
https://www.youtube.com/watch?v=3S5ukw4YOSg
2022-07-26 13:34:23 -05:00
Ben Visness 608235ee29 ok that sentence was in fact bad 2022-07-26 13:28:54 -05:00
Ben Visness f8aa839353 Update conference page design / copy 2022-07-26 11:34:05 -05:00
AllanRegush cc731d77a6 Add Conferences Page (#75)
This PR implements the conferences page.

![image](/attachments/fe7b8df7-0833-4b5b-9f61-a9558b70a98f)

![image](/attachments/10f380d6-81ed-4850-87c4-70a84d31e26b)

closes #69

Co-authored-by: Allan Regush <17693494+AllanRegush@users.noreply.github.com>
Reviewed-on: hmn/hmn#75
Co-authored-by: AllanRegush <allan@allanregush.com>
Co-committed-by: AllanRegush <allan@allanregush.com>
2022-07-26 15:07:57 +00:00
giggs 12d2fab1b8 New project link changed to a bigger button (#73)
Changed the New project link in user profile into a bigger button

![preview](https://i.imgur.com/JHb9hyK.png)

Reviewed-on: hmn/hmn#73
Co-authored-by: giggs <darkgiggsxx@gmail.com>
Co-committed-by: giggs <darkgiggsxx@gmail.com>
2022-07-26 15:03:35 +00:00
AllanRegush 4b3e38ee02 Set meta tag theme color to project's theme color (#71)
This commit sets the discord/link embed theme to match handmade brand

closes #66

Co-authored-by: Allan Regush <17693494+AllanRegush@users.noreply.github.com>
Reviewed-on: hmn/hmn#71
Co-authored-by: AllanRegush <allan@allanregush.com>
Co-committed-by: AllanRegush <allan@allanregush.com>
2022-07-25 20:16:04 +00:00
Ben Visness d3f5057d41 Edit scripts too, oops 2022-07-22 20:56:16 -05:00
Ben Visness 726cd0fd43 Move main.go to the root so we can do `go run .` 2022-07-22 20:52:06 -05:00
Asaf Gartner d01731f4cd Fixed showcase issue
Cleaned up bad unicode and control characters from snippet description
2022-07-14 03:44:19 +03:00
Ben Visness faa582f6da Remove fishbowl backlog message 2022-07-06 21:47:17 -05:00
ilidemi 971123a519 Add internet-os fishbowl (#63)
#33 progress: 10/10 🎉

Co-authored-by: Ilia Demianenko <ilia.demianenko@gmail.com>
Reviewed-on: hmn/hmn#63
Co-authored-by: ilidemi <belk94@gmail.com>
Co-committed-by: ilidemi <belk94@gmail.com>
2022-07-07 02:43:51 +00:00
ilidemi 72c9fa45fc Add metaprogramming fishbowl (#61)
#33 progress: 9/10

Pulled a couple of conversations from the audience

Co-authored-by: Ilia Demianenko <ilia.demianenko@gmail.com>
Reviewed-on: hmn/hmn#61
Co-authored-by: ilidemi <belk94@gmail.com>
Co-committed-by: ilidemi <belk94@gmail.com>
2022-06-29 19:29:35 +00:00
ilidemi 3a39e81b67 Add lisp jam fishbowl (#60)
#33 progress: 8/10

Patched in nakst's account and references

Co-authored-by: Ilia Demianenko <ilia.demianenko@gmail.com>
Reviewed-on: hmn/hmn#60
Co-authored-by: ilidemi <belk94@gmail.com>
Co-committed-by: ilidemi <belk94@gmail.com>
2022-06-27 12:38:21 +00:00
Asaf Gartner 316aba12b6 Ugly jam feed. Needs CSS work. 2022-06-25 16:24:04 +03:00
bvisness e9d4300100 Rework requests and middleware (#57)
o boy

Resolves #10 (hopefully!)

Co-authored-by: Ben Visness <bvisness@gmail.com>
Reviewed-on: hmn/hmn#57
2022-06-24 21:38:11 +00:00
ilidemi 32db9b1843 Add parallel programming fishbowl (#58)
#33 progress: 7/10

Oh boy, this one has a good amount of links
Also updated bumbo's discord id in skimmability fishbowl

Co-authored-by: Ilia Demianenko <ilia.demianenko@gmail.com>
Reviewed-on: hmn/hmn#58
Co-authored-by: ilidemi <belk94@gmail.com>
Co-committed-by: ilidemi <belk94@gmail.com>
2022-06-24 21:31:31 +00:00
ilidemi ca555d8027 Add skimming fishbowl (#51)
#33 progress: 6/10

Co-authored-by: Ilia Demianenko <ilia.demianenko@gmail.com>
Reviewed-on: hmn/hmn#51
Co-authored-by: ilidemi <belk94@gmail.com>
Co-committed-by: ilidemi <belk94@gmail.com>
2022-06-23 04:28:43 +00:00
ilidemi aa6ba1066f Add config fishbowl (#50)
#33 progress: 5/10, halfway through!

Also added/modified links from flexible-software fishbowl to the config one.

Co-authored-by: Ilia Demianenko <ilia.demianenko@gmail.com>
Reviewed-on: hmn/hmn#50
Co-authored-by: ilidemi <belk94@gmail.com>
Co-committed-by: ilidemi <belk94@gmail.com>
2022-06-20 04:30:31 +00:00
Asaf Gartner 64f94bddbb Use correct start date for WRJ22 2022-06-20 01:39:24 +03:00
Asaf Gartner fee5331c22 Merge branch 'master' of git.handmade.network:hmn/hmn into jam-2022 2022-06-20 01:37:29 +03:00
Asaf Gartner 7dbd64f62a Merge branch 'jam-2022' of git.handmade.network:hmn/hmn into jam-2022 2022-06-20 01:37:16 +03:00
Asaf Gartner 9d1d249ec0 Added jam/project association. 2022-06-20 01:26:33 +03:00
Ben Visness dc33aade22 Add favicons to jam pages 2022-06-18 13:09:45 -05:00
Ben Visness 990fb5c778 Tweak jam wording 2022-06-18 12:39:56 -05:00
Ben Visness e871542725 Add jam banner on home page 2022-06-18 10:30:30 -05:00
Ben Visness f36df1f697 Add jam index for 2022
Start jam index for 2022

Tweak jam copy

Update OpenGraph content
2022-06-18 10:01:14 -05:00
ilidemi fe3b1d29db Add simplicity-performance fishbowl (#49)
#33 progress: 4/10

Replaced links to #fishbowl-audience comments with comments themselves

Co-authored-by: Ilia Demianenko <ilia.demianenko@gmail.com>
Reviewed-on: hmn/hmn#49
Co-authored-by: ilidemi <belk94@gmail.com>
Co-committed-by: ilidemi <belk94@gmail.com>
2022-06-18 13:39:08 +00:00
Ben Visness 359354f2aa Start jam index for 2022 2022-06-17 17:30:18 -05:00
Asaf Gartner 141c279335 Merge branch 'master' of git.handmade.network:hmn/hmn 2022-06-16 00:34:48 +03:00
Asaf Gartner b165bf7c23 Added panic recovery to all of our background jobs
Fixes issue #32
2022-06-16 00:33:57 +03:00
ilidemi 86bcde4d49 Add teaching-software fishbowl (#45)
#33 progress: 3/10

Significant changes:
Moved pre-intro discussion after intros, cleaned up what I saw as noise
Pointed bumbo to his current discord id - if a different one is linked to the website, lmk

Co-authored-by: Ilia Demianenko <ilia.demianenko@gmail.com>
Reviewed-on: hmn/hmn#45
Co-authored-by: ilidemi <belk94@gmail.com>
Co-committed-by: ilidemi <belk94@gmail.com>
2022-06-15 19:39:41 +00:00
Asaf Gartner 870a073e22 Added proper verification for forum urls
Fixes issue #12
2022-06-14 22:52:50 +03:00
Asaf Gartner 86a7128f25 Only show blog content preview in blog index when there are few posts
Partially resolves issue #30
2022-06-14 20:15:16 +03:00
Asaf Gartner 2012328436 Use hmndata helpers for project timeline on project homepage
Resolves issue #37
2022-06-14 19:14:38 +03:00
Asaf Gartner cb71abfdb3 Added createuser and usersetadmin commands
Resolves issue #38
2022-06-14 19:07:11 +03:00
Asaf Gartner 31f7bf5350 Treat fishbowl files like public files. Skip expensive middleware.
We don't really need to validate the project subdomain here.
Fetching the common data eats up a db connection, and we don't gain
anything from it.
2022-06-14 04:06:44 +03:00
ilidemi 58c09126a4 Add Flexible Software fishbowl (#43)
#33 progress: 2/10

Co-authored-by: Ilia Demianenko <ilia.demianenko@gmail.com>
Reviewed-on: hmn/hmn#43
Co-authored-by: ilidemi <belk94@gmail.com>
Co-committed-by: ilidemi <belk94@gmail.com>
2022-06-13 13:49:22 +00:00
Ben Visness dd3b889aaf Remove `pattern` from login input (#40)
it was just wrong! not helpful to anyone
2022-06-12 09:03:52 -05:00
Ben Visness 7dd4a1af31 Don't do clever hue-rotating trick with waterline image 2022-06-12 08:39:44 -05:00
bvisness d1e63f745b Add Fishbowl archive (#41)
Refs #33

Co-authored-by: Ben Visness <bvisness@gmail.com>
Co-authored-by: ilidemi <belk94@gmail.com>
Reviewed-on: hmn/hmn#41
2022-06-12 12:45:56 +00:00
Ben Visness 1cfb9e4033 Fix mailto on crash page 2022-06-01 20:49:19 -05:00
Ben Visness 13f5b2ee63 Tweak landing page wording 2022-06-01 20:40:16 -05:00
Ben Visness 6e0010e957 Fix querying possibly-nil scalars
Our db code for querying scalars didn't do anything to account for
pointer destinations (which you need if querying a field that may be
nil!)
2022-06-01 20:38:24 -05:00
Asaf Gartner ac2d00aca7 Logging bad discord resources 2022-05-30 21:56:09 +03:00
Asaf Gartner 2bb14c1794 Replaced panic with error 2022-05-30 21:52:13 +03:00
Asaf Gartner fe545ff0f3 Debugging twitch 2022-05-30 21:19:54 +03:00
Asaf Gartner 8c47590b99 Debugging twitch 2022-05-30 19:08:09 +03:00
Asaf Gartner 4c296c9ddd Soft failure for failing to delete discord message. 2022-05-30 18:55:10 +03:00
Asaf Gartner 9fcc2321ca Hopefully fixed desync with twitch 2022-05-30 18:49:30 +03:00
Asaf Gartner 02d51a8bfe Merge branch 'streams_update' 2022-05-30 17:33:52 +03:00
Asaf Gartner 0d0773fd0e Reverse streamer sort and replaced green circle with red 2022-05-27 16:34:34 +03:00
Asaf Gartner 09c4561428 Slightly improved discord message formatting. 2022-05-27 11:55:57 +03:00
Asaf Gartner 8495982d3f Added persistent vars and improved stream tracking on discord. 2022-05-27 11:37:43 +03:00
Ben Visness 68a00c91db Rename the email override field for clarity 2022-05-25 17:39:57 -05:00
Ben Visness 475716322f Fix up missing avatars 2022-05-21 16:44:39 -05:00
Ben Visness 491ae57590 Tweak Postgres help message on failed seed 2022-05-14 23:06:48 -05:00
Ben Visness c1fa6cae13 Integrate Nick's local S3 server
Works like a charm!

Small tweak for clarity
2022-05-14 00:48:19 -05:00
bvisness 4187a3b6ca Merge pull request 'handmade dummy S3 local dev server' (#4) from nick12/hmn:hmns3 into localdev-2022
Reviewed-on: hmn/hmn#4
2022-05-14 00:12:44 +00:00
Ben Visness 3aa16c6d12 Add owners to seeded projects 2022-05-11 23:39:43 -05:00
Ben Visness a2ec57cf47 Seed projects 2022-05-11 22:24:05 -05:00
Ben Visness e4bb741a15 Automatically create the HMN user if necessary
This pretty much certainly won't work in real environments. If it does,
your db config is not secure :)
2022-05-11 19:50:51 -05:00
Ben Visness f4601198c9 Seed news posts 2022-05-07 14:45:21 -05:00
Ben Visness 3c4238994a Seed example forum threads 2022-05-07 14:31:37 -05:00
Ben Visness 3a93aa93e9 Seed users (and rework a lot of user access to use new helpers) 2022-05-07 13:58:00 -05:00
Ben Visness b46f5d8637 Add bare minimum seed 2022-05-07 11:37:15 -05:00
Ben Visness 1020039ea2 Fix up tests 2022-05-07 09:43:41 -05:00
Ben Visness 0e56f56372 Rename all the db tables 2022-05-07 08:11:05 -05:00
Ben Visness a147cfa325 Rework DB API
This takes advantage of generics, and generally clears up a lot of
inconsistencies and quality-of-life issues.

Start of db rework: clean up, start generics, improve tests

Write some nice aspirational package docs

Rework and document the db API

Tests still pass, at least...now for everything else

Update all callsites of db functions

Finish converting all callsites

Not too bad actually! Centralizing access into the helpers makes a big
difference.

wtf it works
2022-05-06 16:56:13 -05:00
unknown 69a44d1734 handmade dummy S3 local dev server 2022-05-01 02:41:58 -03:00
Ben Visness 6004149417 Fix zero-items bug with getPageInfo 2022-04-30 21:18:21 -05:00
Ben Visness f51b7e23da Shout out the community in the manifesto 2022-04-30 19:19:36 -05:00
Ben Visness f7d92a63b4 Update opengraph description for the manifesto 2022-04-30 19:08:25 -05:00
Ben Visness ad1bc875cc Rewrite the manifesto 2022-04-30 15:59:05 -05:00
Asaf Gartner 38e93d5208 Added support for unknown filetypes in snippets 2022-04-07 08:19:48 +03:00
Asaf Gartner 6063a7dd71 Automatically approve users who link their discord account 2022-04-07 07:28:04 +03:00
Asaf Gartner 8951bf1aa5 Timers timers timers 2022-03-27 20:30:24 +03:00
Asaf Gartner 70cd2ec72b Added logs 2022-03-27 19:41:21 +03:00
Asaf Gartner febec72325 Only track approved users. 2022-03-27 19:13:47 +03:00
Asaf Gartner b0cf3e2f15 Probably fixed issue with twitch 2022-03-22 21:00:50 +02:00
Asaf Gartner 5ecd5a8a31 Debugging twitch in beta 2022-03-22 20:52:05 +02:00
Asaf Gartner c8096b0fb7 Loosened expected status codes from twitch 2022-03-22 20:34:42 +02:00
Asaf Gartner 11dd75ad03 Twitch monitoring 2022-03-22 20:07:43 +02:00
Asaf Gartner 5c29f3f814 Added projects to admin approval queue 2022-03-06 14:48:47 +02:00
Asaf Gartner f67429becd Fixed communication guidelines attribution. 2022-02-16 05:38:41 +02:00
Ben Visness 7a6f2a7d4b Remove the code of conduct, tweak the communication guidelines
The code of conduct has historically not been of much use, while the
communication guidelines are more tangible. The two are also just kind
of redundant.
2022-02-13 16:24:01 -06:00
Asaf Gartner 8e7c20fffa Removed old project logo url fields 2022-02-13 22:07:09 +02:00
Asaf Gartner d32cd0a849 Removed old user avatar url field from the db 2022-02-13 21:52:29 +02:00
Asaf Gartner 6445567840 Merge branch 'master' of git.handmade.network:hmn/hmn 2022-02-13 02:36:43 +02:00
Asaf Gartner 9faba4270c Fixed issue on project edit when one of the owners is unapproved 2022-02-13 02:36:12 +02:00
Ben Visness b45a28156c Add projects to profile user command 2022-02-12 01:00:45 -06:00
Asaf Gartner b2a2b49abe Added the search bar to the footer 2022-02-10 22:27:28 +02:00
Asaf Gartner 1ce6ec080b Commented out HMS banner.
Leaving it in because we'll want to reuse that banner in the future.
2022-02-10 19:29:19 +02:00
Asaf Gartner 50332c6800 Fixed "mark all as read" 2022-02-07 15:11:26 +02:00
Asaf Gartner c8f401f738 Updated cmd description 2022-02-07 14:25:21 +02:00
Asaf Gartner 43651d98e8 Code review 2022-02-07 14:21:40 +02:00
Asaf Gartner 92d6a31aa9 Fixed tag removal issue. 2022-01-31 10:22:25 +02:00
Asaf Gartner 378d6eb836 Removed old comment. 2022-01-31 08:52:56 +02:00
Asaf Gartner 60a71d5dd1 Fixed indent. 2022-01-31 08:51:34 +02:00
Asaf Gartner ad888346ef Discord message handling reorganization. 2022-01-31 08:46:43 +02:00
Asaf Gartner f4f439489d Assets for user avatars 2021-12-29 16:38:23 +02:00
Asaf Gartner eb32b04437 Added project links to project edit page 2021-12-26 12:03:25 +02:00
Asaf Gartner 80f0e3b176 MD text renderer: handle backslashes
Handles the same characters as the html renderer.
2021-12-26 11:36:12 +02:00
Asaf Gartner f8e7779b7d Fixed discord linking issue 2021-12-21 08:14:51 +02:00
Asaf Gartner 321089ea8e Fixed forum editor file upload issue 2021-12-21 07:13:02 +02:00
Asaf Gartner 88776cbb72 Fixed user profile url double-escaping 2021-12-21 06:24:05 +02:00
Asaf Gartner 12eb172f98 Log out user after setting status to 'banned' 2021-12-21 06:07:55 +02:00
Asaf Gartner 83ef51374d Added admin script to upload project logos to S3 2021-12-21 06:04:20 +02:00
Ben Visness 6307589ee4 Merge remote-tracking branch 'origin/master' into beta 2021-12-14 20:54:23 -06:00
Asaf Gartner b5eb718615 Query automatically does ToSlice. Use QueryIterator if you need an
iterator.
2021-12-15 03:36:37 +02:00
Asaf Gartner c84b6842e2 Admin actions on user profile 2021-12-15 03:17:42 +02:00
Asaf Gartner 1c48aab863 Fixed admin queue 2021-12-13 18:58:26 +02:00
Ben Visness b3df1a306b I don't like the "complete" banner 2021-12-13 02:09:03 -06:00
Ben Visness 3b8b02a856 Watch for snippet updates on all messages
This captures stuff in jam-showcase and ryan's stuff in #projects
2021-12-13 01:40:54 -06:00
Ben Visness 6d609f1fae Sort blog index correctly 2021-12-11 16:18:58 -06:00
Ben Visness 415ce8db43 Rework project visibility 2021-12-11 13:08:10 -06:00
Ben Visness 7cb6869fcb Fix conflict error when tagging from Discord 2021-12-11 10:11:44 -06:00
Ben Visness 4d63d02533 Always update snippet tags on every Discord edit 2021-12-08 23:00:44 -06:00
Ben Visness 5344e9d4bc Limit the number of owners per project 2021-12-08 22:23:20 -06:00
Ben Visness e70dcbdd53 Switch to ampersand for delimiter 2021-12-08 22:05:17 -06:00
Ben Visness b88776af0c Cap the number of personal projects per user 2021-12-08 22:02:11 -06:00
Ben Visness 79c9738b96 Fix various bugs 2021-12-08 21:50:35 -06:00
Ben Visness 40cd19c5f0 Do the Discord integration with personal projects! 2021-12-08 21:13:58 -06:00
Ben Visness 37fcbb205c Move data-fetching helpers to a separate package 2021-12-08 20:04:15 -06:00
Ben Visness 73824a027b Add tag management to projects
Also rearrange that ProjectAndLogos stuff because agh it was so weird
2021-12-07 21:37:52 -06:00
Ben Visness f5ed6ec896 Add live markdown preview to the description editor 2021-12-06 23:20:12 -06:00
Asaf Gartner cf46e16df5 Edit project 2021-12-04 16:55:45 +02:00
Asaf Gartner 950e84d53a Personal project creation 2021-12-02 12:53:36 +02:00
Asaf Gartner 03c82c9d1a New project form 2021-11-25 05:59:51 +02:00
Ben Visness 0f749d8232 Switch CTA text for Handmade Seattle 2021-11-14 16:48:06 -06:00
Ben Visness 8f560de2b6 Sort personal projects by recency instead of randomly 2021-11-11 16:35:00 -08:00
Ben Visness b41fb365cf Improve appearance of projects without logos 2021-11-11 16:23:24 -08:00
Ben Visness 0184cd1625 Add admin utilities for adding projects 2021-11-11 15:59:05 -08:00
Ben Visness 2c5df4b7c4 Show project snippets on project pages
we need better filter UI, but do we really, though
2021-11-11 12:11:57 -08:00
Ben Visness 601adf2d16 Add tags to showcase / snippet UIs 2021-11-11 12:11:57 -08:00
Ben Visness 4ea1338c32 Add tags to snippets on timelines 2021-11-11 12:11:57 -08:00
Ben Visness ffed86b33a Add new tags data model 2021-11-11 12:11:57 -08:00
Ben Visness d10f0a2881 Implement the down migration for personal projects 2021-11-11 12:11:57 -08:00
Ben Visness 4d3a4c20ca Fix link issue with forum redirects 2021-11-11 12:11:57 -08:00
Ben Visness c6387e2885 Disable forum/blog actions for projects that don't have them enabled
I implemented this for personal projects, but I think it was actually
affecting official projects too that didn't have forums or blogs
enabled.
2021-11-11 12:11:57 -08:00
Ben Visness 702036eac3 Improve appearance of the project index 2021-11-11 12:11:57 -08:00
Ben Visness f7f544a05c Preserve path when redirecting between official/personal projects 2021-11-11 12:11:57 -08:00
Ben Visness cc9c3b3b60 Use new UrlContext for project URLs
Wow that was a lot to change
2021-11-11 12:11:57 -08:00
Ben Visness 73836c5e25 Redirect to generated personal project slug 2021-11-11 12:11:57 -08:00
Ben Visness cb967b92fd Add route grouping stuff for projects (needs thorough testing) 2021-11-11 12:11:57 -08:00
Ben Visness 61683966a2 I really have no idea where I left off 2021-11-11 12:11:57 -08:00
Ben Visness 3800d3e715 Update data model for personal projects
Also:
- Added a helper for fetching posts with appropriate visibility
- Added personal projects to the project index
2021-11-11 12:11:57 -08:00
Asaf Gartner b53643764a Fixed typo in showcase RSS 2021-11-11 12:11:57 -08:00
Ben Visness 8accd87be3 Tweak spacing in welcome banner 2021-10-27 22:55:03 -05:00
Ben Visness 693e00d494 Merge remote-tracking branch 'origin/live' into beta 2021-10-27 22:51:22 -05:00
Ben Visness 1d8e12a4f6 Tweak welcome banner wording 2021-10-27 22:46:01 -05:00
Ben Visness 60aef6d032 Fix mobile nav issues and add circuit logo 2021-10-27 22:44:08 -05:00
Ben Visness 949e93791e Fix nav issues on mobile 2021-10-27 22:05:31 -05:00
Ben Visness 2882c49b2b Improve project styles or something 2021-10-27 21:55:42 -05:00
Ben Visness 4e47c51fa1 Add back project nav 2021-10-27 21:55:42 -05:00
Ben Visness 5eff3c38b4 Tweak routing middleware, add socials to banner
Instead of doing project nav, which I am actively avoiding
2021-10-27 21:55:42 -05:00
Ben Visness a9d3387295 Darken the welcome colors on the home page 2021-10-27 21:55:41 -05:00
Ben Visness d39e6beb0f First pass at welcome banner 2021-10-27 21:55:41 -05:00
Ben Visness de587abc94 Add HMS banner to the home page 2021-10-27 21:55:41 -05:00
Ben Visness 3324428f8b Tweak news appearance 2021-10-27 21:55:40 -05:00
Ben Visness f8d5f9fce5 Rework the home page 2021-10-27 21:55:40 -05:00
Ben Visness 7d422cb533 Timeline template logic updates 2021-10-27 21:55:40 -05:00
Ben Visness 09e6a15085 Rejigger timelines to avoid explicit types 2021-10-27 21:55:39 -05:00
Ben Visness 6176744462 Add a library placeholder 2021-10-27 21:55:39 -05:00
Ben Visness ccdbad8978 Rework the nav for projects 2.0 2021-10-27 21:55:38 -05:00
Asaf Gartner 307699af4c Added content type to S3 upload call 2021-10-25 02:31:25 +03:00
Asaf Gartner aab2205e62 Fix form in admin page 2021-10-25 02:31:25 +03:00
Ben Visness 623aaec9d8 Ensure that that one goroutine exits when the iterator is closed
This resolves that completely nonsensical memory leak situation. As far
as we can understand, the cause was a hodgepodge of the following:

- There is some buffer sharing going on deep in pgx
- Queries made with a cancellable but long-running context (like that
used for background jobs) would leave iterator-related goroutines
hanging
- These goroutines had a pgx `rows` object in their closures, preventing
the row stuff from being garbage collected
- If you look at a profile, it all appears to be caused by whatever
functions were doing the most database queries / reading the most from
Postgres. In fact those things were _allocating_ the most but not
retaining any of that data - it was being retained by these other
goroutines because of magic buffer sharing huzzah I love it

We could have solved this in approximately 30 minutes if Go could
actually tell us what is keeping things alive in the heap, instead of
just tracking allocations.
2021-10-21 01:42:34 -05:00
Ben Visness 34a318c902 The jam is not right now any more 2021-10-20 21:33:21 -05:00
Ben Visness 60237fc4dd Add a blurb to the jam page 2021-10-03 09:41:40 -05:00
Ben Visness 00864842b3 Add file upload support for Discord 2021-09-27 09:23:57 -05:00
Ben Visness 89e8371787 Update the copy on the jam page 2021-09-26 23:38:58 -05:00
Ben Visness 4b4c205566 Make profile messages ephemeral 2021-09-26 23:04:53 -05:00
Ben Visness 88da574446 Tweak /profile messages, add and fix tests 2021-09-26 22:35:42 -05:00
Ben Visness 1df691bc13 Add user command for profile 2021-09-26 20:30:09 -05:00
Ben Visness 85a7a37162 Add /profile slash command 2021-09-26 17:34:38 -05:00
Ben Visness 0cebe90268 Switch to a different forum link when the jam starts 2021-09-24 23:02:12 -05:00
Ben Visness 251446d6e4 Do jam showcase stuff 2021-09-24 22:53:00 -05:00
Asaf Gartner 776c78913a Updated admin atom feed title 2021-09-24 03:39:59 +03:00
Asaf Gartner aa2e12496a Undid last commit and added auth challenge 2021-09-24 03:37:08 +03:00
Asaf Gartner ed85d11d96 Testing auth UNDO BEFORE DEPLOY 2021-09-24 03:29:47 +03:00
Asaf Gartner a3e7e2afc0 Rename ThreadUnread to just Unread 2021-09-24 03:15:29 +03:00
Asaf Gartner f8985e6ee3 User approval admin page and RSS 2021-09-24 03:13:40 +03:00
Ben Visness cad1c397c1 Fix paste issue in editor, tweak jam page 2021-09-23 16:13:12 -05:00
Asaf Gartner f5708d1ea8 Disable submission to perfCollector. 2021-09-23 23:03:28 +03:00
Asaf Gartner 89e58c9a24 Convert the feed to use the new thread and post functions. 2021-09-23 23:02:45 +03:00
Ben Visness 9c7acd7dbb Add a sort field to subforums 2021-09-23 01:18:45 -05:00
Ben Visness 4b13f99df8 Add thread title editing 2021-09-23 01:09:18 -05:00
Ben Visness ec80952ad9 Automatically approve users for now 2021-09-22 23:57:14 -05:00
Ben Visness 986a42c1ac Switch to centralized helpers for fetching threads/posts
This includes the ability to "shadowban" new users who have not yet been
approved. We do not have UI for approving these users.

Migrate deserving users to new Approved status

Add post fetching helpers as well

The logic in the thread/post stuff is definitely getting redundant, but
I'm not sure I'm yet ready to try to abstract any of it away.

The next thing to do is probably to update blogs and other places that
fetch threads/posts, and delete the old helpers.

Move forums and blogs fully to new helpers

Use the helpers on the landing page too

that was easy!

Fix up some spots I missed

Check user status and use helpers on the profile page
2021-09-22 23:48:31 -05:00
Ben Visness a38727ed69 Fix indentation, tweak newlines 2021-09-22 22:35:07 -05:00
Asaf Gartner 7063fd5604 Added basic usage tracking for posts. 2021-09-22 22:18:39 +03:00
Asaf Gartner c224ad55b9 Added file dialog, image pasting, and progress UI 2021-09-22 13:59:03 +03:00
Asaf Gartner dc56b1f5d0 First working version. No user limits or usage tracking. 2021-09-22 02:13:11 +03:00
Ben Visness 070ea5cc20 Redirect old blog URLs to new 2021-09-20 10:17:53 -05:00
Ben Visness 73e6af72e0 Update the jam page with forum links 2021-09-16 01:41:24 -05:00
Ben Visness 7e4116359a Improve appearance of option bars on mobile 2021-09-08 23:01:21 -05:00
Ben Visness b2a35c469a Update project last updated fields on new forum/blog posts 2021-09-08 22:44:46 -05:00
Ben Visness 0f9a57f62b Put a maximum length on post content 2021-09-08 22:22:47 -05:00
Ben Visness 17bf11b173 Punctuation is important. 2021-09-08 22:00:28 -05:00
Ben Visness 2db5c38a3c Add sizes to the Apple icon 2021-09-08 21:56:26 -05:00
Ben Visness d5d3341c81 Improve OpenGraph / favicons 2021-09-08 21:51:43 -05:00
Ben Visness fd7754a7b6 Add redirect for old wiki URLs 2021-09-08 19:43:24 -05:00
Ben Visness 36bb2ce2d5 Put timestamp in avatar filenames to avoid cache problems 2021-09-07 19:55:52 -05:00
Ben Visness f1e2e99663 Don't treat replies to the OP as replies 2021-09-06 16:40:00 -05:00
Asaf Gartner 193bbca28c Added correct time format for podcast. 2021-09-06 22:48:39 +03:00
Ben Visness b53770932d No longer require a migration in seedfile
We don't need to do this any more, since our database backups now
include the migration table. The seedfile command also no longer
requires the user to type a password.

This also prevents the Discord history bot from running when it has no
credentials.
2021-09-05 19:43:49 -05:00
Ben Visness 6f7237f656 Log errors if ErrorResponse panics
We have to do this because otherwise the errors never actually end up in
the ResponseData.
2021-09-05 19:00:25 -05:00
Ben Visness 59f5243839 Prefix things with "public." inside Postgres functions
Boy is this a stupid behavior of Postgres, and one that only really
manifests when restoring data from a backup.
2021-09-05 17:43:34 -05:00
Asaf Gartner e542ef27ec Write to TLRI when users view blog posts. 2021-09-05 23:16:35 +03:00
Asaf Gartner 7e6b24c214 Remove unused editor.css and editor.js imports. 2021-09-05 23:04:37 +03:00
Asaf Gartner b0930dd4f2 Removed project submission button from project index. 2021-09-05 22:57:10 +03:00
Asaf Gartner c76ea45ca9 Replaced relogin rejection with a notice and proper redirect. 2021-09-05 22:50:15 +03:00
Asaf Gartner e74b18967e Added /atom/projects?all for inso 2021-09-05 22:43:34 +03:00
Asaf Gartner 73d0b65371 Shorten security timer 2021-09-05 01:43:24 +03:00
Ben Visness a42973c3cb More server setup stuff I dunno I'm sorry 2021-09-04 16:09:01 -05:00
Asaf Gartner 307a122518 Another attempt at crash mailing 2021-09-04 21:59:03 +03:00
Ben Visness a288ae8124 Remove the sitemap from the footer 2021-09-01 21:54:51 -05:00
Ben Visness 6aa705d5cc Random CSS I dunno 2021-09-01 21:41:39 -05:00
Asaf Gartner d78a2e8e82 Breadcrumbs 2021-09-01 21:25:09 +03:00
Ben Visness 1f39b166cb Make many improvements and fixes to the markdown experience 2021-09-01 01:15:13 -05:00
Ben Visness 1ac867fded Make forum anchors more pleasant 2021-08-30 18:57:44 -05:00
Ben Visness 5247afcfc6 Fix scheme issue with X-Forwarded-Proto 2021-08-30 18:39:24 -05:00
Ben Visness e5055a1237 Fix some small bugs 2021-08-29 19:15:48 -05:00
Ben Visness 4204081563 Make tons of fixes to server setup 2021-08-29 18:11:41 -05:00
Ben Visness f40936ae61 Tweak some scripts, make executable 2021-08-28 16:33:15 -05:00
Ben Visness bc39b4c0b7 Clean up TODOs 2021-08-28 12:07:45 -05:00
Ben Visness 57d4216d2d Add tools for creating subforums and moving threads 2021-08-28 10:16:02 -05:00
Ben Visness f7c754e53b Style tweaks 2021-08-28 08:43:11 -05:00
Asaf Gartner 5fa0a3a7c2 Processed some TODOs 2021-08-28 16:32:27 +03:00
Ben Visness c59b58daf0 Restrict project header links 2021-08-28 08:11:01 -05:00
Asaf Gartner e23f5fbcf6 Fixed ip handling 2021-08-28 15:53:06 +03:00
Ben Visness 0179ee1993 Use the new font on the logo 2021-08-28 07:33:20 -05:00
Asaf Gartner cb5c3c403d Internal server error page 2021-08-28 15:21:40 +03:00
Ben Visness a655fe96bc Fix up remaining project colors 2021-08-28 07:14:49 -05:00
Ben Visness 73a20a9a93 Add jam page 2021-08-28 06:26:17 -05:00
Asaf Gartner 573fd8d2a2 Episode guide and trailing slashes in urls 2021-08-28 13:40:13 +03:00
Asaf Gartner b29ae69a25 Merge branch 'master' of gitssh.handmade.network:hmn/hmn 2021-08-28 10:29:35 +03:00
Ben Visness 67b86720a9 Add user edit form
Add most of the user settings backend

still need to do discord lol

Add the Discord settings

Add avatar uploads
2021-08-27 17:18:02 -05:00
Ben Visness 16ae2188d1 Add background features to the Discord bot 2021-08-26 22:59:12 -05:00