Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
9087248
Create db schema for market items
ArcaEge Dec 22, 2025
9988c39
Created market page backend
ArcaEge Dec 22, 2025
f777d64
Start creating admin page for market, change 403 error message
ArcaEge Dec 22, 2025
179f959
Added snowflakes to page
bbarni2020 Dec 23, 2025
7e6ab18
Add admin CRUD actions for market items
bbarni2020 Dec 23, 2025
a4c6450
Display market items in grid and order by max price
bbarni2020 Dec 23, 2025
c27c0d7
Separate public and draft market items in admin view
bbarni2020 Dec 23, 2025
eea22e1
Enhance market item pricing and display logic
bbarni2020 Dec 23, 2025
3b340ce
Round discount up
bbarni2020 Dec 23, 2025
3ee6be7
Bricks to clays
bbarni2020 Dec 23, 2025
b372efb
Merge pull request #54 from bbarni2020/market
ArcaEge Dec 23, 2025
efcab5f
Update hackatime page text
ArcaEge Dec 23, 2025
4c4bfb2
Merge pull request #53 from bbarni2020/snowfall
ArcaEge Dec 23, 2025
5499e29
Revert "Snowfall add to page"
ArcaEge Dec 23, 2025
2caea0c
Merge pull request #58 from hackclub/revert-53-snowfall
ArcaEge Dec 23, 2025
ea975b8
Add infinite scroll to explore page
bbarni2020 Dec 23, 2025
de8817f
Refactor create shop item code, separate out create page
ArcaEge Dec 23, 2025
dde49be
Change edit page
ArcaEge Dec 23, 2025
17517b9
Make edit page persist isPublic
ArcaEge Dec 23, 2025
450e34d
Add edit page previews on admin market
ArcaEge Dec 23, 2025
152e6bc
Add delete page
ArcaEge Dec 23, 2025
79cd341
Merge pull request #59 from bbarni2020/explore-page
ArcaEge Dec 23, 2025
a7d3681
Clean up market page
ArcaEge Dec 23, 2025
f134448
Add buy button to market items (currently going nowhere)
ArcaEge Dec 23, 2025
eaedb2e
Change layout of market items
ArcaEge Dec 23, 2025
1c376c4
Disable market buy button if not enough shop score/brick
ArcaEge Dec 23, 2025
0235004
Improve spacing
ArcaEge Dec 23, 2025
0f3cc09
Add market score to user profile page
ArcaEge Dec 24, 2025
a0a95a2
Add market ordering user pages
ArcaEge Dec 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions drizzle/0016_lazy_kinsey_walden.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
CREATE TYPE "public"."market_order_status" AS ENUM('awaiting_approval', 'approved', 'fulfilled');--> statement-breakpoint
CREATE TABLE "market_item" (
"id" serial PRIMARY KEY NOT NULL,
"createdBy" integer,
"name" text NOT NULL,
"description" text NOT NULL,
"image" text NOT NULL,
"minRequiredShopScore" integer DEFAULT 0 NOT NULL,
"minShopScore" integer NOT NULL,
"maxShopScore" integer NOT NULL,
"maxPrice" integer NOT NULL,
"minPrice" integer NOT NULL,
"isPublic" boolean DEFAULT false NOT NULL,
"deleted" boolean DEFAULT false NOT NULL,
"createdAt" timestamp DEFAULT now() NOT NULL,
"updatedAt" timestamp DEFAULT now() NOT NULL
);
--> statement-breakpoint
CREATE TABLE "market_item_order" (
"id" serial PRIMARY KEY NOT NULL,
"userId" integer,
"addressId" text NOT NULL,
"bricksPaid" integer NOT NULL,
"status" "market_order_status" DEFAULT 'awaiting_approval' NOT NULL,
"userNotes" text NOT NULL,
"notes" text NOT NULL,
"deleted" boolean DEFAULT false NOT NULL,
"createdAt" timestamp DEFAULT now() NOT NULL
);
--> statement-breakpoint
ALTER TABLE "market_item" ADD CONSTRAINT "market_item_createdBy_user_id_fk" FOREIGN KEY ("createdBy") REFERENCES "public"."user"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "market_item_order" ADD CONSTRAINT "market_item_order_userId_user_id_fk" FOREIGN KEY ("userId") REFERENCES "public"."user"("id") ON DELETE no action ON UPDATE no action;
2 changes: 2 additions & 0 deletions drizzle/0017_long_greymalkin.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TYPE "public"."market_order_status" ADD VALUE 'denied';--> statement-breakpoint
ALTER TYPE "public"."market_order_status" ADD VALUE 'refunded';
1 change: 1 addition & 0 deletions drizzle/0018_sour_roughhouse.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE "market_item_order" ALTER COLUMN "notes" DROP NOT NULL;
1 change: 1 addition & 0 deletions drizzle/0019_wide_gamora.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE "market_item_order" ALTER COLUMN "userId" SET NOT NULL;
Loading
Loading