Latest Updates

Documenting code, one commit at a time.

Alpine.js 10 posts
×
0 PHP Alpine.js

Crafting Dynamic Content Decks with PHP and Alpine.js

In a world of ever-evolving user expectations, static content displays can feel like yesterday's news. Users crave interaction, fluidity, and a personalized experience. Delivering this often requires a thoughtful integration of backend data processing and frontend reactivity. This was the challenge we faced recently when revamping the suggestion panel for our Breniapp platform.

Mastering Component Styling: Consolidating Padding and Ensuring Containment in Breniapp

The Breniapp/brenia project recently saw an important refinement in how its card components are styled, addressing a common challenge in front-end development: managing CSS specificity and ensuring consistent rendering across dynamic elements. This update specifically tackled issues with card padding and content containment within rounded corners, leading to more robust and predictable UI.

Enhancing UI Reactivity: Dynamic Editor Panels with Alpine.js and PHP

Building highly interactive user interfaces often means juggling complex client-side state and ensuring seamless communication with the backend. For the Breniapp/brenia project, we recently tackled this by revamping the editor panel to offer a more fluid user experience, specifically focusing on dynamic layer expansion and real-time canvas preview updates. This overhaul leveraged Alpine.

Dynamic Pricing: Empowering Plan Management with Filament

The devlog-ist/landing project recently underwent a significant enhancement to its subscription and pricing infrastructure. Traditionally, managing different pricing tiers can become a bottleneck when hardcoded, leading to slow updates and lack of flexibility. Our goal was to create a robust, easily manageable system for defining and presenting various subscription plans.

The Challenge:

Solving Livewire Rendering Glitches with wire:key and PHP Styling in Breniapp

This post discusses how we addressed a rendering issue in the Breniapp project related to dynamically updating canvas aspect ratios. The problem stemmed from using Alpine.js to manage the aspect ratio of a canvas element within a Blade template that conditionally rendered based on Livewire state.

The Problem

Initially, Alpine.js was used to dynamically update the aspect ratio of a canvas

Mitigating XSS Vulnerabilities in Livewire/Alpine.js with @js()

The Problem

In the landing project, we encountered a subtle but significant security issue related to how data was being passed from PHP to JavaScript within our Blade templates. Specifically, when using Livewire and Alpine.js, values containing special characters (like apostrophes in names such as "O'Brien") could break the JavaScript context, leading to unexpected behavior or, worse,

Improving Theme Selection in Landing Pages

The landing project provides customizable landing pages. Recently, we addressed an issue with the theme selection process that was causing cross-origin errors on tenant subdomains.

The Problem

Previously, the theme selector used the route() function to generate URLs. This resulted in the main domain URL being generated, which caused cross-origin failures when the landing page was accessed

Refactoring Module Selectors for Enhanced UX in Laravel Filament

When working with Laravel Filament on the Reimpact platform, small UI refinements can have a significant impact on user experience. Recently, we addressed an issue concerning the module selector's icon sizing and positioning, particularly its integration with the platform's logo.

The Problem

The original implementation relied on Tailwind CSS classes for styling the module selector icon.

Taming Blade Component Quirks with Blade UI Kit in Laravel

When working with Laravel projects like Reimpact/platform, you sometimes encounter unexpected behavior when integrating different packages. Recently, we ran into an issue where Filament's DisableBladeIconComponents middleware was preventing Heroicon components from resolving correctly in our module selector.

The Problem

Filament, a popular admin panel package for Laravel, includes a

Unifying Branding Across Filament Panels in Reimpact Platform

Introduction

Maintaining a consistent brand identity across multiple admin panels can be a challenge. In the Reimpact platform, we faced this issue with our eight Filament panels, each serving different modules. The goal was to ensure a unified look and feel while streamlining maintenance and updates.

The Problem

Previously, each Filament panel had its own branding configuration, leading