Some o the changes #5
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several updates to enhance functionality, improve user experience, and fix minor inconsistencies across the project. The changes include database schema updates, new scripts and dependencies, UI improvements, and code refactoring for better maintainability.
Database and Configuration Updates:
iconcolumn to theprojecttable in the database schema (drizzle/0002_curved_nomad.sql).0002_curved_nomad(drizzle/meta/_journal.json).drizzle.config.tsto ensure proper formatting (drizzle.config.ts).Backend Enhancements:
getDomainMetadatafunction insrc/app/api/project/route.tsto fetch and parse metadata (title, description, icon) from a domain, which is now used when creating new projects. This includes handling invalid domains and SSL certificate issues.POSTfunction insrc/app/api/project/route.tsto utilize the new metadata fetching logic and save theiconfield when creating a project.Frontend Improvements:
AddNewSitecomponent for a more streamlined user experience (src/app/dashboard/page.tsx). [1] [2]NoPageViewscomponent instead of theSnippetcomponent (src/app/dashboard/[websiteName]/page.tsx). (src/app/dashboard/[websiteName]/page.tsxL84-R105)src/app/dashboard/[websiteName]/page.tsx). (src/app/dashboard/[websiteName]/page.tsxL63-R69, src/app/dashboard/[websiteName]/page.tsxL126-L133)Dependency and Script Updates:
@radix-ui/react-label,geist, andzustandtopackage.json. [1] [2]db:migrateanddb:studio) inpackage.jsonfor easier database management.Minor Fixes:
public/tracking-script.jsto improve code readability. [1] [2] [3]