Skip to content

Conversation

@Priscilla-MacGatus
Copy link
Collaborator

Updated the app to properly catch and handle server-side errors by passing them to the ErrorState component. This ensures that when the server returns an error ), the user sees a meaningful and user-friendly error message instead of a generic failure or empty state.

@netlify
Copy link

netlify bot commented Jul 4, 2025

Deploy Preview for smart-cv-migracode ready!

Name Link
🔨 Latest commit 668cf18
🔍 Latest deploy log https://app.netlify.com/projects/smart-cv-migracode/deploys/687fb565fef104000839a24b
😎 Deploy Preview https://deploy-preview-125--smart-cv-migracode.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Collaborator

@inkpot-monkey inkpot-monkey left a comment

Choose a reason for hiding this comment

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

Hmmm careful about this, I don't think it will work. Just make sure you double check and if it doesnt work then we have a solution we can implement :)

import React, { useState } from 'react';
import styles from './ApiKeyInput.module.css';
import validateApiKey from '../../utils/validation.js';
import validateApiKey from '../../../netlify/utils/validations.js';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Have you tested to make sure this works? I think it will break because you are trying to import from outside the src folder.

A better way is to symlink netlify's validation utils to the frontend. I have left a more indepth explanation of what I mean by that in this PR :) #124

Copy link
Collaborator

Choose a reason for hiding this comment

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

with the symlink we need to remove one of these directory traversals

ie

import validateApiKey from '../../netlify/utils/validations.js';

@inkpot-monkey
Copy link
Collaborator

Is this ready for review @Priscilla-MacGatus ?

Copy link
Collaborator

@inkpot-monkey inkpot-monkey left a comment

Choose a reason for hiding this comment

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

LGTM nice work lets merge it

@Priscilla-MacGatus Priscilla-MacGatus merged commit 0abd880 into main Jul 28, 2025
4 checks passed
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.

3 participants