-
Notifications
You must be signed in to change notification settings - Fork 19
feat: Add Warehouse #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jeninh
wants to merge
151
commits into
main
Choose a base branch
from
warehouse-dev
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
151 commits
Select commit
Hold shift + click to select a range
d934e2d
Add ambassador shipping rate estimation endpoint
jeninh 4ecb222
Add warehouse inventory management page and schema
jeninh ad4a410
feat: add staging mode to bypass OAuth for local/staging testing
jeninh b8a4daf
Add drizzle-kit push to container startup for auto-migrations
jeninh 5467636
Install drizzle-kit in production image for runtime schema push
jeninh 718b9ac
feat: add warehouse item photo uploads via Hack Club CDN
jeninh 765bc55
Add edit item feature to warehouse
jeninh f6266c9
Rename Sizing to Options with dynamic add/remove inputs
jeninh ccafd91
Add required dimensions (length, width, height) fields to warehouse i…
jeninh 2e7441a
Add image remove button with undo in edit item form
jeninh 9360d21
Add warehouse categories with CRUD and item grouping by category
jeninh 2fb3032
Add Vitest testing framework, 67 unit/integration tests, and GitHub A…
jeninh 543b307
Add warehouse route changes and sub-pages
jeninh 2be2858
Add category rename, reorder, and editCategory server action
jeninh 187ade9
Remove 'steal their prizes' text from hero description
jeninh 43f9f4f
Add flat package type for warehouse items and orders page with shippi…
jeninh a893d9f
Increase BODY_SIZE_LIMIT to 10M for image uploads
jeninh f303256
Move .github/workflows to repo root and set working-directory
jeninh 9a930a8
feat: show who ordered on warehouse orders, add tags for filtering
jeninh 2c9ce9a
Snap flat estimation to 4x6 or 6x9 envelopes, treat larger flats as b…
jeninh b6f6c75
ci: add typecheck, security audit, and dependabot config
jeninh 5194b9c
Split warehouse into read-only view and admin-only warehouse-backend
jeninh b49601e
Add warehouse backend button to /app dashboard for admins
jeninh e70d786
Move all tabs to warehouse, strip warehouse-backend to admin placeholder
jeninh ffbb4d6
Add warehouse backend admin tools for managing categories and items
jeninh b56a705
Fix table layout - remove flex from table cells
jeninh ac8dd2e
Add order placement page for ambassadors
jeninh 07fdfc2
feat(warehouse): add search-to-add items and shipping cost estimation
jeninh 63a8964
feat(warehouse): replace country text input with dropdown
jeninh fac18ba
feat(warehouse): auto-estimate shipping on item add/remove/qty change
jeninh b9e7210
feat(warehouse): multi-step order wizard with shipping rate selection…
jeninh e3d04f2
feat(warehouse): make postal code required in order wizard
jeninh 706367d
feat(warehouse): rename Place Order to Send to Warehouse
jeninh f6c8124
feat(warehouse): tag input with chips, Enter to add, autocomplete fro…
jeninh b1d65d5
feat(warehouse): add order templates, batches (CSV upload + field map…
jeninh 2e0029b
feat(warehouse): add red asterisks to required fields in new order form
jeninh 6f0b859
feat(warehouse): link batch CSV template to Google Sheets (Resolution…
jeninh 5ab0e1a
feat(warehouse): scope orders and batches to the logged-in user
jeninh 9b592a9
fix(warehouse): reorder batch field mapping so Address Line 2 appears…
jeninh 8a49ff0
feat(warehouse): step-by-step batch flow (create → auto-map fields → …
jeninh dab9513
feat: replace PlatformBackground with Hack Club Phantom Sans font and…
jeninh 39baaf1
fix: remove extra closing div in admin page causing build failure
jeninh 0489555
fix: add postalCode to test fixture and install @vitest/coverage-v8
jeninh 0ea3388
ci: trigger CI on warehouse-dev branch pushes
jeninh 1f092a9
fix: resolve npm audit vulnerabilities (rollup, svelte, devalue, lodash)
jeninh 79cb532
Subtract item quantity from warehouse inventory when orders are placed
jeninh d165d83
Add batch cost calculation with cheapest shipping and inventory alerts
jeninh a42fa4a
Add shipping cost estimate disclaimer to orders and batch pages
jeninh 9787196
Add fulfillment tab with auto-incrementing order IDs
jeninh 38d8282
Add fulfillment tab to warehouse backend
jeninh c9aa778
Fix fulfillment page: await parent layout data
jeninh d3cef6c
Pin drizzle-kit version in Dockerfile, add stderr to push output
jeninh be3dda4
Add debug logging to entrypoint for drizzle-kit push
jeninh 4f1d0cc
Fix drizzle-kit push: pipe stdin to avoid interactive prompt blocking…
jeninh 4e9c7e9
fix: correct migration journal tag to match actual filename
jeninh 2618c02
Set new warehouse orders to APPROVED status instead of DRAFT
jeninh 00cefa3
Save selected shipping rate and service name when creating orders
jeninh a43dc36
Add fulfillment label generation with Canada Post, Theseus lettermail…
jeninh 41d0eb7
Mark Theseus letters as printed, remove company from CP sender
jeninh a7582ed
Add sender address line 2 and restore required company field for Cana…
jeninh 22285f4
Make QZ Tray certificate optional for demo mode
jeninh 659956a
Combine print label and packing slip into single Print button
jeninh f553cf8
Handle escaped newlines in QZ certificate and private key env vars
jeninh 8c34a2b
Add settlement-info to Canada Post shipment XML, support CreditCard p…
jeninh 499fc56
Fetch Theseus label PDF and convert to base64 for qz-tray printing
jeninh bc24e25
Add reprint button for orders with existing labels, remove label-alre…
jeninh 3a8c15e
Handle both data URLs and remote URLs in printAll for label printing
jeninh b0ca5a6
Fix CORS: always proxy label fetch through server, never fetch remote…
jeninh af2a655
Add reprint path: re-fetch existing label as base64 instead of creati…
jeninh d024019
Add logging and proper error handling for label re-fetch to debug 502
jeninh ca8691d
Fix stack overflow: use loop-based arrayBufferToBase64 instead of spr…
jeninh c94665d
Include packing slip in reprint response, extract buildPackingSlipBas…
jeninh 63e6c95
fix: rename method-of-payment to intended-method-of-payment in Canada…
jeninh c41519e
fix: add non-delivery handling (RASE) for intl shipments, require pho…
jeninh f723ec6
fix: remove invalid non-delivery and RASE option from Canada Post cus…
jeninh ed6511b
refactor: consolidate Canada Post integration into shared module
jeninh 8bea788
fix: guard against empty sku-list in customs XML, add default to hsCo…
jeninh 759a9f9
fix: add non-delivery, fallback customs item, and required phone for …
jeninh 13ea14b
fix: add retry with backoff for Canada Post 500 errors
jeninh 4a1e2e8
fix: remove non-delivery from customs XML
jeninh 0630cc6
fix: move non-delivery RASE to options block for US/intl shipments
jeninh 8234a40
debug: log shipment XML to diagnose non-delivery handling error
jeninh c0deb14
fix: use ABAN non-delivery for small packet services, RASE for others
jeninh 2c835a1
fix: try RTS non-delivery option for US shipments
jeninh 1330fc7
feat: add download buttons for label PDF and packing slip
jeninh 815bd54
feat: add Zonos integration for US-bound Canada Post shipments
jeninh 0278e6a
fix: resolve country names to ISO codes for Canada Post API
jeninh 991eb34
fix: set batch orders to APPROVED so they appear in fulfillment
jeninh bee633b
fix: use non-contract shipment endpoint when CP_CONTRACT_ID is not set
jeninh 68adf69
fix: use non-contract shipment XML schema (ncshipment-v4) when no con…
jeninh 54b7f2b
fix: omit country-code from sender address for non-contract shipments
jeninh 49d2116
fix: omit print-preferences for non-contract shipments
jeninh 8762e2e
debug: log service code and country when creating shipment
jeninh 2b1b7ac
fix: use country-appropriate service code fallback when estimatedServ…
jeninh 12ca422
fix: use RASE non-delivery option for non-contract international ship…
jeninh 62ee884
fix: use ABAN non-delivery option for non-contract shipments
jeninh e98cdc4
fix: skip options element for non-contract shipments
jeninh 453f61c
fix: restore ABAN non-delivery handling option for non-contract intl …
jeninh 29cd831
debug: try RASE option and log full shipment XML
jeninh f535ba1
debug: try RTS option code for non-delivery handling
jeninh c1f2f7b
debug: remove options block for non-contract to test if small packet …
jeninh 4bc4925
revert: restore RTS options block for non-contract intl shipments
jeninh 5137b3f
fix: use Tracked Packet instead of Small Packet for non-contract ship…
jeninh 27eb90c
feat: crop non-contract 8.5x11 labels to 4x6 using pdf-lib
jeninh 46289c1
fix: crop full right half of 8.5x11 label (label spans full height)
jeninh a128a02
fix: crop label to 4x6 centered on actual label content in right half
jeninh d6be639
fix: crop right half dynamically using actual PDF page dimensions
jeninh 409b580
fix: trim top/bottom whitespace from cropped label
jeninh 16f696b
fix: tighten label crop to 0.9in from top, 7.1in content height
jeninh 7c57970
fix: modify source PDF page boxes directly instead of copying to new doc
jeninh fcfc1c2
fix: correct label crop coordinates for landscape PDF, output exactly…
jeninh 33c8f01
Add Chit Chats as third shipping option alongside Theseus and Canada …
jeninh 4cada62
Fix Chit Chats API: send body fields at top level, not wrapped in shi…
jeninh f9d0130
Fix Chit Chats: add required line_items to rate fetch request
jeninh c3e937b
Fix Chit Chats: add required hs_tariff_code for CA origin line items
jeninh 8b87354
Add required manufacturer details and weight to Chit Chats line_items…
jeninh b0cf8b9
Fix Chit Chats: use valid 10-digit HTS codes, strip dots and pad item…
jeninh 2692a59
Fix Chit Chats: use 9505100000 as fallback HTS code (your actual item…
jeninh 89e7623
Use Chit Chats example HTS code 7117199000 as fallback for rate quotes
jeninh f2c5b61
Remove carrier dropdown from fulfillment panel; use customer-selected…
jeninh b0948ce
fix: add U.S./international fallback patterns to getServiceCode
jeninh 0cbc817
Use customer-selected shipping carrier (Chit Chats/lettermail/Canada …
jeninh 8f3be64
Switch Chit Chats labels from PDF (8.5x11) to PNG (4x6)
jeninh 6a03f38
Prevent warehouse inventory from going negative
jeninh e7d69b4
Add HCB billing for warehouse orders
jeninh 2eb4f9f
Add removeAdmin script for toggling admin status via CLI
jeninh 6d9e4bd
Add Chit Chats rates to fetchCheapestRate batch shipping selection
jeninh 6c3a7a0
Fix HS tariff code format and pass province to Chit Chats rates
jeninh fbf157b
Fix HS tariff code format: Canada Post requires ####.##.##.## with dots
jeninh 708a2be
Truncate Canada Post XML fields to API max lengths
jeninh 52c89f4
Pass email and phone to Chit Chats shipment (required for some countr…
jeninh 6ab0c5e
Fall back to INT.XP when INT.TP is unavailable for a country (and vic…
jeninh 360d3f9
Resolve full state/province names to 2-letter codes for Canada Post
jeninh 51692a8
Fix state code resolution at shipment time + fix INT.XP fallback
jeninh 5913749
Auto-fallback to Chit Chats when Canada Post fails for international …
jeninh 12d347d
Fix international shipping fallbacks for unsupported destinations
jeninh 004a52b
Warehouse: admin-only fulfillment, show all orders for admins, sort s…
jeninh 4ee5f2a
fix: resolve npm audit vulnerabilities (devalue, undici, dompurify)
jeninh 9f3cf8e
Merge branch 'main' into warehouse-dev
jeninh 0afd0de
fix: add auth to QZ endpoints and authorization to fulfillment
jeninh 079abc6
Add non-delivery-handling to customs XML for INT.IP services
jeninh 93362e1
Revert "Add non-delivery-handling to customs XML for INT.IP services"
jeninh 594b41e
fix: display server-side form errors on warehouse order creation page
jeninh b0cd3aa
fix: IDOR on get-label — verify ambassador owns the order
jeninh bfa769c
fix: IDOR on batch actions — verify batch ownership before mapFields,…
jeninh 684a14b
fix: race condition on inventory — use atomic WHERE guard on stock de…
jeninh 8d60366
fix: add auth + admin check to all warehouse-backend form actions
jeninh f920794
fix: remove removeAdmin.mjs — privilege escalation risk if run agains…
jeninh b4219ec
fix: remove DATABASE_URL presence disclosure from entrypoint logs
jeninh c753180
fix: remove --force from drizzle-kit push to prevent silent destructi…
jeninh 22ee85d
fix: remove committed coverage files and add coverage/ to .gitignore
jeninh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ name: CI | |
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| branches: [main, warehouse-dev] | ||
| pull_request: | ||
|
|
||
| defaults: | ||
|
|
||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and this one, can we also not put this in prod |
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,6 +24,10 @@ vite.config.ts.timestamp-* | |
|
|
||
| /docs | ||
|
|
||
| # Coverage | ||
| /coverage | ||
|
|
||
| # Prisma | ||
| *.db | ||
| *.db-journal | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
resolution-frontend/drizzle/0002_add_package_type_and_orders.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| ALTER TABLE "warehouse_item" ADD COLUMN "package_type" text DEFAULT 'box' NOT NULL; | ||
| --> statement-breakpoint | ||
| CREATE TYPE "warehouse_order_status" AS ENUM ('DRAFT', 'ESTIMATED', 'APPROVED', 'SHIPPED', 'CANCELED'); | ||
jeninh marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| --> statement-breakpoint | ||
| CREATE TABLE "warehouse_order" ( | ||
| "id" text PRIMARY KEY NOT NULL, | ||
| "created_by_id" text NOT NULL, | ||
| "status" "warehouse_order_status" DEFAULT 'DRAFT' NOT NULL, | ||
| "first_name" text NOT NULL, | ||
| "last_name" text NOT NULL, | ||
| "email" text NOT NULL, | ||
| "phone" text, | ||
| "address_line_1" text NOT NULL, | ||
| "address_line_2" text, | ||
| "city" text NOT NULL, | ||
| "state_province" text NOT NULL, | ||
| "postal_code" text, | ||
| "country" text NOT NULL, | ||
| "estimated_shipping_cents" integer, | ||
| "estimated_service_name" text, | ||
| "estimated_package_type" text, | ||
| "estimated_total_length_in" real, | ||
| "estimated_total_width_in" real, | ||
| "estimated_total_height_in" real, | ||
| "estimated_total_weight_grams" real, | ||
| "notes" text, | ||
| "created_at" timestamp DEFAULT now() NOT NULL, | ||
| "updated_at" timestamp DEFAULT now() NOT NULL | ||
| ); | ||
| --> statement-breakpoint | ||
| CREATE TABLE "warehouse_order_item" ( | ||
| "id" text PRIMARY KEY NOT NULL, | ||
| "order_id" text NOT NULL, | ||
| "warehouse_item_id" text NOT NULL, | ||
| "quantity" integer DEFAULT 1 NOT NULL, | ||
| "sizing_choice" text | ||
| ); | ||
| --> statement-breakpoint | ||
| ALTER TABLE "warehouse_order" ADD CONSTRAINT "warehouse_order_created_by_id_user_id_fk" FOREIGN KEY ("created_by_id") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action; | ||
| --> statement-breakpoint | ||
| ALTER TABLE "warehouse_order_item" ADD CONSTRAINT "warehouse_order_item_order_id_warehouse_order_id_fk" FOREIGN KEY ("order_id") REFERENCES "public"."warehouse_order"("id") ON DELETE cascade ON UPDATE no action; | ||
| --> statement-breakpoint | ||
| ALTER TABLE "warehouse_order_item" ADD CONSTRAINT "warehouse_order_item_warehouse_item_id_warehouse_item_id_fk" FOREIGN KEY ("warehouse_item_id") REFERENCES "public"."warehouse_item"("id") ON DELETE restrict ON UPDATE no action; | ||
55 changes: 55 additions & 0 deletions
55
resolution-frontend/drizzle/0003_add_templates_and_batches.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| -- Order Templates | ||
| CREATE TABLE "warehouse_order_template" ( | ||
| "id" text PRIMARY KEY NOT NULL, | ||
| "created_by_id" text NOT NULL, | ||
| "name" text NOT NULL, | ||
| "is_public" boolean DEFAULT false NOT NULL, | ||
| "created_at" timestamp DEFAULT now() NOT NULL, | ||
| "updated_at" timestamp DEFAULT now() NOT NULL | ||
| ); | ||
| --> statement-breakpoint | ||
| CREATE TABLE "warehouse_order_template_item" ( | ||
| "id" text PRIMARY KEY NOT NULL, | ||
| "template_id" text NOT NULL, | ||
| "warehouse_item_id" text NOT NULL, | ||
| "quantity" integer DEFAULT 1 NOT NULL | ||
| ); | ||
| --> statement-breakpoint | ||
| ALTER TABLE "warehouse_order_template" ADD CONSTRAINT "warehouse_order_template_created_by_id_user_id_fk" FOREIGN KEY ("created_by_id") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action; | ||
| --> statement-breakpoint | ||
| ALTER TABLE "warehouse_order_template_item" ADD CONSTRAINT "warehouse_order_template_item_template_id_warehouse_order_template_id_fk" FOREIGN KEY ("template_id") REFERENCES "public"."warehouse_order_template"("id") ON DELETE cascade ON UPDATE no action; | ||
| --> statement-breakpoint | ||
| ALTER TABLE "warehouse_order_template_item" ADD CONSTRAINT "warehouse_order_template_item_warehouse_item_id_warehouse_item_id_fk" FOREIGN KEY ("warehouse_item_id") REFERENCES "public"."warehouse_item"("id") ON DELETE restrict ON UPDATE no action; | ||
| --> statement-breakpoint | ||
| -- Batches | ||
| CREATE TYPE "warehouse_batch_status" AS ENUM ('AWAITING_MAPPING', 'MAPPED', 'PROCESSED'); | ||
| --> statement-breakpoint | ||
| CREATE TABLE "warehouse_batch" ( | ||
| "id" text PRIMARY KEY NOT NULL, | ||
| "created_by_id" text NOT NULL, | ||
| "template_id" text NOT NULL, | ||
| "title" text, | ||
| "status" "warehouse_batch_status" DEFAULT 'AWAITING_MAPPING' NOT NULL, | ||
| "csv_data" text NOT NULL, | ||
| "field_mapping" text, | ||
| "address_count" integer DEFAULT 0 NOT NULL, | ||
| "created_at" timestamp DEFAULT now() NOT NULL, | ||
| "updated_at" timestamp DEFAULT now() NOT NULL | ||
| ); | ||
| --> statement-breakpoint | ||
| CREATE TABLE "warehouse_batch_tag" ( | ||
| "id" text PRIMARY KEY NOT NULL, | ||
| "batch_id" text NOT NULL, | ||
| "tag" text NOT NULL | ||
| ); | ||
| --> statement-breakpoint | ||
| ALTER TABLE "warehouse_batch" ADD CONSTRAINT "warehouse_batch_created_by_id_user_id_fk" FOREIGN KEY ("created_by_id") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action; | ||
| --> statement-breakpoint | ||
| ALTER TABLE "warehouse_batch" ADD CONSTRAINT "warehouse_batch_template_id_warehouse_order_template_id_fk" FOREIGN KEY ("template_id") REFERENCES "public"."warehouse_order_template"("id") ON DELETE restrict ON UPDATE no action; | ||
| --> statement-breakpoint | ||
| ALTER TABLE "warehouse_batch_tag" ADD CONSTRAINT "warehouse_batch_tag_batch_id_warehouse_batch_id_fk" FOREIGN KEY ("batch_id") REFERENCES "public"."warehouse_batch"("id") ON DELETE cascade ON UPDATE no action; | ||
| --> statement-breakpoint | ||
| CREATE UNIQUE INDEX "warehouse_batch_tag_unique_idx" ON "warehouse_batch_tag" USING btree ("batch_id","tag"); | ||
| --> statement-breakpoint | ||
| -- Add batch_id to warehouse_order | ||
| ALTER TABLE "warehouse_order" ADD COLUMN "batch_id" text; |
3 changes: 3 additions & 0 deletions
3
resolution-frontend/drizzle/0004_add_label_tracking_fields.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| ALTER TABLE "warehouse_order" ADD COLUMN "tracking_number" text; | ||
| ALTER TABLE "warehouse_order" ADD COLUMN "label_url" text; | ||
| ALTER TABLE "warehouse_order" ADD COLUMN "shipping_method" text; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ALTER TABLE "warehouse_item" ADD COLUMN "hs_code" text NOT NULL DEFAULT ''; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| #!/bin/sh | ||
| set -e | ||
|
|
||
| echo "Running database schema push..." | ||
| echo "" | npx drizzle-kit push --verbose 2>&1 || echo "WARNING: drizzle-kit push failed with exit code $?" | ||
| echo "Schema push complete." | ||
|
|
||
| exec node build |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we not put this in prod please