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/new to nl 2 #658

Draft
wants to merge 345 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 106 commits
Commits
Show all changes
345 commits
Select commit Hold shift + click to select a range
bd50229
Add link click metric
rsmithlal Sep 24, 2024
e471b98
Add download metric
rsmithlal Sep 24, 2024
4aef359
Fix nav item visible query to prevent excluding nav items without a l…
rsmithlal Sep 24, 2024
cc5c2e2
Catch ActionController::UrlGenerationError and send locale switcher u…
rsmithlal Sep 24, 2024
f44cd08
fix typo in instance variable
rsmithlal Sep 24, 2024
29d3a53
Revert "Catch ActionController::UrlGenerationError and send locale sw…
rsmithlal Sep 24, 2024
d9e84f1
Removed unnecessary inclusion of url_heleprs that was causing all kin…
rsmithlal Sep 24, 2024
754ec19
Add metrics report charts
rsmithlal Sep 24, 2024
3e34604
Don't log page views for known bot user agents
rsmithlal Sep 25, 2024
304d330
Merge branch 'main' into wip/new-to-nl-2
rsmithlal Sep 25, 2024
d4a4528
Replace hard-coded setup wizard step path with dynamic dispatch route
rsmithlal Sep 27, 2024
e2e8e24
Update hero block name translation
rsmithlal Oct 2, 2024
30d7224
update block class name translations
rsmithlal Oct 2, 2024
b454584
moved visible into a model concern
rsmithlal Oct 3, 2024
a048af9
Allow passing index to bt_identifier string column definition
rsmithlal Oct 3, 2024
fe21dbf
Finally remove need for slug column on identifier model db tables
rsmithlal Oct 3, 2024
ca3a570
Directly handle404 in resource controller set-resource_action when re…
rsmithlal Oct 3, 2024
30ead12
Update category table columns and indexes
rsmithlal Oct 3, 2024
d549d59
touch categorizable when category updated
rsmithlal Oct 4, 2024
4dc06b3
Remove extra whitespace
rsmithlal Oct 4, 2024
233f767
Add creator, privacy, and visible to blocks
rsmithlal Oct 4, 2024
509771a
Add dc docker compose convenience scropt
rsmithlal Oct 4, 2024
aa8b8bb
move block styles fields to partial
rsmithlal Oct 4, 2024
0f5c4c6
sanitize uploaded svg files
rsmithlal Oct 4, 2024
4d8d283
Add medium block type and set image to inherit from it.
rsmithlal Oct 4, 2024
efe180d
add background image for all blocks and other styling options
rsmithlal Oct 5, 2024
c392d99
Improved appearance of share buttons
rsmithlal Oct 5, 2024
895b95d
Remove slug column nulls on all tables that had them
rsmithlal Oct 5, 2024
6abc22d
don't render a trailing brackground image property comma when file pr…
rsmithlal Oct 5, 2024
d263efb
Whitespace
rsmithlal Oct 5, 2024
619b47a
Remove hero background image after migrating to new attachment name
rsmithlal Oct 5, 2024
7a5bb4e
Set style defaults for hero and rich text blocks
rsmithlal Oct 5, 2024
e6148f6
update share btn height/width
rsmithlal Oct 5, 2024
f1227cc
Ensure trix editor and trix content styles display consistently betwe…
rsmithlal Oct 5, 2024
86d4c72
set image previews to max height of 50 vh
rsmithlal Oct 5, 2024
538e88b
Show edit button shortcut on every editable page if you are a platfor…
rsmithlal Oct 6, 2024
0e1e31f
Update page edit toolbar z-index
rsmithlal Oct 6, 2024
5742a73
Add custom css content block with translatable style content
rsmithlal Oct 6, 2024
9a9fcef
Add translatable html content to html block and add data migration task
rsmithlal Oct 6, 2024
e81c5d2
Adjust profile image position to not overlap with profile name
rsmithlal Oct 6, 2024
43975e4
Add custom css block to platform to allow customizing css sitewide
rsmithlal Oct 6, 2024
7b0443f
Adjust social share buttons to use font awesome stack instead of boot…
rsmithlal Oct 6, 2024
1445acb
Add filetype icons after links when they link to a file
rsmithlal Oct 7, 2024
2e0ddf7
Add scroll indicator on 100vh hero blocks
rsmithlal Oct 7, 2024
c745699
Use page policy to preload page associations
rsmithlal Oct 7, 2024
04cc20e
Update url to dynamic host_platform url in terms of service
rsmithlal Oct 7, 2024
7cbf302
Ensure that creator_id is set for migrated page rich text blocks
rsmithlal Oct 7, 2024
4dbf017
Ensure that remove_attachment attrs are included for removable attach…
rsmithlal Oct 7, 2024
ac8cfba
Ensure that css content is treated as html_safe to prevent escaping t…
rsmithlal Oct 8, 2024
ce79195
Remove mouse symbol in hero scroll indicator
rsmithlal Oct 8, 2024
8382ec2
Improved search bar position style
rsmithlal Oct 8, 2024
601497a
Improved appearance and accessibility of top nav bar items
rsmithlal Oct 8, 2024
60f77f0
WIP: Nav icons
rsmithlal Oct 8, 2024
f509e69
Merge branch 'main' into wip/new-to-nl-2
rsmithlal Oct 8, 2024
ad0c3ab
Include locale in conversation_url helper
rsmithlal Oct 8, 2024
cee8372
Add missing css policy
rsmithlal Oct 8, 2024
5128966
Improved nav bar link icons
rsmithlal Oct 8, 2024
e824f31
Improved messages section column layout
rsmithlal Oct 8, 2024
f09bbd2
Reduce size of new resource button
rsmithlal Oct 8, 2024
9cbb0a7
Ensure that people can only message platform managers unless they are…
rsmithlal Oct 8, 2024
eac746c
Allow configuring person locale
rsmithlal Oct 8, 2024
25a7944
Improved new message notification email delivery
rsmithlal Oct 8, 2024
d06641b
Remove poor icosn and add misising ones
rsmithlal Oct 8, 2024
eb5dae2
Improved search bar style and behaviour
rsmithlal Oct 8, 2024
3a4a196
Ensure that the platform is not accessible without login when privacy…
rsmithlal Oct 9, 2024
7710c0e
Adjust display of private platform error message to only load when te…
rsmithlal Oct 9, 2024
8e9a47f
Improve search indexing for page content
rsmithlal Oct 9, 2024
db236a8
remove unneeded medium block for now. Made it harder to deal with inh…
rsmithlal Oct 9, 2024
d5b6ea1
Ensure that tooltips are initialized on turbo load, too
rsmithlal Oct 9, 2024
aa3da4a
Allow for extending block content and person tabs/content in the host…
rsmithlal Oct 9, 2024
36fff98
Completed translation of new registration page
rsmithlal Oct 10, 2024
ce2c489
Completed transltions of new session view
rsmithlal Oct 10, 2024
101f3d0
Completed translation of passwords new view
rsmithlal Oct 10, 2024
4a5c0f0
Translated devise confirmations new view
rsmithlal Oct 12, 2024
0d3fdc9
Update spanish translations to ensure all model name and attribute va…
rsmithlal Oct 12, 2024
d4076d9
Translate person profile tabs
rsmithlal Oct 12, 2024
5068890
Translated notifications views
rsmithlal Oct 12, 2024
a33978f
Translated messaging and conversation views
rsmithlal Oct 12, 2024
5f1262a
Ensure consistent rendering of profile images across views and partia…
rsmithlal Oct 12, 2024
360444b
Added missing translation to es and fr locales for contact details an…
rsmithlal Oct 12, 2024
ac9ed2b
Improving contact details translations
rsmithlal Oct 12, 2024
64f9302
add bottom margin to social share buttons
rsmithlal Oct 12, 2024
21c3b6e
Do not render page show view under host path
rsmithlal Oct 12, 2024
31a3dbc
Search bar full-width
rsmithlal Oct 12, 2024
a9b6dbd
Render editor status nav items at the start of the collapsed nav
rsmithlal Oct 12, 2024
1be0c9d
render tooltips below top nav items
rsmithlal Oct 12, 2024
347ec05
move host nav item to end of top nav bar.
rsmithlal Oct 12, 2024
2ed04b5
align top nav dropdown menus to the end of the nav item
rsmithlal Oct 13, 2024
f250620
Improve nav item active state recognition
rsmithlal Oct 13, 2024
90e82a8
Show editor status buttons on pages edit and index views
rsmithlal Oct 13, 2024
c40c06e
Expand search bar into main nav
rsmithlal Oct 13, 2024
1437093
Improve notifiations page vertical spacing
rsmithlal Oct 13, 2024
9e7e7a9
Improved size of hero scroll-indicator
rsmithlal Oct 13, 2024
2ab57ea
Ensure header and footer collapsed navs look and behave the same
rsmithlal Oct 13, 2024
8991487
Consitent improved structure and positioning of profile cover image, …
rsmithlal Oct 13, 2024
46f0125
Update home page path to 'home'
rsmithlal Oct 13, 2024
1680b74
Fix typo in class name
rsmithlal Oct 13, 2024
e7e440e
Correctly scope stimulus controllers under better_together namespace
rsmithlal Oct 13, 2024
398c622
Add slim-select for powerful and dynamic select fields
rsmithlal Oct 13, 2024
b746b08
re-added missing trix js pin
rsmithlal Oct 13, 2024
a7a7beb
Ensure all required local js is pinned correctly
rsmithlal Oct 13, 2024
2cadd98
map local pinned js files
rsmithlal Oct 13, 2024
5c14b8b
Ensure rich text js is initialized on reload and turbo load
rsmithlal Oct 13, 2024
61ea646
Attempt to get stumulus controlelrs working again in production host app
rsmithlal Oct 13, 2024
be5fe1c
Add sidebar nav to pages
rsmithlal Oct 18, 2024
c6fda7c
Fix sidebar nav linkable url generation
rsmithlal Oct 18, 2024
3f89880
fix sidebar nav item link
rsmithlal Oct 18, 2024
eee33c0
WIP: improve nav items form with dependent fields
rsmithlal Oct 23, 2024
3d998a4
Improve nesting nav item child tables structure and indentation
rsmithlal Oct 23, 2024
c9a64ee
Improve page sidebar nav styling and functionality
rsmithlal Oct 23, 2024
d1ba7d6
Only toggle the collapse state when clicking on the down/up caret, no…
rsmithlal Oct 23, 2024
2b72332
Configure dependent fields for nav items form
rsmithlal Oct 23, 2024
bf96ee6
Fix broken contact fields BT stimulus controller refs
rsmithlal Oct 23, 2024
eb7e5fe
render extra person profile tabs after about instead of at the end
rsmithlal Oct 23, 2024
1506e7c
Add descrtiption_html translated rich text attribute to community
rsmithlal Oct 23, 2024
7264a4d
Update better_together in lockfile
rsmithlal Oct 23, 2024
611d45e
Fix broken stimulus controllers after better_together namespace added…
rsmithlal Oct 30, 2024
4f4ab39
WIP: category list and editing translatable fields
rsmithlal Oct 30, 2024
ee478bc
improve display values for nav item and page select field options
rsmithlal Oct 30, 2024
0180495
Remove pages title component for platform managers
rsmithlal Oct 30, 2024
bb6a7a5
identify page edit button target
rsmithlal Oct 30, 2024
b0c4f1d
Merge branch 'main' into wip/new-to-nl-2
rsmithlal Oct 31, 2024
11a1377
Fix typo
rsmithlal Oct 31, 2024
be39cdd
WIP: Initial automated translation of translatable attributes using o…
rsmithlal Oct 31, 2024
221b680
Only render translation dropdowns when the openai key is set
rsmithlal Oct 31, 2024
c2a9b77
Log translation AI requests
rsmithlal Oct 31, 2024
ab6e88a
Add performance profiling tooling for platform managers
rsmithlal Oct 31, 2024
adbf494
render optimized background image variant for block background image url
rsmithlal Nov 1, 2024
2ca37ac
preload block background images and translations
rsmithlal Nov 1, 2024
3f96ec5
Add quality-of-life improvement to view a single nav item at a time w…
rsmithlal Nov 1, 2024
a0dcc9a
optimize sidebar nav sql queries
rsmithlal Nov 1, 2024
839a00d
move mistaken person tab contents to host app
rsmithlal Nov 1, 2024
74c21da
Correct optimization for svg and png background images
rsmithlal Nov 1, 2024
3d06dec
fix typo
rsmithlal Nov 1, 2024
adad8a7
WIP: initial proof-of-concept AI translation task from english for pa…
rsmithlal Nov 1, 2024
e0b7d90
Allow uploading and rendering community profile images
rsmithlal Nov 2, 2024
9bb2d23
add contact tab to person profile
rsmithlal Nov 2, 2024
451b579
open external links in a new tab by default and add an external icon
rsmithlal Nov 2, 2024
1470550
disable external link sanitizer for now. It's marking all links as ex…
rsmithlal Nov 2, 2024
5da291c
Initial attempt to write rake task to automatically translate attribu…
rsmithlal Nov 2, 2024
4435b30
Adjust AI translation for rich text attributes
rsmithlal Nov 2, 2024
e8ea85c
Make page sidebar layour full-width for sm screens (portrait tablets)
rsmithlal Nov 11, 2024
ea00a3d
Improved order of header nav items
rsmithlal Nov 14, 2024
c5440cb
Replace sidebar carets with plus and minus in square
rsmithlal Nov 14, 2024
1e25e4d
Render page hero block separately from the other blocks and sidebar nav
rsmithlal Nov 14, 2024
dedcda0
Ensure that nav item ids are not duplicated by other elements
rsmithlal Nov 14, 2024
8993c4d
Add password visibility toggle on new session form
rsmithlal Nov 14, 2024
e98e502
Improve page views and link clicks by url reports
rsmithlal Nov 15, 2024
d7bbe14
Drastically improve load time of navigation area show page by preload…
rsmithlal Nov 18, 2024
c1a9ccf
Don't track links included in the excluded classes list
rsmithlal Nov 18, 2024
cb30f14
Dramatically improve performance of navigation_items#show action by c…
rsmithlal Nov 18, 2024
f106ddb
Dramatically improve performance of nav items edit and new views by p…
rsmithlal Nov 18, 2024
a0c91ba
Remove unused local for partial call in nav items index view
rsmithlal Nov 18, 2024
7c5b68c
Dramitically improve performance checking permisions by chaching them…
rsmithlal Nov 18, 2024
91002e2
Preload Page associations
rsmithlal Nov 18, 2024
fe27aa2
Only check for contact_detail before_validation, not after_initialize
rsmithlal Nov 18, 2024
a9d5a85
remove whitespace
rsmithlal Nov 18, 2024
ad07238
Allow for individual record permission checks
rsmithlal Nov 18, 2024
8366a86
Preload host comunity contact details and social media accounts for t…
rsmithlal Nov 18, 2024
e57073f
Optimize performance of rendering top bar and footer nav items
rsmithlal Nov 18, 2024
fcff641
limit trix uploads to jpg and png files
rsmithlal Nov 19, 2024
d6be0f6
Render host community name in header and footer instead of host platf…
rsmithlal Nov 19, 2024
dc7a4a1
Preload sidebar nav item string translations
rsmithlal Nov 19, 2024
cbe0c15
reduce unecessary db queries in footer nav area render checks
rsmithlal Nov 19, 2024
3ced86c
Cache platform css_block in instance variable to prevent double-loading
rsmithlal Nov 19, 2024
752de80
Cache sidebar nav
rsmithlal Nov 19, 2024
dab569d
Include locale in sidebar nav cache key
rsmithlal Nov 19, 2024
b061541
Cache and render nav items in header and footer
rsmithlal Nov 19, 2024
629abff
Create helper to render cached page contents
rsmithlal Nov 19, 2024
96e6df2
Touch contact detail and contactable when any contact detail types ar…
rsmithlal Nov 19, 2024
389872e
Improve header load times through caching
rsmithlal Nov 19, 2024
4e281c9
Improve permission check load times through caching
rsmithlal Nov 19, 2024
080106c
Improve page block render times through caching
rsmithlal Nov 19, 2024
3d126ed
Improve host css block render times through caching
rsmithlal Nov 19, 2024
561636c
Whitespace
rsmithlal Nov 19, 2024
568a5dd
Fix issue resulting from caching role permission data as arrays
rsmithlal Nov 20, 2024
c140990
Improve performance of person profile page
rsmithlal Nov 20, 2024
45fd76e
Temporarily disable cache for user nav and image blocks until upload …
rsmithlal Nov 22, 2024
c032835
Fix error determining correct source field div ID in aiTranslateAttri…
rsmithlal Nov 22, 2024
69a0959
Override application_record to always prefix cache keys with I18n.locale
rsmithlal Nov 22, 2024
5944d6e
Exclude profiler and trix-editor links from metrics collection
rsmithlal Nov 22, 2024
d14b69b
Remove static assignment of hero extra permitted attributes array
rsmithlal Nov 22, 2024
5a7f2b3
Fix issues loading and clearing block background images
rsmithlal Nov 22, 2024
d55d97d
Ensure that links are visible on white bg of the trix editor link input
rsmithlal Nov 22, 2024
a6c97fd
Rubocop fixes
rsmithlal Nov 25, 2024
6037642
Rubocop fixes -A
rsmithlal Nov 25, 2024
b83dc1c
Rubocop fixes
rsmithlal Nov 25, 2024
2a5f64f
rubocop fixes -A
rsmithlal Nov 26, 2024
0aaf2d2
Rubocop toggle off class documentation cops
rsmithlal Nov 26, 2024
a4ab6e2
Rubocop fixes
rsmithlal Nov 26, 2024
33c5636
Rubocop fixes
rsmithlal Nov 26, 2024
5692250
rubocop fixes
rsmithlal Nov 26, 2024
a9fe352
WIP: address broken specs
rsmithlal Nov 26, 2024
b9c3e11
rspec tests pass (w. removal)
rsmithlal Nov 26, 2024
15df82d
Address brakeman security concern re: dispatching controller method v…
rsmithlal Nov 26, 2024
1054e2d
Merge branch 'main' into wip/new-to-nl-2
rsmithlal Nov 26, 2024
6266120
rubocop fixes
rsmithlal Nov 26, 2024
6fbacae
Remove frozen array
rsmithlal Nov 26, 2024
e9bac13
rubocop fixes
rsmithlal Nov 26, 2024
dad4785
Address brakeman warnings
rsmithlal Nov 26, 2024
25b9667
remove forgery statements from metrics controllers
rsmithlal Nov 26, 2024
1b84617
remove incorrect dummy locale translations
rsmithlal Nov 27, 2024
bc58141
Add initial default profile image for people
rsmithlal Nov 27, 2024
bb734e3
Move profile cover image logic to helper
rsmithlal Nov 27, 2024
e8305bb
Add top margin to user show view content
rsmithlal Nov 27, 2024
7bff3db
Do not render host custom css block if it does not yet exist
rsmithlal Nov 27, 2024
9c16cff
Ensure block rows use correct page link
rsmithlal Nov 27, 2024
b236e5c
Remove new resource instance link on host dashboard resource card
rsmithlal Nov 27, 2024
07ee8b0
remove bt path prefix in better_together.rb initializer
rsmithlal Nov 27, 2024
bc0728f
Remove dummy app locale files so all community engine locale files wi…
rsmithlal Nov 27, 2024
39ffe6e
Adjust model name translation capitalization
rsmithlal Nov 27, 2024
d7fede0
Ensure page content loaded from tempalte when tempalte specified and …
rsmithlal Nov 27, 2024
bd9424d
Set new block button bg-secondary class
rsmithlal Nov 27, 2024
dc3319f
add 'me' shortcut path to view current person's profile
rsmithlal Nov 27, 2024
90e287d
adjust home page slug and default behaviour
rsmithlal Nov 27, 2024
f2db055
Simplify people ciontroller by leaning on resource controller authori…
rsmithlal Nov 27, 2024
3ca429f
Fix sign on and sign off redirect paths
rsmithlal Nov 27, 2024
21ac7f0
Set .nav-link active style theme
rsmithlal Nov 27, 2024
1c9bc65
Set contact and about page seed data to create rich text page blocks
rsmithlal Nov 27, 2024
f5ec220
remove assignment of blank string to page content when template used
rsmithlal Nov 27, 2024
4847397
Ensure that community engine page uses full_width_layout
rsmithlal Nov 27, 2024
9baed56
Ensure that better_together nav child pages get created on seed
rsmithlal Nov 27, 2024
da5de30
Assign seed nav item titles and slugs to en locale
rsmithlal Nov 27, 2024
07c97d2
rubocop fixes
rsmithlal Nov 27, 2024
7961bab
Adjust host platform and privacy checks to account for platform priva…
rsmithlal Dec 7, 2024
c39c79b
Set the default host platform privacy to private
rsmithlal Dec 7, 2024
8be4448
Ensure that creatable creator is optional
rsmithlal Dec 7, 2024
2a851f1
Rubocop fixes
rsmithlal Dec 7, 2024
8861b26
Update better_together in dommy app Gemfile.lock
rsmithlal Dec 7, 2024
b5680d5
Merge branch 'main' into wip/new-to-nl-2
rsmithlal Dec 7, 2024
2d60e64
Default sort resources by created at desc
rsmithlal Dec 28, 2024
b1f7bcb
Ensure that privacy string enum attribute is defined
rsmithlal Dec 28, 2024
4a3ea99
Default privacy value should be 'private'
rsmithlal Dec 29, 2024
7407265
Add lang attribute to html tag
rsmithlal Jan 3, 2025
9423915
spacing
rsmithlal Jan 3, 2025
7fd17d9
Ensure platform css block is considered in cache key
rsmithlal Jan 3, 2025
c77ea86
Merge branch 'main' into wip/new-to-nl-2
rsmithlal Jan 16, 2025
00c30b8
Update lockfile
rsmithlal Jan 16, 2025
ad95d87
TODO Rubocop
rsmithlal Jan 16, 2025
7ee23fe
Add logo to communities and use host community logo instead of text w…
rsmithlal Jan 22, 2025
ed4aa73
remove unused icon accessor
rsmithlal Jan 22, 2025
c85187c
Reduce host community logo max-height to 5vh
rsmithlal Jan 22, 2025
5ea0323
Add dropdown item link to view host community in user nav
rsmithlal Jan 22, 2025
cebe849
Merge branch 'main' into wip/new-to-nl-2
rsmithlal Jan 22, 2025
8dcb440
Add cover image variant method to community model
rsmithlal Jan 23, 2025
244608e
rubocop fixes
rsmithlal Jan 23, 2025
5ff6916
Disable cached branding area until cached images problem is resolved
rsmithlal Jan 23, 2025
2b7f426
fix incorrect navigation area variable name preventing creation of ne…
rsmithlal Jan 23, 2025
f7919b0
Merge branch 'main' into wip/new-to-nl-2
rsmithlal Feb 10, 2025
f4216f3
Merge branch 'main' into wip/new-to-nl-2
rsmithlal Feb 11, 2025
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
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ group :development do
gem 'bundler-audit', require: false
# Facilitate I18n translation management
gem 'i18n_generators'

gem 'easy_translate'
# Listen for file system changes
gem 'listen', '>= 3.0.5', '< 3.10'
# Rack mini profiler for performance profiling
Expand Down
8 changes: 8 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ PATH
font-awesome-sass (~> 6.5)
friendly_id (>= 5.2, < 5.6)
friendly_id-mobility (~> 1.0.4)
groupdate
i18n-timezones
image_processing (~> 1.2)
importmap-rails (~> 2.0)
Expand Down Expand Up @@ -257,6 +258,9 @@ GEM
dry-core (1.0.1)
concurrent-ruby (~> 1.0)
zeitwerk (~> 2.6)
easy_translate (0.5.1)
thread
thread_safe
elasticsearch (7.17.11)
elasticsearch-api (= 7.17.11)
elasticsearch-transport (= 7.17.11)
Expand Down Expand Up @@ -319,6 +323,8 @@ GEM
google-protobuf (4.28.2-x86_64-linux)
bigdecimal
rake (>= 13)
groupdate (6.4.0)
activesupport (>= 6.1)
hashie (5.0.0)
highline (3.1.0)
reline
Expand Down Expand Up @@ -635,6 +641,7 @@ GEM
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
thor (1.3.2)
thread (0.2.2)
thread_safe (0.3.6)
tilt (2.4.0)
timeout (0.4.1)
Expand Down Expand Up @@ -702,6 +709,7 @@ DEPENDENCIES
coveralls_reborn
database_cleaner
database_cleaner-active_record
easy_translate
factory_bot_rails
faker
fog-aws
Expand Down
51 changes: 36 additions & 15 deletions app/assets/stylesheets/better_together/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,40 +10,51 @@
* files in this directory. Styles in this file should be added after the last require_* statement.
* It is generally better to create a new file per style scope.
*
*= require_tree .
*= require_self
*/

