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

Padawan #43

Merged
merged 93 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
be9fb33
padawan - settimeout to keep container alive while user is on page
dcordz Jun 6, 2024
d6af4f3
Merge branch 'main' of https://github.com/Plebeian-Technology/sway in…
dcordz Jun 7, 2024
a115e68
padawan - deploy script
dcordz Jun 7, 2024
d152ba2
padawan - ignore wireguard
dcordz Jul 6, 2024
5ae72ff
Merge branch 'main' of https://github.com/Plebeian-Technology/sway in…
dcordz Jul 6, 2024
5d1ed42
padawan - remove turnstile
dcordz Jul 6, 2024
0e0e6cd
inertia - remove redux and use inertia instead
dcordz Aug 22, 2024
f55da02
inertia - add maryland svg, fix census query
dcordz Aug 22, 2024
4d80b4c
inertia - fix notification subscriptions create/destroy, fix census l…
dcordz Aug 22, 2024
7dbaaab
inertia - add maryland svg, fix census query, add unique index to bil…
dcordz Aug 26, 2024
a9d535c
inertia - fix rspec, get new tapioca dsl + gems
dcordz Aug 26, 2024
3f67ec1
inertia - rspec test ruby version
dcordz Aug 26, 2024
8b8c06f
inertia - typescript and eslint gh actions
dcordz Aug 26, 2024
e06c594
inertia - rspec action
dcordz Aug 26, 2024
97e018d
inertia - fix eslint - https://github.com/t3-oss/create-t3-turbo/issu…
dcordz Aug 26, 2024
80bccb8
inertia - add ssl certs for github + address some sonar issues
dcordz Aug 26, 2024
151df51
main - remove uneeded code
dcordz Aug 27, 2024
6d6427f
main - merge remote, fix conflict
dcordz Aug 27, 2024
015582e
padawan - merge main, fix conflicts
dcordz Aug 27, 2024
e75d074
padawan - merge main, fix conflicts
dcordz Aug 27, 2024
5cda4c6
Merge branch 'padawan' of https://github.com/Plebeian-Technology/sway…
dcordz Aug 27, 2024
9c8490e
inertia - update deps
dcordz Oct 22, 2024
42d185d
inertia - upgraded deps
dcordz Oct 23, 2024
fa73bab
padawan - update deps, node version, minor adjustments
dcordz Nov 3, 2024
500e444
padawan - merge inertia branch, update sorbet/tapioca rbi files
dcordz Nov 3, 2024
c4ffdd6
padawan - re-version schema
dcordz Nov 3, 2024
4f6e50d
padawan - eslint lint
dcordz Nov 3, 2024
65c7c6a
padawan - replace dart-sass with sass, use npm ci instead of install
dcordz Nov 3, 2024
e837d6a
padawan - remove lock.json and node modules and reinstall
dcordz Nov 3, 2024
0feff8d
Merge branch 'main' of https://github.com/Plebeian-Technology/sway in…
dcordz Nov 3, 2024
caff8ce
padawan - fake bill data, seeds, button sizes
dcordz Nov 4, 2024
a5fedb2
padawan - move bill creator fields to separate component
dcordz Nov 7, 2024
40ce927
padawan - move bill creator fields to separate components
dcordz Nov 7, 2024
a5a37f5
padawan - don't deploy fake seed bills to prod
dcordz Nov 7, 2024
9f7a8e7
padawan - center charts on desktop, change locales name in locale sel…
dcordz Nov 10, 2024
136d4cc
Merge branch 'padawan' of https://github.com/Plebeian-Technology/sway…
dcordz Nov 10, 2024
ae17db8
padawan - use annotaterb instead of annotate, remove annotate from hu…
dcordz Nov 11, 2024
fec2a12
padawan - rspec ruby version, docker ruby version
dcordz Nov 11, 2024
baa8c0d
padawan - merge main
dcordz Nov 13, 2024
233735d
padawan - disable newrelic for browser
dcordz Nov 13, 2024
51be603
padawan - fix twilio issue, add colClass to bill creator fields
dcordz Nov 14, 2024
0d153fe
botw-schedule - add calendar deps
dcordz Nov 14, 2024
f7ce76e
schedule change highlighted days on change month + year
dcordz Nov 14, 2024
9e213f8
botw-schedule - remove react-datepicker, use mui
dcordz Nov 14, 2024
cc4b547
botw-schedule - prompt before changing to scheduler when creator is d…
dcordz Nov 14, 2024
335069a
botw-schedule - add danger to confirmation
dcordz Nov 14, 2024
c87cf82
botw-schedule - lazy load scheduler
dcordz Nov 14, 2024
c15fe62
botw-schedule - send push notifications when the bill schedule is upd…
dcordz Nov 14, 2024
c0d0ad8
botw-schedule - use <attribute>_was https://stackoverflow.com/questio…
dcordz Nov 14, 2024
9fefe6e
botw-schedule - temp save botw bills in local storage
dcordz Nov 15, 2024
85c4fa3
botw-schedule - frontend deps
dcordz Nov 15, 2024
aeb2a64
botw-schedule - add a clear button
dcordz Nov 15, 2024
17cbc5d
botw-schedule - fix sending notifications when bill updated
dcordz Nov 15, 2024
a207c6f
botw-schedule - mobile bill creator
dcordz Nov 15, 2024
706e801
padawan - don't wrap emojis in promise
dcordz Nov 15, 2024
5c0eb49
padawan - error boundary
dcordz Nov 15, 2024
58b81cb
padawan - add tf to .gitignore, remove tf from git
dcordz Nov 17, 2024
4ea9149
inertia - inertia history event listener on window
dcordz Nov 18, 2024
d965998
inertia - add unscheduled bills list to creator, lazy load bill user …
dcordz Nov 19, 2024
f6d36dd
padawan - add sentry
dcordz Nov 20, 2024
297983a
padawan - category and introduced on date are required
dcordz Nov 20, 2024
3cb080e
Merge branch 'padawan' into inertia
dcordz Nov 20, 2024
817ae29
inertia - new bill creator layout
dcordz Dec 8, 2024
3f64078
inertia - inertia 1
dcordz Dec 8, 2024
0653d73
inertia - bill seed arguments
dcordz Dec 8, 2024
40ab487
inertia - scheduler issues
dcordz Dec 8, 2024
06a9778
council - send all sway locale orgnizations to creator so admin can p…
dcordz Dec 8, 2024
5f65700
council - get locale date string not iso string
dcordz Dec 10, 2024
db7b3d2
council - date parsing
dcordz Dec 10, 2024
8d7ac28
padawan - bill creator organizations errors, set default support as For
dcordz Dec 11, 2024
542fcca
padawan - fix tests, add validations to seeds
dcordz Dec 12, 2024
700b532
padawan - fixes
dcordz Dec 15, 2024
a00dd1b
padawan - remove tailscale
dcordz Dec 15, 2024
141e7d1
inertia-fying
dcordz Dec 16, 2024
5a23060
padawan - form validation
dcordz Dec 16, 2024
eefecb4
chnaging auth
dcordz Dec 23, 2024
7a38100
usefetch
dcordz Dec 26, 2024
0c94cf9
council 2024 seeds
dcordz Jan 4, 2025
f9f4684
latest election year migration
dcordz Jan 4, 2025
07f56f8
council-2024 - congress legislators set up
dcordz Jan 4, 2025
b9b45ce
seeds code
dcordz Jan 4, 2025
cc5b189
finalize new congressional legislators
dcordz Jan 4, 2025
b0ae842
upgrade rails
dcordz Jan 4, 2025
114b728
council-2024 - migrations
dcordz Jan 4, 2025
f38cd35
council-2024 - upgrade rails version
dcordz Jan 4, 2025
6dd5d16
council-2024 - remove recaptcha dep
dcordz Jan 4, 2025
9312715
remove user legislator update from seeds, create rake task
dcordz Jan 4, 2025
cfb65f2
remove seeds from every deploy
dcordz Jan 5, 2025
5367539
council-2024 - update gems
dcordz Jan 5, 2025
3453672
padawan - fix tests
dcordz Jan 6, 2025
c1f2700
remove seeds from tests in github
dcordz Jan 6, 2025
5177d7b
padawan - fix merge conflicts with main
dcordz Jan 6, 2025
25959fc
padawan - re-install node modules
dcordz Jan 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .annotaterb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
:position: before
:position_in_additional_file_patterns: before
:position_in_class: before
:position_in_factory: before
:position_in_fixture: before
:position_in_routes: before
:position_in_serializer: before
:position_in_test: before
:classified_sort: true
:exclude_controllers: true
:exclude_factories: false
:exclude_fixtures: false
:exclude_helpers: true
:exclude_scaffolds: true
:exclude_serializers: false
:exclude_sti_subclasses: false
:exclude_tests: false
:force: false
:format_markdown: false
:format_rdoc: false
:format_yard: false
:frozen: false
:ignore_model_sub_dir: false
:ignore_unknown_models: false
:include_version: false
:show_check_constraints: false
:show_complete_foreign_keys: false
:show_foreign_keys: true
:show_indexes: true
:simple_indexes: false
:sort: false
:timestamp: false
:trace: false
:with_comment: true
:with_column_comments: true
:with_table_comments: true
:active_admin: false
:command:
:debug: false
:hide_default_column_types: ""
:hide_limit_column_types: ""
:ignore_columns:
:ignore_routes:
:models: true
:routes: false
:skip_on_db_migrate: false
:target_action: :do_annotations
:wrapper:
:wrapper_close:
:wrapper_open:
:classes_default_to_s: []
:additional_file_patterns: []
:model_dir:
- app/models
:require: []
:root_dir:
- ""
3 changes: 1 addition & 2 deletions .github/workflows/rspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Ruby and install gems
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3.5"
ruby-version: "3.3.6"
bundler-cache: true

