Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP just fucken rewrite the entire thing in rails #164

Draft
wants to merge 229 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
229 commits
Select commit Hold shift + click to select a range
ca5a750
delete stuff
apaleslimghost Dec 31, 2020
f3633d0
do rails new
apaleslimghost Dec 31, 2020
b867eb1
users scaffold
apaleslimghost Dec 31, 2020
45950b7
scaffold campaigns
apaleslimghost Dec 31, 2020
38614e9
update to do list
apaleslimghost Dec 31, 2020
974983b
scaffold cards
apaleslimghost Dec 31, 2020
1f45404
markdown
apaleslimghost Dec 31, 2020
c39934a
average card has five types actually statistical error. polymorphisms
apaleslimghost Dec 31, 2020
86c5da1
redirect i guess
apaleslimghost Dec 31, 2020
4a65b3e
header styling
apaleslimghost Jan 1, 2021
0d08aff
card types via postgres json
apaleslimghost Jan 1, 2021
db60f99
foot stomp hand clap ground work
apaleslimghost Jan 1, 2021
322edbd
wrong model
apaleslimghost Jan 1, 2021
25d287e
saving and displaying campaign image
apaleslimghost Jan 2, 2021
aea39fd
use a partial for images
apaleslimghost Jan 2, 2021
3fadbad
add webpacker and turbolinks
apaleslimghost Jan 2, 2021
a84a24d
add stimulus; image lazy loading
apaleslimghost Jan 2, 2021
de34802
fix showing blur
apaleslimghost Jan 3, 2021
a9140bf
refactor out image form
apaleslimghost Jan 4, 2021
cc34d69
works in ruby 3 i guess
apaleslimghost Jan 6, 2021
6f9f8e0
temp homepage links, remove log
apaleslimghost Jan 6, 2021
7522d63
splash styling
apaleslimghost Jan 6, 2021
3bb75e0
card grid & styling
apaleslimghost Jan 7, 2021
8448a12
save and display card images
apaleslimghost Jan 7, 2021
11adab2
refactor out image header partial
apaleslimghost Jan 7, 2021
29c1b04
fix sass vars (i swear this worked before)
apaleslimghost Jan 7, 2021
ecc7bdf
do nested image attributes a bit more properly which fixes update
apaleslimghost Jan 7, 2021
7f18d88
right argument for image header partial
apaleslimghost Jan 7, 2021
46649d4
fix header styles for non-image campaigns
apaleslimghost Jan 9, 2021
ea99d0b
card page images
apaleslimghost Jan 9, 2021
3f6e241
fix saving cards/campaigns with existing images
apaleslimghost Jan 9, 2021
e3ea822
add typed_dag and card links
apaleslimghost Jan 10, 2021
e9d6bc2
prevent reflexive and duplicate links
apaleslimghost Jan 10, 2021
9cd85d7
implement link type select correctly
apaleslimghost Jan 10, 2021
6621cdf
something something links
apaleslimghost May 28, 2021
4ba19dd
remove card data and use actable instead
apaleslimghost May 28, 2021
3fbb9e7
specific form for creating quest cards
apaleslimghost May 28, 2021
26215d8
font tweaks
apaleslimghost May 29, 2021
73c9e0e
specific controller & views for card types
apaleslimghost May 29, 2021
bbaac63
abstract card type controller
apaleslimghost May 29, 2021
a002852
concern for common card type stuff
apaleslimghost May 29, 2021
1aff2ee
scaffold objectives and rename quest table for consistency
apaleslimghost May 29, 2021
a7b22d3
trim down card controller, dynamic new card page
apaleslimghost May 29, 2021
126e99d
less ridiculous card type filtering
apaleslimghost May 29, 2021
60d0dc4
form for objective with quest select
apaleslimghost May 29, 2021
20626e7
redirect to specific card
apaleslimghost May 29, 2021
e6077b2
switch fonts for like the fifth time today
apaleslimghost May 29, 2021
038a4cf
type specific partials
apaleslimghost May 29, 2021
c77f224
fix card actions
apaleslimghost May 29, 2021
72623e5
collapse view hierarchy to make cross-namespace partials work
apaleslimghost May 29, 2021
c5f2624
fix partial lookup
apaleslimghost May 29, 2021
de9adab
consolidate card partials
apaleslimghost May 29, 2021
304d017
did those
apaleslimghost May 29, 2021
084a3db
add controller to search unsplash
apaleslimghost May 29, 2021
9e62d0a
add unsplash search image selector
apaleslimghost May 30, 2021
3f5363c
contrast for text on images
apaleslimghost May 30, 2021
c9a53da
improve card styling
apaleslimghost May 30, 2021
99a9437
card & header style tweaks
apaleslimghost May 30, 2021
7a8158f
refactor layouts & templates
apaleslimghost May 30, 2021
630b46c
fix menu order
apaleslimghost May 30, 2021
33185e6
fix splash header positioning with no image
apaleslimghost May 30, 2021
9bc24e4
improve froms & new card flow
apaleslimghost May 30, 2021
6b043fc
type descriptions
apaleslimghost May 30, 2021
370cb1a
add location card type
apaleslimghost May 30, 2021
3a9b419
link to location parents & children
apaleslimghost May 30, 2021
2e0347b
campaigns index design
apaleslimghost May 30, 2021
c130fc9
better design for image-only cards
apaleslimghost May 30, 2021
58c9b3e
move from campaign owner to campaign users with access levels
apaleslimghost May 30, 2021
cce0043
better looking (but less cool) scrim
apaleslimghost May 30, 2021
b4e04f4
reinstate outline because it's just so nice
apaleslimghost May 30, 2021
cdb06d0
semi transparent outline
apaleslimghost May 30, 2021
e051c56
only scrim if there's an image
apaleslimghost May 30, 2021
6aadbaa
header subtitle fixes
apaleslimghost May 30, 2021
5a8266b
link to objective quest in header
apaleslimghost May 30, 2021
e8c5c07
icons everywhere
apaleslimghost May 30, 2021
3049a03
more compact, rounder cards
apaleslimghost May 30, 2021
c828050
partial for header with icon
apaleslimghost May 31, 2021
fe659d6
add location to quests and objectives
apaleslimghost May 31, 2021
7b7bb6b
display quests & objectives on location page
apaleslimghost May 31, 2021
2dfe808
only show this campaign's cards in selects
apaleslimghost May 31, 2021
d6012ca
add card visibility
apaleslimghost May 31, 2021
3c3ccd5
only show edit link for users that can
apaleslimghost May 31, 2021
3f206a3
only show campaign edit link to owners
apaleslimghost May 31, 2021
3c1a6dd
protect card edit action
apaleslimghost May 31, 2021
694fded
add campaign settings and public campaign visibility
apaleslimghost May 31, 2021
543671d
commit rails crimes to have only cards visible to user appear
apaleslimghost May 31, 2021
859c99d
no tests pls
apaleslimghost May 31, 2021
9c9a7c0
add visibility controls
apaleslimghost May 31, 2021
5035eb8
validate visibility and editability, fix error rendering
apaleslimghost May 31, 2021
eb66a4d
add quick objective add form
apaleslimghost May 31, 2021
d6d34b8
remove typed_dag and card links
apaleslimghost May 31, 2021
2d8809d
unsplash attribution
apaleslimghost Jun 2, 2021
f2fc3e8
add font awesome and tweak/add some icons
apaleslimghost Jun 5, 2021
5c50814
start improving card edit page design
apaleslimghost Jun 5, 2021
96f2226
add usernames and gravatars
apaleslimghost Jun 5, 2021
0dfb7e7
add index on usernames
apaleslimghost Jun 5, 2021
1c630c0
user profile page
apaleslimghost Jun 5, 2021
a9d3f94
only show account settings to self
apaleslimghost Jun 5, 2021
c891230
add campaign members page
apaleslimghost Jun 5, 2021
3f5a11c
better campaign members list
apaleslimghost Jun 5, 2021
644ea6d
default gravatar to monsterid
apaleslimghost Jun 5, 2021
4d85ec7
more log in ux
apaleslimghost Jun 5, 2021
2e46ff5
reinstate card links using associations not typed_dag
apaleslimghost Jun 6, 2021
c379f91
eager load card owner bc we query it, a lot
apaleslimghost Jun 6, 2021
efa9803
set up a rabbitmq queue for broadcasting model changes
apaleslimghost Jun 7, 2021
9b88637
auto broadcast card & campaign changes
apaleslimghost Jun 7, 2021
7ac3077
okay but do it with actioncable instead
apaleslimghost Jun 7, 2021
bf1a1e5
hook up cards to live stream updates, in probably the worst way possible
apaleslimghost Jun 7, 2021
385ddea
fix creating users
apaleslimghost Jun 12, 2021
3365fc2
let migration run before any users created
apaleslimghost Jun 12, 2021
844ea7e
fix dependencies question mark?
apaleslimghost Jun 12, 2021
5dc9104
"fix" card layout
apaleslimghost Jun 13, 2021
3d8cd67
actual rails instructions
apaleslimghost Jun 13, 2021
4b082ad
move campaign user things to own controller and add adding campaign u…
apaleslimghost Jul 4, 2021
ffb1235
invited users are pending
apaleslimghost Jul 4, 2021
34d0a64
fix comical zoomed in nostril header
apaleslimghost Jul 4, 2021
253e44c
don't show the splash image for user pages
apaleslimghost Jul 4, 2021
252ff61
use scopes for invites
apaleslimghost Jul 4, 2021
b875d70
show pending invites on user page and accept
apaleslimghost Jul 4, 2021
78b7dbf
basically completely replace rails's error handling stack
apaleslimghost Jul 4, 2021
575f81d
only show invite stuff for owner
apaleslimghost Jul 4, 2021
f0d9bd4
yeah i probably want to prevent users editing each other
apaleslimghost Jul 4, 2021
600035b
setting user access on invite
apaleslimghost Jul 4, 2021
d8455a9
allow declining invites
apaleslimghost Jul 4, 2021
d7af170
tables question mark
apaleslimghost Jul 4, 2021
6df67e7
invite count
apaleslimghost Jul 4, 2021
f827ee9
right
apaleslimghost Jul 5, 2021
3f12a23
did
apaleslimghost Jul 5, 2021
d995b0b
ensure unique usercampaigns
apaleslimghost Jul 5, 2021
2c262ba
joining from link with token
apaleslimghost Jul 5, 2021
7381463
deleting users from campaign
apaleslimghost Jul 5, 2021
076f10b
a dashboard page and actioncable channel for it
apaleslimghost Jul 6, 2021
1931de5
start design & layout for dashboard
apaleslimghost Jul 6, 2021
1804d27
style tweaks
apaleslimghost Jul 6, 2021
ec2c810
abstract out location header & reuse in dash
apaleslimghost Jul 6, 2021
8e88dd7
display parent image for location if none
apaleslimghost Jul 6, 2021
bddb139
consolidate location templates
apaleslimghost Jul 7, 2021
ec9de5a
ornaments
apaleslimghost Jul 7, 2021
ea20450
do a quest list
apaleslimghost Jul 7, 2021
64fa467
quest list style tweaks
apaleslimghost Jul 7, 2021
ed16875
just reload the entire dashboard lol
apaleslimghost Jul 7, 2021
56dbfec
clean up misnamed files
apaleslimghost Jul 7, 2021
05c20e7
card descriptions
apaleslimghost Jul 7, 2021
cefdecc
already had an association for that
apaleslimghost Jul 7, 2021
dc3d47c
generic card header templates
apaleslimghost Jul 7, 2021
89ce47d
consistent campaign headers
apaleslimghost Jul 7, 2021
20ce45c
do Rails Crimes™ to make dashboard only show cards visible to whole c…
apaleslimghost Jul 7, 2021
71caeee
hide when presenting or non-owner
apaleslimghost Jul 7, 2021
2143da4
dashboard links
apaleslimghost Jul 7, 2021
287855d
clean up logging
apaleslimghost Jul 8, 2021
4038997
"fix" campaign visibility
apaleslimghost Jul 8, 2021
706e6aa
split up css
apaleslimghost Jul 8, 2021
3f1d4c3
mom can we get origami? "no we have origami at home"
apaleslimghost Jul 8, 2021
6afafb6
i blame andrew betts
apaleslimghost Jul 8, 2021
080b0cb
put current location into url
apaleslimghost Jul 8, 2021
1a1dfda
fix presenting with new url
apaleslimghost Jul 8, 2021
30ac1d3
rename settings to dashboard and move the non-dashboard stuff to camp…
apaleslimghost Jul 9, 2021
5a95de0
fix sass imports
apaleslimghost Dec 25, 2021
33900ac
switch text body for structured content
apaleslimghost Dec 25, 2021
03dc539
stub out references to card body
apaleslimghost Dec 25, 2021
d055cd8
rendering editorjs content (sort of)
apaleslimghost Dec 25, 2021
4e85563
add editor.js
apaleslimghost Dec 27, 2021
049839e
get excerpts working again
apaleslimghost Dec 27, 2021
807825d
inline editor for page content
apaleslimghost Dec 27, 2021
683dd1f
inline forms for title and description
apaleslimghost Dec 27, 2021
b045c1d
auto sizing form fields
apaleslimghost Dec 27, 2021
55e7044
add more editor tools
apaleslimghost Dec 27, 2021
f118888
add support for link autocomplete
apaleslimghost Dec 27, 2021
18bbd17
link entire card header
apaleslimghost Dec 31, 2021
0d2e298
fix rendering dashboard
apaleslimghost Dec 31, 2021
6240289
smoother gradients
apaleslimghost Dec 31, 2021
532b2d2
don't show title/description edit to disallowed users or on dashboard
apaleslimghost Dec 31, 2021
99cf840
show server-rendered content until editorjs is ready
apaleslimghost Dec 31, 2021
468cf03
add initial card insert editorjs block
apaleslimghost Dec 31, 2021
94208f2
prevent infinite card render loop
apaleslimghost Dec 31, 2021
aa3ea92
remove lazy image loading
apaleslimghost Dec 31, 2021
4631353
fix card spacing
apaleslimghost Jan 1, 2022
c3352ae
fix campign card layout
apaleslimghost Jan 1, 2022
9fadc3c
fix editor width
apaleslimghost Jan 1, 2022
4cf801a
give editor a bit of space
apaleslimghost Jan 1, 2022
a65088f
switch editorjs for tiptap
apaleslimghost Jan 1, 2022
1f478ee
janky block dragging
apaleslimghost Jan 1, 2022
7c07cf7
get cards rendering in tiptap
apaleslimghost Jan 1, 2022
e821b39
fix card node serialisation
apaleslimghost Jan 2, 2022
b510836
improve drag ux and fix null positions
apaleslimghost Jan 2, 2022
9cfe60c
pin yarn, arm nokogiri build
apaleslimghost Feb 26, 2022
177004b
upgrade webpacker to fix build on m1
apaleslimghost Feb 26, 2022
0e8dc74
what was that file doing there
apaleslimghost Feb 26, 2022
c6ed47f
hmm
apaleslimghost Jun 24, 2024
b4eb304
update webpacker and remove yarn.lock
apaleslimghost Jun 24, 2024
c8d0670
use an internal import not an internal-internal import
apaleslimghost Jun 24, 2024
c38b758
downgrade jsx-dom. idk why this webpack doesn't like `??` but i just …
apaleslimghost Jun 25, 2024
2b699a6
don't send empty unpslash query
apaleslimghost Jun 25, 2024
364c35b
nicer body font
apaleslimghost Jun 25, 2024
c258340
get campaign creation working again
apaleslimghost Jun 25, 2024
0d15bef
pass minimum_visibility through CardLink#visible?
apaleslimghost Jun 25, 2024
e27e8a2
fix rendering dashboard with no current location
apaleslimghost Jun 25, 2024
650794b
move card unlink button out of link
apaleslimghost Jun 25, 2024
ed3dd7d
card actions styles
apaleslimghost Jun 25, 2024
4ab0fae
remove current tiptap plugins
apaleslimghost Jun 25, 2024
53ad5ea
add tiptap bubble menu and some actions
apaleslimghost Jun 25, 2024
65346f7
remove slug from cards
apaleslimghost Jun 25, 2024
bc17e68
editor placeholder
apaleslimghost Jun 25, 2024
55b785a
update to stimulus v3 and use action params to dry the formatting act…
apaleslimghost Jun 25, 2024
ce33495
card links as mentions
apaleslimghost Jun 25, 2024
1c612ff
more to do
apaleslimghost Jun 25, 2024
2b1c9db
add mentioned cards as related links
apaleslimghost Jun 25, 2024
8b1f14b
use placeholder for auto width if no value
apaleslimghost Jun 26, 2024
e9b849f
don't try to walk the tree of a card with no content
apaleslimghost Jun 26, 2024
29b6fee
allow unlabelled icons in icon header
apaleslimghost Jun 26, 2024
d914f17
"add something" card for nicer blank campaigns
apaleslimghost Jun 26, 2024
9e88936
card title for cards with no title
apaleslimghost Jun 26, 2024
e731b4f
immediately create card and take you to edit it instead of separate "…
apaleslimghost Jun 26, 2024
7b81833
slightly cursed sass underline specificity
apaleslimghost Jun 26, 2024
207f0ac
consolidate friendly "unnamed ____" titles
apaleslimghost Jun 26, 2024
e2628a8
blockquote styling
apaleslimghost Jun 26, 2024
b9fa990
hide placeholder on focus
apaleslimghost Jun 26, 2024
b5c3eb1
add document card type
apaleslimghost Jun 26, 2024
ce426cf
allow overriding card page content and header per type
apaleslimghost Jun 26, 2024
c05c4f2
fully custom document card view. use tiptap-ruby for rendering content
apaleslimghost Jun 26, 2024
fa62ff2
fix the weird firefox autocomplete bug with a gem
apaleslimghost Jun 26, 2024
585ab68
get rid of "add related" section
apaleslimghost Jun 26, 2024
2be242b
get rid of last bits of editorjs
apaleslimghost Jun 27, 2024
a97ab91
switch from webpacker to jsbundling-rails and turbolinks to turbo
apaleslimghost Jun 27, 2024
bed708a
render card edit form fields on show view
apaleslimghost Jun 27, 2024
ab47d70
fix reference to Card#slug
apaleslimghost Jun 27, 2024
0981895
clean up card new/edit actions
apaleslimghost Jun 27, 2024
5451406
trigger autosave on change as well as input
apaleslimghost Jun 27, 2024
cccb0f5
clean up my "we have Turbo Streams at home" implementation
apaleslimghost Jun 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

