Latest Updates

Documenting code, one commit at a time.

Taming Filament: Resolving API Incompatibilities in a Laravel Package

When integrating third-party packages into a Laravel application, API compatibility issues can lead to frustrating errors and broken functionality. Recently, while working on the Reimpact platform, we encountered such challenges with the Filament admin panel when integrating an Ecodesign module.

The Problem: Fatal Errors and Broken Builds

The Ecodesign module, developed against a different

Read more

Refactoring PostgreSQL Dashboard Functions in Reimpact/platform

The Reimpact/platform project is focused on [description]. Recent work has concentrated on improving the reliability and accuracy of PostgreSQL dashboard functions. A key area of focus was addressing data type mismatches and sequence issues that could lead to errors and inconsistencies in the displayed data.

The Problem

One specific issue involved the product_ranking function, where a

Read more

Improving File Handling in Landing: A Move from Streaming to Storage

The landing project focuses on creating engaging landing page experiences. Recently, we tackled an issue with generating and serving CV files, specifically DOCX files. The initial approach of streaming the generated file directly to the user via php://output was causing file corruption issues. This post details the problem and the solution we implemented.

The Problem: Corrupted DOCX Files

Read more

Robust Data Handling in PostgreSQL Dashboard Functions

Introduction

The Reimpact platform leverages PostgreSQL for its data storage needs. Ensuring data integrity and accurate comparisons within dashboard functions is crucial for reliable reporting and analysis. Recent work focuses on addressing data type inconsistencies that can lead to unexpected errors and inaccurate results.

The Problem

In the PostgreSQL database, the `products.

Read more
PHP Laravel CSS

Fixing Filament Panel Rendering with Inline Styles

The Reimpact platform utilizes Filament for its admin panels. A recent update addressed an issue where the impersonation banner wasn't rendering correctly across all panels.

The Problem

The bg-warning-500 class in Filament relies on CSS custom properties. These properties weren't consistently available during the BODY_START render hook, leading to inconsistent banner styling.

Read more

Explicit Type Casting in PostgreSQL Functions: A Must-Do

Ever faced a baffling error message that seemed to defy logic? In the Reimpact platform, we encountered a particularly frustrating issue in our PostgreSQL dashboard functions. The symptom? A cryptic 42883 error cropping up across all Packaging dashboard widgets.

The culprit turned out to be PostgreSQL's strictness regarding implicit type casting. Specifically, it doesn't automatically convert

Read more

Global Impersonation: Fixing a Routing Glitch in a Laravel Platform

Working on the Reimpact platform, we encountered a routing issue that prevented the 'stop impersonation' feature from working consistently across all panels. This post details the problem and the solution implemented to ensure global functionality.

The Problem

The impersonation.stop route was not always accessible because the RouteServiceProvider responsible for registering it wasn't

Read more

Enhancing Data Visualization in Filament with PostgreSQL Functions

Introduction

This post explores how the Reimpact/platform project enhanced its Filament-based dashboard by leveraging PostgreSQL functions to improve data visualization. The focus was on creating a more insightful and efficient packaging dashboard.

From MySQL to PostgreSQL: A Performance Shift

The initial implementation relied on MySQL stored procedures. To optimize performance and

Read more

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.

Read more

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

Read more