Latest Updates

Documenting code, one commit at a time.

Handling Image Downloads in brenia

The Breniapp project recently addressed an issue with image downloads in its content generation feature. Instead of directly downloading images, the application was opening them in a new tab when the html2canvas library failed due to Cross-Origin Resource Sharing (CORS) restrictions. This behavior was not ideal for user experience, so a solution was implemented to ensure proper downloading.

Read more
CSS JavaScript

Taming the Retro Theme: A Color Palette Shift

The landing project received a facelift, focusing on aesthetic improvements to the retro theme. The goal was to reduce the overwhelming use of a single color and introduce more visual diversity across different elements.

The Challenge

The initial retro theme relied heavily on yellow, which, while visually striking, became monotonous when applied to all elements like badges, project

Read more

Preventing Duplicate Actions in Livewire Components

Introduction

In the Breniapp/brenia project, we recently encountered an issue where certain actions within our Livewire components were being triggered multiple times unintentionally. This manifested as duplicate image downloads on a content generation page. The root cause was traced to Livewire 3's @script block, which re-executes on every component update, leading to an accumulation of

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

Making Database Migrations Idempotent: Preventing Duplicate Table Errors

This post discusses how to create idempotent database migrations, specifically focusing on preventing duplicate table errors within the Reimpact/platform project.

The Problem

During development and deployment, database migrations are essential for evolving the application's schema. However, if migrations are not carefully designed, they can lead to issues, particularly when the same

Read more

Enhancing Real-Time Updates in Reimpact Platform: Implementing Polling for Packaging Uploads

Introduction

In the Reimpact platform, keeping users informed about the status of long-running packaging uploads is crucial. To improve the user experience, we've introduced a polling mechanism to the massive uploads table. This enhancement ensures that users receive near-real-time updates without needing to manually refresh the page.

The Problem

Previously, users had to rely on manual

Read more