1 change: 1 addition & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
defaults
8 changes: 8 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# See https://git-scm.com/docs/gitattributes for more about git attribute files.

# Mark the database schema as having been generated.
db/schema.rb linguist-generated


# Mark any vendored files as having been vendored.
vendor/* linguist-vendored
25 changes: 0 additions & 25 deletions .github/workflows/test.yml

This file was deleted.

39 changes: 37 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
node_modules/
.idea/
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'

# Ignore bundler config.
/.bundle

# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep

# Ignore pidfiles, but keep the directory.
/tmp/pids/*
!/tmp/pids/
!/tmp/pids/.keep


/public/assets
.byebug_history

# Ignore master key for decrypting credentials and more.
/config/master.key

.env

/public/packs
/public/packs-test
/node_modules
/yarn-error.log
yarn-debug.log*
.yarn-integrity

/app/assets/builds/*
!/app/assets/builds/.keep
18 changes: 0 additions & 18 deletions .meteor/.finished-upgraders

This file was deleted.

1 change: 0 additions & 1 deletion .meteor/.gitignore

This file was deleted.

7 changes: 0 additions & 7 deletions .meteor/.id

This file was deleted.

30 changes: 0 additions & 30 deletions .meteor/packages

This file was deleted.

2 changes: 0 additions & 2 deletions .meteor/platforms

This file was deleted.

1 change: 0 additions & 1 deletion .meteor/release

This file was deleted.

97 changes: 0 additions & 97 deletions .meteor/versions

This file was deleted.

2 changes: 0 additions & 2 deletions .meteorignore

This file was deleted.

2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@tiptap-pro:registry=https://registry.tiptap.dev/
//registry.tiptap.dev/:_authToken=${TIPTAP_PRO_TOKEN}
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0.0
3 changes: 0 additions & 3 deletions .storybook/addons.js

This file was deleted.

18 changes: 0 additions & 18 deletions .storybook/config.js

This file was deleted.

49 changes: 49 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '3.0.0'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 6.1.0'
# Use postgresql as the database for Active Record
gem 'pg', '~> 1.1'
# Use Puma as the app server
gem 'puma', '~> 5.0'
# Use SCSS for stylesheets
gem 'sass-rails', '>= 6'
# Use Active Model has_secure_password
gem 'bcrypt', '~> 3.1.7'

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: %i[mri mingw x64_mingw]
gem 'dotenv-rails', '~> 2.7'
end

group :development do
gem 'listen', '~> 3.3'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]

gem 'has_unique_slug', '~> 0.1.8'

gem 'commonmarker', '~> 0.21.0'

gem 'active_record-acts_as', '~> 5.0'

gem 'unsplash', '~> 2.1'

gem 'font-awesome-sass', '~> 4.7'

gem 'rb-gravatar', '~> 1.0'

gem 'actioncable', '~> 6.1'

gem "tiptap-ruby", "~> 0.9.3"

# remove when you update to rails 7
gem "rails-hidden_autocomplete", "~> 0.4.0"

gem "jsbundling-rails", "~> 1.3"
Loading