Skip to content

Fixed existing issues and local testing problems#12

Open
AlphaTechini wants to merge 4 commits into
mcollina:mainfrom
AlphaTechini:main
Open

Fixed existing issues and local testing problems#12
AlphaTechini wants to merge 4 commits into
mcollina:mainfrom
AlphaTechini:main

Conversation

@AlphaTechini
Copy link
Copy Markdown

"I ran into some problems during local testing and fixed them as follows. You should keep these changes as they enable the project to run correctly on your environment:

Space in Folder Path
The Problem: I put the repo in folder that had space in its name and the test config wasn't handling the space in the folder name correctly, causing the test server to fail. The Fix: I wrapped the path in quotes in playwright.config.ts. Even if you rename the folder later, keeping this is best practice as it prevents the error from happening again for anyone else with spaces in their path. Missing Authentication Logic
The Problem: The logic to actually log a user in via a URL token was missing from the app, causing the auth.spec.ts test to fail. The Fix: I updated useAuth.ts to check the URL for a token and log the user in if one is present. This is a functional fix for a missing feature, not just a test patch. Windows Incompatibility
The Problem: The build script tried to run chmod, a Linux/Mac command that doesn't exist on Windows, causing the build to crash. The Fix: I've updated the build script to be cross-platform. Instead of removing chmod entirely (which hurts Mac/Linux users), I replaced it with a small Node.js script that checks process.platform. It now runs chmod +x only if you are NOT on Windows"

Then finally the best parts: The issues have been addressed. except the Claude marketplace.

  1. Light theme available via moon/sun icon.
  2. you can now view diff in split mode.
  3. A banner should show when a new version is available on npm. Couldn't test this cos am on the latest version.

Apologies for the long commit message

…ows. You should keep these changes as they enable the project to run correctly on your environment:

Space in Folder Path
The Problem: I put the repo in folder that had space in its name and the test config wasn't handling the space in the folder name correctly, causing the test server to fail.
The Fix: I wrapped the path in quotes in playwright.config.ts. Even if you rename the folder later, keeping this is best practice as it prevents the error from happening again for anyone else with spaces in their path.
Missing Authentication Logic
The Problem: The logic to actually log a user in via a URL token was missing from the app, causing the auth.spec.ts test to fail.
The Fix: I updated useAuth.ts to check the URL for a token and log the user in if one is present. This is a functional fix for a missing feature, not just a test patch.
Windows Incompatibility
The Problem: The build script tried to run chmod, a Linux/Mac command that doesn't exist on Windows, causing the build to crash.
The Fix: I've updated the build script to be cross-platform. Instead of removing chmod entirely (which hurts Mac/Linux users), I replaced it with a small Node.js script that checks process.platform. It now runs chmod +x only if you are NOT on Windows"

Then finally the best parts: The issues have been addressed. except the Claude market place.
1. Light theme available via moon/sun icon.
2. you can now view diff in split mode.
3. A banner should show when a new version is available on npm. Couldn't test this cos am on the latest version.

Apologies for the long commit message
@AlphaTechini
Copy link
Copy Markdown
Author

Screen.Recording.2026-02-03.135144.mp4

screen recording of implemented changes

Copy link
Copy Markdown
Owner

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add some tests for these?

Comment thread src/web/components/VersionBanner.tsx Outdated
@@ -0,0 +1,87 @@
import { useState, useEffect } from 'react'

const CURRENT_VERSION = '0.5.1'
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this kept up-to-date?

Comment thread src/web/components/VersionBanner.tsx Outdated
hasUpdate: boolean;
}

function compareVersions (current: string, latest: string): boolean {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use the semver module instead?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll update the version banner to use the semver module and read the version from
package.json instead. Then add tests.

…lly imported from

package.json. Added tests for different scenarios.
@AlphaTechini
Copy link
Copy Markdown
Author

@mcollina sorry for the stress this should be okay now right?

@mcollina
Copy link
Copy Markdown
Owner

mcollina commented Feb 5, 2026

Can you add a test for the side-by-side view?

@AlphaTechini
Copy link
Copy Markdown
Author

Can you add a test for the side-by-side view?

Done check my last commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants