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

Smart auto suggest #1154

Draft
wants to merge 79 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
7dfa5c2
Use propshaft + cssbundling-rails instead of sprockets
thatbudakguy Jul 30, 2024
da350fc
Use bootstrap 5
thatbudakguy Jul 30, 2024
a73b172
Use blacklight 8 and the GBL blacklight 8 branch
thatbudakguy Jul 30, 2024
3dd8524
Remove an old override
thatbudakguy Jul 30, 2024
5dbafb5
Update Gemfile.lock
thatbudakguy Jul 30, 2024
31c390a
Remove calls to functions removed in BL8
thatbudakguy Jul 30, 2024
5cdd1ef
Remove blacklight base layout override
thatbudakguy Jul 30, 2024
fa9f598
move css to cssbundling-rails
dnoneill Jul 30, 2024
a7db796
Reset styles to GeoBlacklight default
thatbudakguy Jul 30, 2024
03d1e81
Install importmap, stimulus, and turbo
thatbudakguy Jul 30, 2024
68a3aa7
Remove some unused partials
thatbudakguy Jul 30, 2024
a5636d0
Set up the import map
thatbudakguy Jul 30, 2024
73e0031
Remove the old javascripts
thatbudakguy Jul 30, 2024
95aacd0
fix blacklight solr url location
dnoneill Jul 31, 2024
59358ea
Merge pull request #1108 from sul-dlss/bl8-ok-computer-fix
marlo-longley Jul 31, 2024
8d62c92
Add vendorized GBL JS
thatbudakguy Jul 31, 2024
bcbe7f4
Make the catalogcontroller more like GBL5's default
thatbudakguy Aug 1, 2024
9e75185
Remove partials we don't need to use anymore
thatbudakguy Aug 1, 2024
acd1b42
update header to stanford header
dnoneill Jul 30, 2024
42cac5b
use bootstrap.bundle instead of bootstrap
dnoneill Aug 1, 2024
9620476
Merge pull request #1118 from sul-dlss/bl8-1116
thatbudakguy Aug 1, 2024
4e203b1
Merge pull request #1104 from sul-dlss/bl8-header
dnoneill Aug 2, 2024
aac4ab8
add footer
dnoneill Jul 31, 2024
4c4d5ae
Merge pull request #1115 from sul-dlss/bl8-footer
thatbudakguy Aug 5, 2024
b0a7c94
Update ruby.yml
dnoneill Aug 5, 2024
cf29761
fix tests
dnoneill Aug 5, 2024
22b6335
Merge pull request #1123 from sul-dlss/fix-tests
jmartin-sul Aug 5, 2024
3b2a8d8
Use geoblacklight main
edsu Aug 7, 2024
202bc35
Merge pull request #1131 from sul-dlss/use-gbl-main
dnoneill Aug 7, 2024
164983e
remove basemap override
dnoneill Aug 8, 2024
61ab801
Align solr versions
edsu Aug 8, 2024
59a1175
Merge pull request #1139 from sul-dlss/solr-version
thatbudakguy Aug 8, 2024
cca150a
Merge pull request #1134 from sul-dlss/basemap
thatbudakguy Aug 8, 2024
0ba1eb5
move sidebar, update display
dnoneill Aug 7, 2024
1a76663
Merge pull request #1132 from sul-dlss/bl8-sidebar
dnoneill Aug 8, 2024
bb15271
update home page text to figma, add recently added
dnoneill Aug 2, 2024
780ada6
Merge pull request #1120 from sul-dlss/bl8-homepage
thatbudakguy Aug 8, 2024
e800b2a
cd for bl8
dnoneill Aug 8, 2024
767995a
Merge pull request #1140 from sul-dlss/bl8-cd
jmartin-sul Aug 8, 2024
66fb15c
remove local version of component library
dnoneill Aug 8, 2024
204e00b
Merge pull request #1142 from sul-dlss/component-library
jcoyne Aug 8, 2024
dcbca70
Update to the latest version of component library
jcoyne Aug 8, 2024
3f8f64d
Merge pull request #1144 from sul-dlss/jcoyne-patch-1
dnoneill Aug 8, 2024
c08a5f5
remove icons, styling updates
dnoneill Aug 8, 2024
1dc958e
move sidebar to document
dnoneill Aug 9, 2024
d1242e5
Merge pull request #1103 from sul-dlss/bl8-icons
marlo-longley Aug 9, 2024
2c65b10
Merge pull request #1147 from sul-dlss/bl8-sidebar-fix
thatbudakguy Aug 9, 2024
b2c1f91
add box shadow, center titles
dnoneill Aug 8, 2024
8592a4b
Merge pull request #1141 from sul-dlss/bl8-hover
dnoneill Aug 9, 2024
ac43f5a
fix legacy icons, info_format
dnoneill Aug 12, 2024
245730a
Merge pull request #1155 from sul-dlss/bl8-icons-fix
thatbudakguy Aug 12, 2024
4104dc7
update show to be three columns
dnoneill Aug 9, 2024
b4d12c7
Merge pull request #1150 from sul-dlss/bl8-show
dnoneill Aug 12, 2024
3d85014
update the search results view
dnoneill Aug 9, 2024
05a2b65
Update to the latest version of the component library
jcoyne Aug 13, 2024
93abc78
Merge pull request #1149 from sul-dlss/bl8-results-component
dnoneill Aug 13, 2024
4b0a7a9
Merge pull request #1164 from sul-dlss/jcoyne-patch-1
dnoneill Aug 13, 2024
cda3afc
add header icons to show page
dnoneill Aug 12, 2024
9c24abf
add georeferenced alert and unit tests
dnoneill Aug 12, 2024
220feea
update index map colors
dnoneill Aug 13, 2024
1d5c3a1
Merge pull request #1161 from sul-dlss/bl8-georeference-alert
dnoneill Aug 13, 2024
1a73e38
small header icons fixes search page
dnoneill Aug 13, 2024
f5f4be4
move search header into document split
dnoneill Aug 14, 2024
c06a42d
Merge pull request #1169 from sul-dlss/bl8-css-fixes
thatbudakguy Aug 14, 2024
0b4f580
Merge pull request #1167 from sul-dlss/bl8-index-map-colors
thatbudakguy Aug 14, 2024
e34910f
Merge pull request #1160 from sul-dlss/1159-show-icons
thatbudakguy Aug 14, 2024
7f2bb3b
Use container-fluid and set max-width to 1600px
marlo-longley Aug 15, 2024
162eaae
Merge pull request #1173 from sul-dlss/bl8-results-header
dnoneill Aug 15, 2024
6d25636
Merge pull request #1181 from sul-dlss/container-fluid
dnoneill Aug 15, 2024
7860d62
remove hgl
dnoneill Aug 19, 2024
a77bb8b
Merge pull request #1197 from sul-dlss/hgl
thatbudakguy Aug 19, 2024
cdbfb12
Point at CDN versions of stylesheets for dependencies
thatbudakguy Aug 19, 2024
09024a1
Merge pull request #1212 from sul-dlss/style-cdn-deps
dnoneill Aug 20, 2024
4943e12
setting up autocomplete to retrieve search result titles
hudajkhan Aug 3, 2024
64f6cf1
adding configuration options for testing and updates to display and s…
hudajkhan Aug 6, 2024
b7b29f6
handling higlighting display
hudajkhan Aug 6, 2024
0ec3f9e
Adjust suggest configuration and behavior
edsu Aug 11, 2024
74e74a5
using overloaded payload approach
hudajkhan Aug 21, 2024
c09bef6
truncating long suggestion strings
hudajkhan Aug 21, 2024
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
4 changes: 3 additions & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
branches:
- main
- bl8