- name: Set up Node.js
Expand All @@ -37,7 +37,6 @@ jobs:
bundle exec rails db:create
bundle exec rails db:migrate
bundle exec rails db:schema:load
bundle exec rails db:seed

- name: Set up certs
run: | # multi-line run command: https://stackoverflow.com/a/66809682/6410635
Expand Down
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
/.bundle

# Ignore vscode
/.idea
/.vscode

# Ignore all environment files (except templates).
Expand Down Expand Up @@ -61,4 +62,11 @@ litestream/dbs/*

wireguard.conf

!**/**/.keep
newrelic.yml

# Not using Terraform/Google Cloud
tf/

!**/**/.keep
# Sentry Config File
.env.sentry-build-plugin
2 changes: 0 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,4 @@ npx tsc --project tsconfig.json
echo "Run rubocop on changed files, autofix any fixable offenses"
bundle exec rubocop --autocorrect --only-recognized-file-types $changed_files

bundle exec annotate --models

git update-index --again
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v22.11.0
v22.12.0
2 changes: 0 additions & 2 deletions .npmrc

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v22.11.0
v22.12.0
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.5
3.3.6
27 changes: 19 additions & 8 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@

source "https://rubygems.org"

ruby "3.3.5"
ruby "3.3.6"

# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
gem "rails", "~> 7.2"
# gem "rails", "~> 8"
gem "rails", "~> 8"

