Files
zeekayandHanzo Dev ec5a4686cf Take upstream's name off the last identifiers that carried it
What was left was all internal naming, none of it rendered — the strings a
user actually sees had already been changed. Cleared so a grep for the
upstream brand returns only the attribution that is supposed to be there.

  - components/shared/icons/papermark-sparkle.tsx deleted. It was imported
    into components/view/nav.tsx and never rendered, so this is dead code,
    not a rename.
  - components/emails/year-in-review-papermark.tsx -> year-in-review.tsx,
    and PapermarkYearInReviewEmailProps -> YearInReviewEmailProps. The email
    body was already Hanzo Dataroom throughout; only the file and the
    interface still said otherwise.
  - PAPERMARK_HEADERS -> APP_HEADERS. Its value already read from
    NEXT_PUBLIC_APP_NAME.
  - papermarkUserId -> authenticatedUserId on TusAuthenticatedRequest.
  - isPapermarkUrl -> isDataroomUrl, and its condition no longer tests
    dataroom.hanzo.ai/view/ twice — a rewrite had collapsed two upstream
    domains into one and left the || behind.
  - the shadow database in prisma/add-migration.sh, and two comments.

LICENSE and LLM.md keep every mention: AGPL-3.0 with upstream's copyright
line, and the note recording what this is forked from. Per HIP-0137 those do
not get edited, and the point of this commit is that the brand should appear
where the licence requires it and nowhere else.

Co-authored-by: Hanzo Dev <[email protected]>
2026-08-04 18:58:57 -07:00

70 lines
1.6 KiB
Bash
Executable File

#!/bin/bash
# Default values
NAME=""
USER=""
# Parse command line arguments
while [[ $# -gt 0 ]]; do
case $1 in
--name)
NAME="$2"
shift 2
;;
--user)
USER="$2"
shift 2
;;
*)
echo "Unknown parameter: $1"
exit 1
;;
esac
done
# Validate required parameters
if [ -z "$NAME" ]; then
echo "Please provide a migration name"
echo "Usage: ./add-migration.sh --name <migration_name> --user <database_user>"
exit 1
fi
if [ -z "$USER" ]; then
echo "Please provide a database user"
echo "Usage: ./add-migration.sh --name <migration_name> --user <database_user>"
exit 1
fi
# Get current date in YYYYMMDD000000 format (midnight of current day)
date=$(date +%Y%m%d)000000
# Create migration name with date prefix
migration_name="${date}_${NAME}"
# Create migration directory
mkdir -p "prisma/migrations/${migration_name}" || {
echo "Failed to create migration directory"
exit 1
}
# Generate migration
npx prisma migrate diff \
--from-migrations prisma/migrations \
--to-schema-datasource prisma/schema \
--shadow-database-url "postgresql://${USER}@localhost:5432/dataroom-shadow-db" \
--script > "prisma/migrations/${migration_name}/migration.sql" || {
echo "Failed to generate migration"
exit 1
}
# Apply migration
npx prisma migrate resolve --applied "${migration_name}" || {
echo "Failed to apply migration"
exit 1
}
echo "Migration ${migration_name} created and applied successfully"