Latest Updates

Documenting code, one commit at a time.

CSS

Improving Sidebar Header Behavior with CSS Sticky Positioning

Addressing layout issues is a common task in web development. One frequent problem is ensuring that headers, particularly in sidebars, remain visible even when the user scrolls down the page. This post details how to resolve a scenario where a sidebar header was being cut off during scrolling by implementing CSS sticky positioning.

The Problem: Header Scroll Cutoff

The original

Read more

Enhancing AI Auditability Through Structured Summaries

Improving the auditability of AI interactions is crucial for maintaining security and control. A recent update focuses on preventing the exposure of raw code to AI models, enhancing data security, and providing better insights into flagged code changes.

The Challenge of Raw Diffs

Previously, raw git diffs were sent to AI models for analysis. This approach, while providing detailed context,

Read more
Python JavaScript

Adding a Safe Mode and Improving Code Generation

This post discusses recent improvements to our application, focusing on enhanced security measures and smarter code generation capabilities.

Safe Mode Implementation

We've introduced a 'safe mode' feature, giving tenants more control over security audits during post generation. By default, safe mode is enabled, ensuring all generated content undergoes a thorough security check.

Read more

Enhancing AI Auditability: From Raw Diffs to Structured Summaries

Improving the way we audit code changes is crucial for maintaining security and stability in our applications. Recently, we transitioned from feeding raw Git diffs directly to our AI analysis tools to using structured summaries. This shift significantly enhances auditability and reduces the risk of exposing sensitive information.

The Problem with Raw Diffs

Sending raw diffs to AI models

Read more
Python

Mitigating False Positives in Security Audits for Code Examples

Introduction

Security audits are crucial for maintaining the integrity of applications. However, overly sensitive rules can lead to false positives, particularly when dealing with illustrative code examples. This post discusses how to refine audit rules to distinguish between genuine security vulnerabilities and intentionally simplified or educational code snippets.

The Challenge:

Read more
Python JavaScript

Handling Audit False Positives with Domain Validation

Introduction

Auditing tools are crucial for maintaining application security and compliance. However, false positives can create unnecessary noise and divert attention from genuine threats. One common source of these false positives is the detection of reserved domain names, such as those under the IANA's example.com, example.net, and example.

Read more
CSS HTML JavaScript

Adapting UI Components for Themeable Applications

This post delves into a practical approach for creating flexible UI components that seamlessly adapt to various themes within an application. We'll explore how to avoid hardcoded styles and instead leverage style variables to ensure consistent visual appearance across different themes.

The Problem: Hardcoded Styles

In many applications, UI components are initially developed with a specific

Read more

Streamlining User Onboarding: Integrating LinkedIn Login for Enhanced Recommendation Flows

Introduction

We've recently enhanced the user experience within our application by integrating LinkedIn login and registration, specifically aimed at simplifying the recommendation flow. This post details the changes and the reasoning behind them.

Key Improvements

Simplified Registration and Login

Previously, recommenders needed a GitHub account, which added friction to the process.

Read more

Enhancing Workflow Reliability with Code Review

In software development, a robust workflow is crucial for maintaining code quality and minimizing potential issues. Recently, we've focused on refining our development process to incorporate more rigorous code review practices, specifically before finalizing changes.

The Importance of Early Code Review

Integrating a 'dev:code-review' step earlier in the workflow offers several key advantages:

Read more