I like to think the charm of these posts is the moving target of how much time will be covered. In this edition of “This Week In Open Source,” we cover the last month of updates to thoughtbot’s open source repos. And there was a lot. Grab a snack and something nice to drink while we cover all the details.
Commits were merged to the following, comically long list of repos (now with links to navigate to their section):
- thoughtbot design system
- Form Props
- thoughtbot’s guides
- thoughtbot’s laptop script
- Ruby Science
- Select Your Own Seat (Superglue)
- Shoulda Context
- Shoulda Matchers
Administrate is a framework for creating flexible, powerful admin dashboards in Rails.
CapybaraAccessibilityAudit is a tool to extend your Capybara-powered System Tests to automatically audit the page for WCAG Stardards-based accessibility violations.
thoughtbot design system (tbds) is the design system for thoughtbot websites.
It’s a Rails form builder that outputs input attributes (in JSON) instead of tags. Now you can enjoy the conviences of Rails helpers in other view libraries like React and React Native.
thoughtbot’s Guides for working together, getting things done, programming well, and programming in style.
Laptop is a shell script to set up a macOS laptop for web and mobile development.
PropsTemplate is a direct-to-Oj, JBuilder-like DSL for building JSON. It has support for Russian-Doll caching, layouts, and can be queried by giving the root a key path.
This repo contains our book, Ruby Science, the reference for writing fantastic Rails applications.
Chad Pytel (cpytel) has been updating the content and examples in preparation for a 2023 version. He made some minor content updates for 2023 (47a2747), removed the out of date product directory (3d7750a), and regenerated the website with minor updates (2f0f752).
Select Your Own Seat (Superglue)
is an example of how to develop an interactive web page using: Rails, Superglue,
The commit history is intentionally meticulous and verbose, and serves to compare and contrast with equivalent commits built in Stimulus and Turbo.
Johny Ho (jho406) was busy this month, keeping the app in lockstep with its Stimulus/Turbo counterpart.
He added full height for the Superglue app
rendering of the application’s layout
rendering of seats for a venue with SVG elements
a system test for viewing a seat’s details
seats#show route and action
and inline SVG
Updates to seat selection include functionality to add a seat selection to the
unselecting a seat removes it from a visitor’s cart
unselecting a seat from a dialog
replacing the seat
<svg> elements with
<symbol> for a selected seat
Improvements to the map include adding a legend for the map’s symbols
functionality to switch floors from the map
filtering seats by price
panning and zooming to the SVG map element
map zoom controls to
behavior to zoom in and zoom out buttons
persisting the map across page loads
and refactoring SeatingMap into its own component
He also added handling price filtering
<form> reset events
functionality to manage filter query parameters with push state
and the ability to navigate when the
<dialog> element closes
Shoulda Context makes it easy to write understandable and maintainable tests under Minitest and Test::Unit within Rails projects or plain Ruby projects.
Shoulda Matchers provides simple one-liner tests for common Rails functionality.
Superglue is a tool that helps you use classic Rails to build rich React Redux applications with NO APIs and NO client-side routing.
Suspenders is a CLI for creating Rails apps with thoughtbot defaults.
Upcase is a Rails application deployed to Heroku designed to help sharpen your programming skills.
✨Have you considered contributing to open source? There’s a project out there for you! Visit our Open Source page to learn more about our team’s projects and contributions. While you’re there, consider contributing to one of our projects.