@import 'bootstrap';
@import 'font-awesome';
@import 'theme';

/* Default text color for light mode */
.text-opposite-theme {
color: #333; /* dark text on light background */
// Import Bootstrap and Font Awesome

@import 'bootstrap';
@import 'font-awesome';
@import 'actiontext';
@import 'contact_details';
@import 'content_blocks';
@import 'conversations';
@import 'forms';
@import 'metrics';
@import 'navigation';
@import 'notifications';
@import 'profiles';
@import 'share';
@import 'trix-extensions/richtext';

// Styles that use the variables
.text-opposite-theme {
color: $text-opposite-theme-color; /* Use the defined variable */
}

/* When the user's system preference is dark mode, adjust text color */
@media (prefers-color-scheme: dark) {
.text-opposite-theme {
color: #f8f9fa; /* light text on dark background */
color: $dark-text-color;
}
}

/* Similarly, if the background is meant to be dark, you can set text to be light and vice versa */
/* Default background color for light mode with dark text */
.background-opposite-theme {
background-color: #fff;
color: #333;
background-color: $background-opposite-theme-color;
color: $text-opposite-theme-color;
}

/* When the user's system preference is dark mode, adjust background and text color */
@media (prefers-color-scheme: dark) {
.background-opposite-theme {
background-color: #212529;
color: #f8f9fa;
background-color: $dark-background-color;
color: $dark-text-color;
}
}


.highlight-translation-missing span.translation_missing {
background: #e1b1ed;
}
Expand All @@ -56,3 +67,13 @@
#flash_messages {
position: relative;
}

