Skip to content

feat: initialize @hackpsu/react-sdk#443

Merged
kensac merged 13 commits intomainfrom
sdk
Dec 4, 2025
Merged

feat: initialize @hackpsu/react-sdk#443
kensac merged 13 commits intomainfrom
sdk

Conversation

@kensac
Copy link
Copy Markdown
Member

@kensac kensac commented Dec 4, 2025

with TypeScript configuration, buld setup, and package metadata

  • Added package.json with project metadata, dependencies, and build scripts.
  • Created tsconfig.json for TypeScript compiler options and project structure.
  • Configured tsup for building the library with multiple entry points and output formats.

kensac added 10 commits December 3, 2025 22:27
…ild setup, and package metadata

- Added package.json with project metadata, dependencies, and build scripts.
- Created tsconfig.json for TypeScript compiler options and project structure.
- Configured tsup for building the library with multiple entry points and output formats.
- Implemented drive API with folder permissions, info retrieval, subfolder listing, folder creation, and sharing functionalities.
- Added mail API for sending single and batch emails, uploading templates, and retrieving template metadata and previews.
- Updated existing hooks and entities to accommodate new features and ensure proper data handling.
- Refactored registration and user APIs to streamline functionality and improve code organization.
…ovider functions

feat: add organizer application API with entities, hooks, and provider functions
feat: enhance photo management API with pagination and upload features
feat: update sponsor API with batch operations and file uploads
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request initializes a new React SDK package (@hackpsu/react-sdk) that provides shared hooks, providers, and API clients for HackPSU projects. The SDK is built with TypeScript, uses tsup for bundling, and supports both CommonJS and ES module formats. It includes Firebase authentication, TanStack Query for data fetching, and modular API clients for various HackPSU services.

Key changes:

  • Sets up package configuration with proper exports for multiple entry points
  • Configures TypeScript with strict mode and React JSX support
  • Implements Firebase authentication provider with session management
  • Creates modular API structure with 20+ service modules (events, users, teams, sponsors, etc.)

Reviewed changes

Copilot reviewed 103 out of 105 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
sdk/package.json Package metadata with dependencies and build configuration for the React SDK
sdk/tsconfig.json TypeScript compiler options for the SDK with strict mode enabled
sdk/tsup.config.ts Build configuration with multiple entry points for tree-shakeable exports
tsconfig.build.json Updated root build config to exclude the new sdk directory
sdk/index.ts Main entry point with documentation and re-exports
sdk/config/* Firebase and environment configuration modules
sdk/context/* React providers for Firebase auth, layout, and auth guards
sdk/api/* 20+ API service modules with hooks, providers, and entity types

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread sdk/api/mail/hook.ts
Comment on lines +9 to +16
import {
SendMailRequest,
SendBatchMailRequest,
UploadTemplateRequest,
TemplateMetadata,
PreviewMailRequest,
PreviewMailResponse,
} from "./entity";
Copy link

Copilot AI Dec 4, 2025

Choose a reason for hiding this comment

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

Unused import PreviewMailResponse.

Copilot uses AI. Check for mistakes.
"use client";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { FirebaseProvider } from "./FirebaseProvider";
import { auth } from "../config";
Copy link

Copilot AI Dec 4, 2025

Choose a reason for hiding this comment

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

Unused import auth.

Copilot uses AI. Check for mistakes.
Comment thread sdk/context/LayoutProvider.tsx
@kensac kensac merged commit d646f83 into main Dec 4, 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.

2 participants