Latest Updates

Documenting code, one commit at a time.

Chat PHP 10 posts
×
PHP

Fixing Redundant Storage Paths in Breniapp

The Case of the Double storage/ Prefix

Have you ever encountered a situation where your application generates URLs with a duplicated path segment, leading to broken links and frustrated users? This was precisely the issue faced in the Breniapp project, where image URLs were being generated with a redundant storage/ prefix. Let's dive into how this was resolved.

The Problem: Redundant

Read more
PHP PostgreSQL

Improving Data Handling and Stability in Landing

The landing project focuses on creating engaging user experiences. Recent work has concentrated on refining data storage and ensuring application stability.

Addressing PostgreSQL DISTINCT Errors with JSONB

A recurring issue involved PostgreSQL's inability to efficiently use DISTINCT with JSON columns. This manifested as numerous daily errors, particularly within the Campaign editor's

Read more

Dynamic Image Generation with Fal.ai in Breniapp

Introduction

Breniapp utilizes fal.ai for image generation. A recent update improves the way Breniapp interacts with the fal.ai service, specifically addressing how image aspect ratios are handled to ensure a more dynamic and user-friendly experience.

The Problem: Hardcoded Aspect Ratios

Previously, the generateImageViaFal() method in Breniapp was hardcoded to request 'square_hd'

Read more
PHP AI

Enhancing Content Chat with AI Model Overrides in Breniapp

Introduction

The Breniapp project is enhancing its content chat feature, providing superadmins with more control over AI model selection during content generation. This feature aims to offer greater flexibility and customization in AI-driven content creation.

The Feature: AI Model Overrides

The core of this update lies in the introduction of AI model overrides within the content chat

Read more

Improving Image Downloads in Breniapp

Introduction

In Breniapp, we recently tackled an issue where downloaded images were not reflecting the complete visual output displayed on screen. Specifically, text and logo overlays, which were rendered using HTML and CSS, were missing from the downloaded image, resulting in users receiving only the base image.

The Problem

The original download implementation was simply fetching the

Read more

Enhancing Calendar UX in Breniapp

Introduction

This post details recent improvements to the calendar user experience in the Breniapp project. The focus was on refining text sizes, padding, modal presentation, and content titles for a more intuitive and visually appealing interface.

Height Calculation and Grid Adjustments

The calendar height calculation was adjusted to better fill the viewport, ensuring a more consistent

Read more
PHP

Streamlining Navigation in the Landing Project

The Challenge

Maintaining a clear and intuitive navigation experience is crucial for any web application. In the landing project, we aimed to improve user navigation by updating the "Home" link and introducing a new "Stats" link, ensuring consistency across various portfolio themes.

The Solution

To address this, we implemented changes to the navigation structure, redirecting the "Home"

Read more
PHP Laravel CSS

Improving UI Compactness in Reimpact Platform

The Reimpact platform aims to provide a streamlined user experience. One aspect of this is ensuring that UI elements, such as widgets, are compact and efficient in their use of screen space.

The Problem: Widget Padding

QuickLinksWidget cards, used for displaying quick access links, were taking up more space than necessary due to excessive padding.

Read more

Keying into Performance: Setting the Primary Key for TopExceptionsWidget

In the Reimpact platform, we're always striving to optimize performance and ensure smooth operation. Recently, we encountered an interesting issue with the TopExceptionsWidget model that highlights the importance of correctly defining primary keys, especially when dealing with subqueries.

The Problem

Filament, our admin panel framework, relies on $record->id to uniquely identify rows in

Read more