.wrapper {
display: flex;
flex-direction: column;
min-height: 100vh; /* Ensure the wrapper takes full height */
}

.content {
flex: 1; /* Allow the main content to grow and take up remaining space */
}
55 changes: 55 additions & 0 deletions app/assets/stylesheets/better_together/contact_details.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
@import 'theme';

.contact-detail-item {
margin-bottom: 15px;
.icon {
margin-right: 10px;
// color: $info; // Bootstrap primary color
}
.content {
strong {
font-size: 1.1rem;
}
}
}

.centered-contact-details {

h4 {
text-align: center;
}

.contact-details > .row {
justify-content: center;
}

// Center the social media links
.contactable-social-media-links {
display: flex;
justify-content: center;
}

// Center text within the content div
.content {
text-align: center;

// Adjust badges
.badge {
margin-left: 0.25rem;
}
}

// Center the contact detail items
.contact-detail-item {
display: flex;
justify-content: center;
margin-bottom: 1rem; // Optional: Add spacing between items

// Adjust inner elements if necessary
.d-flex {
justify-content: center;
}

}
}

88 changes: 88 additions & 0 deletions app/assets/stylesheets/better_together/content_blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,91 @@
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for focus */
border-color: #adb5bd; /* Darken the border on hover */
}

.content-block.content_hero {
position: relative;
padding: 100px 0; /* Adjust padding for spacing */
overflow: hidden; /* Ensure content doesn't overflow */
height: calc(100vh - 56px);

.hero-background {
position: absolute;
display: flex;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
z-index: 0; /* Set background behind overlay */
justify-content: center; /* Centers content horizontally */
align-items: center; /* Centers content vertically */

.hero-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1; /* Set overlay above background */
}

.hero-content {
position: relative;
z-index: 2; /* Ensure content is above overlay */
max-width: 80%; /* Adjust as needed */
margin: 0 auto;
text-align: center; /* Center text by default */
height: 100%;

display: flex;
flex-direction: column;
justify-content: center;

> * {
margin: 3vh auto;
}

.hero-heading {
font-size: 3em; /* Make the heading more prominent */
}

.hero-paragraph {
font-size: 1.2em;
}

.hero-cta {
padding: 12px 24px;
font-size: 1.2em;
}
}
}
}

