Commit Graph

10 Commits

Author SHA1 Message Date
Kyle Fang
491dc831cf feat: add push to allow commands 2025-07-01 10:26:11 +08:00
Kyle Fang
2d57a7c9c9 fix: resolve GitHub Actions workflow failures
- Add README.md to packages/examples for docs workflow
- Fix CI workflow bun filter commands and add test env vars
- Add security permissions for SARIF upload in security workflow
- Document NPM_TOKEN requirement in release workflow

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-01 10:22:16 +08:00
Kyle Fang
f83027e79d feat: add comprehensive CI/CD pipeline with GitHub Actions
- Add CI workflow for testing, type checking, and building
- Add publish workflow for npm releases
- Add automated release workflow with changesets
- Add PR checks for changesets and formatting
- Add security scanning workflow
- Add documentation validation workflow
- Configure changesets for version management
- Add Prettier for code formatting
- Add unit tests for core and adapter packages
- Add contributing guidelines and release documentation
- Configure Dependabot for dependency updates
- Update README with CI badges

This establishes a complete CI/CD pipeline for automated testing,
versioning, and publishing of the React Telegram packages.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-01 10:10:22 +08:00
Kyle Fang
457f933273 refactor: reorganize into monorepo with Bun workspaces
- Split project into three packages:
  - @react-telegram/core: Core React reconciler
  - @react-telegram/mtcute-adapter: MTCute Telegram adapter
  - @react-telegram/examples: Example bots (private)
- Add <br /> tag support for line breaks
- Update all examples to use <br /> instead of {'\n'}
- Configure Bun workspaces for better package management
- Update imports to use package names instead of relative paths
- Update README with new installation instructions
- Remove test files (moved to separate testing setup)

BREAKING CHANGE: Package names changed from react-telegram to @react-telegram/*

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-01 09:58:46 +08:00
Kyle Fang
cd808b8d4f fix: input not persist after rerender 2025-07-01 09:30:49 +08:00
Kyle Fang
8c1b225e3a feat: add auto delete 2025-07-01 08:49:40 +08:00
Kyle Fang
782b63fced fix: resolve TypeScript errors in reconciler and mtcute-adapter
- Update MTCute imports to use correct types from @mtcute/tl
- Fix MessageEntity construction with proper discriminated union types
- Fix callback query data handling for string/Uint8Array
- Update inline keyboard markup structure
- Fix reconciler host config type issues
- Add @ts-expect-error for complex React reconciler types

Note: One persistence mode test is still failing - static content
in formatted elements loses children on re-render. This appears
to be a complex issue with how React's persistence mode handles
child reconciliation.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-30 20:58:50 +08:00
Kyle Fang
44559d345c fix: preserve static content in persistence mode during re-renders
- Update cloneInstance to properly handle keepChildren parameter
- Fix static content (bold, blockquote) losing children on re-render
- Add comprehensive tests for persistence mode behavior
- Ensure dynamic content updates while static content is preserved

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-30 19:40:18 +08:00
Kyle Fang
435696b86e feat: update types package 2025-06-30 18:49:25 +08:00
Kyle Fang
7469aa0ebf inital working version 2025-06-30 18:41:06 +08:00