Latest Updates

Documenting code, one commit at a time.

Scaling with Schemas: Multi-Tenancy Migration in Laravel

The Reimpact platform is undergoing a significant architectural shift, moving from a MySQL row-level multi-tenancy model to a more robust PostgreSQL schema-per-tenant setup. This post dives into the key considerations and steps involved in this migration, leveraging Laravel and Filament.

The Motivation for Schema-Based Tenancy

Row-level multi-tenancy in MySQL, while initially simpler to

Read more

Modernizing Platform Components with Laravel, Filament, and PostgreSQL

The platform project is undergoing a series of updates to enhance its architecture and developer experience.

Streamlining Panel Providers

Component registration is now more organized. The PackagingPanelProvider has been registered, ensuring that necessary components are readily available throughout the application. This centralizes the management of UI elements, improving maintainability.

Read more
PHP CSS

Enhancements to the Breniapp Interface: Sidebar and Modal Improvements

This post highlights recent enhancements to the Breniapp interface, focusing on visual refinements and improved user interactions within the application.

Sidebar Border Correction

A subtle but important fix addresses a visual artifact in the sidebar. When the sidebar collapses, the separator line now transitions smoothly using Filament's CSS variables.

Read more

Multi-Tenancy in Laravel with PostgreSQL Schemas: A Migration Story

Introduction

Row-level filtering is common for multi-tenancy, but what if you need stronger isolation? At Reimpact's platform, we're migrating towards PostgreSQL schemas to achieve true tenant separation, leveraging Laravel, Filament, and the middleware pattern.

This post details our approach to dynamically setting the PostgreSQL search_path for each tenant, ensuring data isolation and

Read more
PHP CSS UI

The Case for Subtlety: When to Tone Down UI Elements

Sometimes, the most effective UI changes are the ones that make things less noticeable. Consider a 'reset chat' button. Initially, it might seem intuitive to style it with a prominent color like red, signaling a potentially destructive action. However, in practice, this can create unnecessary visual noise and even user anxiety.

The Problem with Red

Red is often associated with errors,

Read more

Modernizing the UI and unifying chat styling in Breniapp

The Breniapp project has been undergoing UI modernization efforts, focusing on both the overall aesthetics and specific elements like the chat interface. This post will cover the key changes and their impact.

Design System Refinements

One of the primary goals was to refine the existing design system. This included subtle but impactful changes such as:

  • Softer card shadows: Providing a
Read more
PHP CSS HTML

Fine-Tuning Header Spacing in Breniapp

Breniapp is undergoing continuous improvements, and a recent update focused on refining the visual aesthetics of the application's headers. This seemingly small adjustment plays a crucial role in enhancing the overall user experience by creating a more polished and professional interface.

The Adjustment

The primary goal was to tighten the header spacing, specifically bringing the subtitle

Read more
PHP CSS UI

Unifying Chat Components for a Consistent Onboarding Experience

This post explores the recent efforts to unify the visual style of chat components within the Breniapp/brenia project, focusing on creating a consistent onboarding experience for users.

The Goal

The primary objective was to standardize the look and feel of various chat components, including Brand Assistant, Brand Section, Skeleton Section, and QA chats.

Read more