.trix-content,
.content_rich_text {
/* Remove text decoration for tel: and mailto: links */
a[href^="tel:"],
a[href^="mailto:"] {
text-decoration: none;

&::before {
font-family: "Font Awesome 6 Free";
font-weight: 900; /* Solid icons */
margin-right: 5px;
color: var(--primary);
text-decoration: none;
display: inline-block;
}
}

/* Prepend phone icon to the anchor when it's not inside an li */
a[href^="tel:"]:not(:has(i))::before {
content: "\f095"; /* Font Awesome unicode for phone icon */
}

/* Prepend envelope icon to the anchor when it's not inside an li */
a[href^="mailto:"]:not(:has(i))::before {
content: "\f0e0"; /* Font Awesome unicode for envelope icon */
}
}
109 changes: 89 additions & 20 deletions app/assets/stylesheets/better_together/forms.scss
Original file line number Diff line number Diff line change
@@ -1,29 +1,98 @@
@import "theme";

/* Style for invalid fields */
input:invalid {
border-color: #e3342f; /* Red border for invalid fields */
background-color: #fce8e6; /* Light red background */
box-shadow: 0 0 0 0.2rem rgba(227, 52, 47, 0.25);
.required-indicator {
color: $danger;
font-weight: bold;
}

// /* Style for valid fields */
// input:valid {
// border-color: #38c172; /* Green border for valid fields */
// background-color: #e9f7ef; /* Light green background */
// }
.hidden-field {
opacity: 0;
height: 0;
margin: 0; /* Remove margin when hidden */
overflow: hidden; /* Ensure the element is fully collapsed */
transform: translateY(-10px); /* Optional upward movement */
pointer-events: none; /* Prevent interaction when hidden */
transition: opacity 0.3s ease, transform 0.3s ease, height 0.3s ease;
}

.visible-field {
opacity: 1;
height: auto;
margin: initial; /* Reset margin when visible */
transform: translateY(0);
pointer-events: auto;
transition: opacity 0.3s ease, transform 0.3s ease, height 0.3s ease;
}

/* Error message styling */
input:invalid:focus {
/* General slider track styling */
input[type="range"] {
-webkit-appearance: none;
appearance: none;
width: 100%;
height: $slider-track-height;
background: $slider-track-color;
border-radius: 5px;
outline: none;
box-shadow: 0 0 0 0.2rem rgba(227, 52, 47, 0.25);
}

input:invalid::placeholder {
color: #e3342f; /* Red placeholder text for invalid input */
/* WebKit browsers (Chrome, Safari) */
input[type="range"]::-webkit-slider-runnable-track {
width: 100%;
height: $slider-track-height;
background: $slider-track-color;
border-radius: 5px;
}

input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: $slider-thumb-size;
height: $slider-thumb-size;
background: $slider-thumb-color;
border: $slider-thumb-border-size solid $slider-thumb-border-color;
border-radius: 50%;
cursor: pointer;
}

/* Firefox */
input[type="range"]::-moz-range-track {
width: 100%;
height: $slider-track-height;
background: $slider-track-color;
border-radius: 5px;
}

input[type="range"]::-moz-range-thumb {
width: $slider-thumb-size;
height: $slider-thumb-size;
background: $slider-thumb-color;
border: $slider-thumb-border-size solid $slider-thumb-border-color;
border-radius: 50%;
cursor: pointer;
}

/* IE / Edge */
input[type="range"]::-ms-track {
width: 100%;
height: $slider-track-height;
background: transparent; /* Remove default background */
border-color: transparent;
color: transparent;
}

input[type="range"]::-ms-fill-lower {
background: $slider-track-color;
}

input[type="range"]::-ms-fill-upper {
background: $slider-track-color;
}

// /* Additional focus state for screen readers */
// input:focus {
// outline: 2px solid #0056b3; /* Blue outline when focused */
// outline-offset: 2px;
// }
input[type="range"]::-ms-thumb {
width: $slider-thumb-size;
height: $slider-thumb-size;
background: $slider-thumb-color;
border: $slider-thumb-border-size solid $slider-thumb-border-color;
border-radius: 50%;
cursor: pointer;
}
Loading
Loading