Skip to content

Commit af284b2

Browse files
authored
Merge pull request #1375 from NEU-Libraries/develop
UAT refinement
2 parents 51e399f + be17497 commit af284b2

178 files changed

Lines changed: 4814 additions & 330 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ATLAS=0.6.128
1+
ATLAS=0.6.136
22
#ATLAS_RAILS_MASTER_KEY=123123
33
# Cantaloupe as reachable from INSIDE the web container, for server-side
44
# IIIF info.json reads (manifest dimensions). Browsers use the public

.rubocop.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ Lint/MissingSuper:
1515
- 'app/components/blacklight/**/*'
1616
Metrics/ClassLength:
1717
Max: 120
18+
Exclude:
19+
# Blacklight's configure_blacklight block is a declarative table of facets,
20+
# search fields and sorts, and the project keeps that config in the
21+
# controller. Its length tracks the size of the Solr index, not the
22+
# complexity of the class.
23+
- 'app/controllers/catalog_controller.rb'
1824
Metrics/AbcSize:
1925
Max: 22
2026
Exclude:

.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.9.486
1+
2.10.8

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ GEM
8484
addressable (2.9.0)
8585
public_suffix (>= 2.0.2, < 8.0)
8686
ast (2.4.3)
87-
atlas_rb (1.9.3)
87+
atlas_rb (1.10.1)
8888
faraday (~> 2.7)
8989
faraday-follow_redirects (~> 0.3.0)
9090
faraday-multipart (~> 1)
@@ -272,7 +272,7 @@ GEM
272272
timeout
273273
net-smtp (0.5.1)
274274
net-protocol
275-
neu-mods (0.2.0)
275+
neu-mods (0.3.0)
276276
nokogiri (>= 1.13)
277277
next_rails (1.6.0)
278278
nio4r (2.7.5)

app/assets/stylesheets/_admin_dashboard.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,5 @@
151151
&--impersonation { --admin-action-color: #a8322a; }
152152
&--files { --admin-action-color: #5a5e8c; } // desaturated indigo: versioned content
153153
&--groups { --admin-action-color: #7a5c84; } // desaturated violet: a naming / label affordance
154+
&--triage { --admin-action-color: #8a6a1f; } // muted ochre: something is waiting. The caution family the In progress / Incomplete pills use, aged down out of Bootstrap orange
154155
}

app/assets/stylesheets/_admin_registry.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,12 @@
165165
word-break: break-all;
166166
}
167167

168+
// A date in a ledger column. Tabular figures so the column scans vertically:
169+
// the cell exists to be compared against the rows above and below it.
170+
&__when {
171+
font-variant-numeric: tabular-nums;
172+
}
173+
168174
// Raw OCFL version label sitting under the revision ordinal — a borderless,
169175
// muted footnote to the primary chip. Kept for debugging (the OCFL vN can
170176
// skip when preservation-envelope bumps consume versions); the revision

app/assets/stylesheets/_audit_history.scss

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,12 +278,20 @@ $audit-tone-unlink: #8f5e78;
278278
padding-left: 0;
279279
}
280280

281-
// WHO cell — actor pill on top; the proxy / acting-as target (rare) stacks
282-
// beneath it as a muted "for <nuid>" line, mirroring the date-over-time
283-
// idiom in the When cell. Most rows are just the actor pill, no extra line.
281+
// WHO cell — actor name over its NUID chip; the proxy / acting-as target
282+
// (rare) stacks beneath as a muted "for <name>" line. The same
283+
// meaning-over-identifier idiom as the When cell's date over time.
284+
// Most rows are just the actor, no extra line.
284285
&__who {
285286
line-height: 1.35;
286287
}
288+
// Block, not inline: this column is narrow and names are not short, so an
289+
// inline chip wraps mid-cell. Stacked, the name reads first and the
290+
// identifier stays available beneath it.
291+
&__actor {
292+
display: block;
293+
color: $gray-800;
294+
}
287295
&__on-behalf {
288296
display: block;
289297
margin-top: 0.15rem;

app/assets/stylesheets/_blacklight_discovery.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,22 @@
7373
background-color: $danger;
7474
}
7575

76+
// Unfinished-deposit override — $warning, the same caution tone the Cancel
77+
// buttons carry, one step down from embargo's red. Keeps the pill's inherited
78+
// white text: every other pill state is white on colour, and a single
79+
// dark-text pill would read as a mistake rather than a distinction.
80+
.thumb-type-pill--unfinished {
81+
background-color: $warning;
82+
}
83+
84+
// Incomplete override — $yellow, one step down again from the unfinished orange
85+
// it sits beside. The two are close on purpose: both are caution, and the label
86+
// is what separates them. Orange means a person has not finished the deposit;
87+
// amber means a job gave up on a record that is otherwise readable.
88+
.thumb-type-pill--incomplete {
89+
background-color: $yellow;
90+
}
91+
7692
.document-thumbnail img {
7793
position: absolute;
7894
margin: auto;

app/components/blacklight/document_component.html.erb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,14 @@
4141

4242
<div class="text-end">
4343
<%= helpers.embargo_notice(@document) %>
44-
<% if @document.klass == Work %>
44+
<%# An embargo withholds every download, so the modal this opens would
45+
list nothing. The adjacent notice already says why, and the release
46+
date is indexed — so the button can be suppressed from the result
47+
list without the per-Work Atlas read that judging an arbitrary
48+
empty modal would need. Staff and admins bypass the embargo and
49+
keep the button, since their modal does have files. %>
50+
<% if @document.klass == Work &&
51+
!helpers.embargo_withholds?(@document.try(:embargo_release_date)) %>
4552
<button type="button"
4653
class="btn btn-sm btn-link text-decoration-none p-0 me-2"
4754
data-bs-toggle="modal"

app/components/blacklight/gallery/document_component.html.erb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
<%= render Blacklight::Gallery::DocumentTitleComponent.new(presenter: @presenter, counter: @counter) %>
1313
<div class="text-center">
1414
<%= helpers.embargo_notice(@document) %>
15-
<% if @document.klass == Work %>
15+
<%# Mirrors the list view: an embargo empties the downloads modal, so
16+
the button is suppressed for viewers the embargo applies to. See
17+
Blacklight::DocumentComponent's template for the reasoning. %>
18+
<% if @document.klass == Work &&
19+
!helpers.embargo_withholds?(@document.try(:embargo_release_date)) %>
1620
<button type="button"
1721
class="btn btn-sm btn-link text-decoration-none p-0 me-2"
1822
data-bs-toggle="modal"

0 commit comments

Comments
 (0)