Skip to content

Link to duplicate posts#1698

Merged
ArtOfCode- merged 6 commits intodevelopfrom
art/1348/duplicate-links
Jul 22, 2025
Merged

Link to duplicate posts#1698
ArtOfCode- merged 6 commits intodevelopfrom
art/1348/duplicate-links

Conversation

@ArtOfCode-
Copy link
Member

Closes #1348.

Adds a related posts widget to the sidebar, between the now-split "featured" and "hot posts" widgets.

Also makes related and hot posts widgets collapsible, controlled by user preference.

@codecov
Copy link

codecov bot commented Jul 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.96%. Comparing base (6418a35) to head (24b3f8b).

Additional details and impacted files
Components Coverage Δ
controllers 68.66% <ø> (-0.04%) ⬇️
helpers 75.96% <ø> (ø)
jobs 48.57% <ø> (ø)
models 85.88% <100.00%> (+0.01%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ArtOfCode- ArtOfCode- marked this pull request as ready for review July 22, 2025 13:59
@ArtOfCode- ArtOfCode- requested a review from a team July 22, 2025 13:59
@cellio
Copy link
Member

cellio commented Jul 22, 2025

Nice!

I see the arrows in "related" and "hot", which I assume are collapse/expand controls, but when I click them nothing happens.

Screenshot

@ArtOfCode-
Copy link
Member Author

Works On My Machine™️...

Restarted the Rails server? Any errors in the console?

@cellio
Copy link
Member

cellio commented Jul 22, 2025

Huh. Didn't notice any errors before (though they'd since aged out of the history if they were there), but after restarting the server it works fine. I'll try to remember to try that in future testing.

@Oaphi
Copy link
Member

Oaphi commented Jul 22, 2025

Unless we disable the Sprockets's asset cache for the development env, yes, IIRC, every time an asset is added or removed, Rails needs to be restarted. Just changing one is fine, though, I believe

@cellio
Copy link
Member

cellio commented Jul 22, 2025

LGTM from a functional perspective. I have not done a code review (and am not qualified for JavaScript).

@cellio
Copy link
Member

cellio commented Jul 22, 2025

Unless we disable the Sprockets's asset cache for the development env, yes, IIRC, every time an asset is added or removed, Rails needs to be restarted. Just changing one is fine, though, I believe

No need to change our setup. The change needed was in this user's memory. :-)

@@ -0,0 +1,14 @@
.widget--body {
transition: all 0.2s ease;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion for consistency (since we use SCSS):

.widget--body {
  transition: all 0.2s ease;

  &.hiding {
    scale: 0;
    height: 0;
    margin: 0;
    padding: 0;
  }

  &.hidden {
    display: none;
  }
}

Copy link
Member

@Oaphi Oaphi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall

@ArtOfCode- ArtOfCode- merged commit cc149a5 into develop Jul 22, 2025
8 checks passed
@ArtOfCode- ArtOfCode- deleted the art/1348/duplicate-links branch July 22, 2025 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

auto-link posts that are duplicates of this one

3 participants