Commit Graph

311 Commits

Author SHA1 Message Date
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