Latest Updates

Documenting code, one commit at a time.

JavaScript Python

Streamlining Content Generation with LinkedIn Prompts in Devlog-ist/landing

This post details the recent enhancements to the content generation process within the devlog-ist/landing project, focusing on the integration and management of LinkedIn prompts for improved content quality and platform-specific tailoring.

The Goal

The primary objective was to enhance the content generation workflow by incorporating LinkedIn-specific prompts, allowing for more targeted and

Read more
PHP Laravel Serde

Improving Code Quality and Performance in Reimpact Platform

This post delves into recent improvements made to the Reimpact/platform project, focusing on enhancing code quality, fixing cross-module dependencies, and optimizing database queries. The project aims to provide a robust platform for managing various business processes.

Validation and Data Integrity

A significant aspect of this update involves strengthening data validation across multiple

Read more
PHP Laravel

Preventing Scope Downgrades in OAuth Flows

Introduction

When implementing OAuth flows, ensuring that user permissions (scopes) are correctly managed is crucial. A subtle bug can lead to unintended scope downgrades, limiting the application's access to necessary resources. This post discusses a fix in the devlog-ist/landing project to prevent such downgrades during GitHub login.

The Problem

The devlog-ist/landing project

Read more

Fixing Alpine.js x-for Errors in SVG on Laravel Landing Pages

When building interactive landing pages with Laravel and Alpine.js, you might encounter unexpected issues when using Alpine.js directives inside SVG elements. Specifically, the <template x-for> loop can cause errors due to how browsers handle foreign objects within SVG. This post details a solution to this problem.

The Problem: <template x-for> Inside SVG

SVG elements have their own

Read more
PHP GitHub

Enhancements to Landing Page Synchronization

The devlog-ist/landing project helps keep our landing pages up-to-date with the latest content. We've been working on improving its synchronization process with external data sources.

Key improvements include a new job for initial synchronization that smartly detects the last activity date, replacing a hardcoded 7-day window. This makes the sync process more efficient and accurate.

Read more
PHP Laravel

Optimizing User Activity Sync in devlog-ist/landing

The devlog-ist/landing project is focused on [project description]. We've been working on improving how user activity is synced, specifically addressing limitations with the Events API. This involves handling date range restrictions and implementing a more robust commit synchronization strategy.

The Events API has a limited range of about 90 days and pagination caps, causing errors when syncing

Read more
JavaScript Laravel

CSRF Tokens: Preventing Onboarding Tour Issues

When building interactive tours, ensure all API requests include CSRF tokens to prevent unexpected failures. Let's look at a recent fix in Reimpact/platform, a project focused on modernizing user interaction flows. The team addressed an issue where the onboarding tour restarted on every page load.

The Problem: Missing CSRF Tokens

The tour's JavaScript fetch calls lacked the X-CSRF-TOKEN

Read more
PHP Laravel Filament

Handling GitHub API Token Revocation in devlog-ist/landing

The devlog-ist/landing project helps users track their development activity. We recently improved how the application handles revoked or expired GitHub API tokens. Previously, a 401 error would trigger a generic error log and continuous retry attempts during data synchronization. This led to unnecessary server load and delayed data updates.

Now, when a 401 error (Bad Credentials) is received

Read more
Laravel PHP OAuth

Limiting OAuth Providers in Laravel

Working on the devlog-ist/landing project, we're refining the authentication flow. The goal is to streamline user registration and login, particularly for non-developers who might be contributing recommendations. We've adjusted the available OAuth providers to match user roles.

Previously, both GitHub and LinkedIn were presented as default options on the login and registration pages.

Read more