jobs:
tests:
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@ config/environments/*.local.yml
# Ignore JavaScript packaging.
node_modules/
yarn.lock

/app/assets/builds/*
!/app/assets/builds/.keep

/node_modules
2 changes: 1 addition & 1 deletion .solr_wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
collection:
dir: config/solr_configs/
name: blacklight-core
version: 9.6.1
version: 8.11.2
22 changes: 9 additions & 13 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,12 @@ source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 7.1'

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

# Use Puma as the app server
gem 'puma', '~> 6'

# Use SCSS for stylesheets
gem 'sassc-rails'

# Use jquery as the JavaScript library
gem 'jquery-rails'

# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Reduces boot times through caching; required in config/boot.rb
Expand Down Expand Up @@ -44,9 +38,7 @@ group :development, :test do
gem 'rspec-rails'
gem 'capybara'
gem 'selenium-webdriver', '!= 3.13.0'

# Pinned until https://github.com/thoughtbot/factory_bot_rails/issues/433 is resolved
gem 'factory_bot_rails', '~> 6.2.0'
gem 'factory_bot_rails'
gem 'database_cleaner'
gem 'dotenv'
gem 'simplecov', require: false
Expand All @@ -69,7 +61,7 @@ group :production do
gem 'pg'
end

gem 'blacklight', '~> 7.33'
gem 'blacklight', '~> 8.3'
gem 'rsolr' # required for Blacklight
gem 'geoblacklight', github: 'geoblacklight/geoblacklight', branch: 'main'
gem 'faraday', '~> 2.0'
Expand All @@ -89,7 +81,11 @@ gem 'redis', '~> 5.0'
gem 'geo_combine', '>= 0.9' # For OpenGeoMetadata indexing
gem 'sidekiq', '~> 7.0'
gem 'whenever', require: false
gem 'bootstrap', '~> 4.0'
gem 'bootstrap', '~> 5.3'
gem 'rack-attack' # For throttle configuration
gem 'recaptcha', '>= 5.4.1'
gem 'http'
gem "cssbundling-rails", "~> 1.4"
gem "importmap-rails", "~> 2.0"
gem "stimulus-rails", "~> 1.3"
gem "turbo-rails", "~> 2.0"
113 changes: 53 additions & 60 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
GIT
remote: https://github.com/geoblacklight/geoblacklight.git
revision: 4af93ba5736bf53bbea143545f25d0955536b7ee
revision: 0d00b850e58e8ab92f5db97166563bb83afa3ea3
branch: main
specs:
geoblacklight (4.4.0)
blacklight (~> 7.0)
blacklight (~> 8.0)
coderay
config
deprecation
faraday (~> 2.0)
geo_combine (~> 0.9)
handlebars_assets
mime-types
rails (>= 6.1, < 7.2)
rails (>= 6.1, < 8)
rgeo-geojson
sprockets-rails (~> 3.0)
vite_rails (~> 3.0)

GEM
Expand Down Expand Up @@ -99,7 +97,7 @@ GEM
airbrussh (1.5.2)
sshkit (>= 1.6.1, != 1.7.0)
ast (2.4.2)
autoprefixer-rails (10.4.16.0)
autoprefixer-rails (10.4.19.0)
execjs (~> 2)
base64 (0.2.0)
bcrypt (3.1.20)
Expand All @@ -108,27 +106,24 @@ GEM
bcrypt_pbkdf (1.1.1-x86_64-darwin)
bigdecimal (3.1.8)
bindex (0.8.1)
blacklight (7.37.0)
deprecation
blacklight (8.3.0)
globalid
hashdiff
i18n (>= 1.7.0)
jbuilder (~> 2.7)
kaminari (>= 0.15)
ostruct (>= 0.3.2)
rails (>= 5.1, < 7.2)
rails (>= 6.1, < 8)
view_component (>= 2.66, < 4)
blacklight_dynamic_sitemap (0.6.0)
blacklight (> 6.0)
rails
blacklight_range_limit (7.9.1)
blacklight (~> 7.0)
bootsnap (1.18.3)
blacklight_range_limit (7.8.2)
blacklight (>= 7.0)
bootsnap (1.18.4)
msgpack (~> 1.2)
bootstrap (4.6.2)
bootstrap (5.3.3)
autoprefixer-rails (>= 9.1.0)
popper_js (>= 1.16.1, < 2)
sassc-rails (>= 2.0.0)
popper_js (>= 2.11.8, < 3)
builder (3.3.0)
bundler-audit (0.9.1)
bundler (>= 1.2.0, < 3)
Expand All @@ -142,7 +137,7 @@ GEM
bundler-audit (~> 0.5)
capistrano (~> 3.0)
capistrano-bundler (>= 1.4)
capistrano-bundler (2.1.0)
capistrano-bundler (2.1.1)
capistrano (~> 3.1)
capistrano-one_time_key (0.2.0)
capistrano (~> 3.0)
Expand All @@ -168,6 +163,8 @@ GEM
deep_merge (~> 1.2, >= 1.2.1)
connection_pool (2.4.1)
crass (1.0.6)
cssbundling-rails (1.4.1)
railties (>= 6.0.0)
database_cleaner (2.0.2)
database_cleaner-active_record (>= 2, < 3)
database_cleaner-active_record (2.2.0)
Expand Down Expand Up @@ -207,12 +204,12 @@ GEM
ed25519 (1.3.0)
erubi (1.13.0)
execjs (2.9.1)
factory_bot (6.2.1)
factory_bot (6.4.6)
activesupport (>= 5.0.0)
factory_bot_rails (6.2.0)
factory_bot (~> 6.2.0)
factory_bot_rails (6.4.3)
factory_bot (~> 6.4)
railties (>= 5.0.0)
faraday (2.10.0)
faraday (2.10.1)
faraday-net_http (>= 2.0, < 3.2)
logger
faraday-net_http (3.1.1)
Expand Down Expand Up @@ -252,12 +249,7 @@ GEM
rchardet (~> 1.8)
globalid (1.2.1)
activesupport (>= 6.1)
handlebars_assets (0.23.9)
execjs (~> 2.0)
sprockets (>= 2.0.0)
tilt (>= 1.2)
hashdiff (1.1.0)
honeybadger (5.15.3)
honeybadger (5.15.5)
http (5.2.0)
addressable (~> 2.8)
base64 (~> 0.1)
Expand All @@ -269,6 +261,10 @@ GEM
http-form_data (2.3.0)
i18n (1.14.5)
concurrent-ruby (~> 1.0)
importmap-rails (2.0.1)
actionpack (>= 6.0.0)
activesupport (>= 6.0.0)
railties (>= 6.0.0)
io-console (0.7.2)
irb (1.14.0)
rdoc (>= 4.0.0)
Expand Down Expand Up @@ -313,9 +309,9 @@ GEM
method_source (1.1.0)
mime-types (3.5.2)
mime-types-data (~> 3.2015)
mime-types-data (3.2024.0702)
mime-types-data (3.2024.0806)
mini_mime (1.1.5)
minitar (0.9)
minitar (1.0.0)
minitest (5.24.1)
msgpack (1.7.2)
multi_json (1.15.0)
Expand Down Expand Up @@ -355,19 +351,24 @@ GEM
okcomputer (1.18.5)
orm_adapter (0.5.0)
ostruct (0.6.0)
parallel (1.25.1)
parser (3.3.4.0)
parallel (1.26.1)
parser (3.3.4.2)
ast (~> 2.4.1)
racc
pg (1.5.7)
popper_js (1.16.1)
popper_js (2.11.8)
process_executer (1.1.0)
propshaft (0.9.0)
actionpack (>= 7.0.0)
activesupport (>= 7.0.0)
rack
railties (>= 7.0.0)
psych (5.1.2)
stringio
public_suffix (6.0.1)
puma (6.4.2)
nio4r (~> 2.0)
racc (1.8.0)
racc (1.8.1)
rack (3.1.7)
rack-attack (6.7.0)
rack (>= 1.0, < 4)
Expand Down Expand Up @@ -428,7 +429,7 @@ GEM
actionpack (>= 5.2)
railties (>= 5.2)
retriable (3.1.2)
rexml (3.3.2)
rexml (3.3.4)
strscan
rgeo (3.0.1)
rgeo-geojson (2.2.0)
Expand All @@ -454,7 +455,7 @@ GEM
rspec-mocks (~> 3.13)
rspec-support (~> 3.13)
rspec-support (3.13.1)
rubocop (1.65.0)
rubocop (1.65.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
Expand All @@ -465,7 +466,7 @@ GEM
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.31.3)
rubocop-ast (1.32.0)
parser (>= 3.3.1.0)
rubocop-capybara (2.21.0)
rubocop (~> 1.41)
Expand All @@ -479,7 +480,7 @@ GEM
rack (>= 1.1)
rubocop (>= 1.33.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rspec (3.0.3)
rubocop-rspec (3.0.4)
rubocop (~> 1.61)
rubocop-rspec_rails (2.30.0)
rubocop (~> 1.61)
Expand All @@ -489,14 +490,6 @@ GEM
sanitize (6.1.2)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
sassc (2.4.0)
ffi (~> 1.9)
sassc-rails (2.1.2)
railties (>= 4.0.0)
sassc (>= 2.0)
sprockets (> 3.0)
sprockets-rails
tilt
selenium-webdriver (4.23.0)
base64 (~> 0.2)
logger (~> 1.4)
Expand All @@ -520,13 +513,6 @@ GEM
minitar
retriable
ruby-progressbar
sprockets (4.2.1)
concurrent-ruby (~> 1.0)
rack (>= 2.2.4, < 4)
sprockets-rails (3.5.1)
actionpack (>= 6.1)
activesupport (>= 6.1)
sprockets (>= 3.0.0)
sqlite3 (1.7.3-aarch64-linux)
sqlite3 (1.7.3-arm-linux)
sqlite3 (1.7.3-arm64-darwin)
Expand All @@ -538,11 +524,16 @@ GEM
net-scp (>= 1.1.2)
net-sftp (>= 2.1.2)
net-ssh (>= 2.8.0)
stimulus-rails (1.3.3)
railties (>= 6.0.0)
stringio (3.1.1)
strscan (3.1.0)
thor (1.3.1)
tilt (2.4.0)
timeout (0.4.1)
turbo-rails (2.0.6)
actionpack (>= 6.0.0)
activejob (>= 6.0.0)
railties (>= 6.0.0)
twitter-typeahead-rails (0.11.1)
actionpack (>= 3.1)
jquery-rails
Expand Down Expand Up @@ -578,7 +569,7 @@ GEM
chronic (>= 0.6.3)
xpath (3.2.0)
nokogiri (~> 1.8)
zeitwerk (2.6.16)
zeitwerk (2.6.17)

PLATFORMS
aarch64-linux
Expand All @@ -598,17 +589,18 @@ PLATFORMS

DEPENDENCIES
bcrypt_pbkdf (~> 1.1)
blacklight (~> 7.33)
blacklight (~> 8.3)
blacklight_dynamic_sitemap (~> 0.3)
blacklight_range_limit (~> 7.0)
bootsnap (>= 1.1.0)
bootstrap (~> 4.0)
bootstrap (~> 5.3)
capistrano
capistrano-bundler
capistrano-passenger
capistrano-rails
capistrano-shared_configs
capybara
cssbundling-rails (~> 1.4)
database_cleaner
debug
devise
Expand All @@ -617,17 +609,18 @@ DEPENDENCIES
dlss-capistrano
dotenv
ed25519 (~> 1.3)
factory_bot_rails (~> 6.2.0)
factory_bot_rails
faraday (~> 2.0)
geo_combine (>= 0.9)
geoblacklight!
honeybadger
http
importmap-rails (~> 2.0)
jbuilder (~> 2.5)
jquery-rails
newrelic_rpm
okcomputer
pg
propshaft
puma (~> 6)
rack-attack
rack-mini-profiler (~> 2.0)
Expand All @@ -643,13 +636,13 @@ DEPENDENCIES
rubocop-rails
rubocop-rspec
rubocop-rspec_rails
sassc-rails
selenium-webdriver (!= 3.13.0)
sidekiq (~> 7.0)
simplecov
solr_wrapper
sprockets-rails
sqlite3 (~> 1.7)
stimulus-rails (~> 1.3)
turbo-rails (~> 2.0)
twitter-typeahead-rails
web-console (>= 4.1.0)
whenever
Expand Down
Loading