# The original asset pipeline for Rails [https://github.com/rails/sprockets-rails]
gem "sprockets-rails"

# Use the Puma web server [https://github.com/puma/puma]
gem "puma", ">= 5.0"
gem "puma", ">= 5"

# # Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails]
# gem 'importmap-rails'
Expand Down Expand Up @@ -67,7 +68,11 @@ gem "inertia_rails"
# https://github.com/lostisland/faraday
# https://medium.com/@zozulyak.nick/ruby-class-pattern-to-work-with-api-requests-with-built-in-async-approach-bf0713a7dc96
gem "concurrent-ruby"

# https://github.com/lostisland/faraday
gem "faraday"

# https://github.com/mauricio/faraday_curl
# gem 'faraday_curl'

# https://github.com/cedarcode/webauthn-ruby
Expand All @@ -86,7 +91,7 @@ gem "sqlite3", "~> 2", force_ruby_platform: true
gem "sorbet-runtime"

# gcp storage for get/put org icons, etc.
gem "google-cloud-storage", "~> 1.5"
gem "google-cloud-storage"

# shorten invite urls
# https://github.com/jpmcgrath/shortener
Expand All @@ -98,9 +103,14 @@ gem "shortener"
# https://medium.com/@dejanvu.developer/implementing-web-push-notifications-in-a-ruby-on-rails-application-dcd829e02df0
gem "web-push"

group :production do
gem "scout_apm"
end
# Logs in a single line
# https://github.com/roidrage/lograge
gem "lograge"

gem "stackprof"
gem "sentry-ruby"
gem "sentry-rails"
gem "newrelic_rpm"

group :development, :test do
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
Expand Down Expand Up @@ -133,7 +143,8 @@ group :development do

# https://github.com/ctran/annotate_models
# https://stackoverflow.com/questions/1289557/how-do-you-discover-model-attributes-in-rails
gem "annotate"
# Use annotaterb instead of annotate - https://github.com/drwl/annotaterb
gem "annotaterb"

# Ruby type hints
# https://sorbet.org/docs/adopting
Expand Down
Loading
Loading