create-bluecopa-react-app 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,11 +6,11 @@ A production-ready React template with React Router for building modern BlueCopa
6
6
 
7
7
  This template now uses the latest Bluecopa design system with:
8
8
  - **Navy Blue Header**: Uses the official Bluecopa navy color (`#041e42`) for headers and navigation
9
- - **Modern Card Layout**: Clean, borderless cards with subtle shadows
10
- - **Consistent Spacing**: Improved spacing and layout following the latest app design
11
- - **User Profile Integration**: Modern user dropdown with avatar and profile information
12
- - **Search & Notifications**: Built-in search bar and notification system
13
- - **Responsive Design**: Mobile-first approach with proper responsive breakpoints
9
+ - **Modern Card Layout**: Clean, borderless cards with subtle shadows and consistent padding
10
+ - **Consistent Spacing**: Improved spacing and layout following the latest app design system
11
+ - **User Profile Integration**: Modern user dropdown with avatar, profile information, and logout
12
+ - **Search & Notifications**: Built-in search bar and notification system with Radix UI
13
+ - **Responsive Design**: Mobile-first approach with proper responsive breakpoints and device testing
14
14
 
15
15
  ## 🚀 Quick Start
16
16
 
@@ -36,17 +36,6 @@ npx create-bluecopa-react-app my-dashboard
36
36
  - npm or pnpm
37
37
  - Access to Bluecopa workspace
38
38
 
39
- ### Installation
40
-
41
- 1. **Clone or copy the template**:
42
- ```bash
43
- # If using as part of the blui monorepo
44
- cd packages/boilerplate/react/templates/react-router
45
-
46
- # Or copy the template to your project location
47
- cp -r packages/boilerplate/react/templates/react-router my-bluecopa-app
48
- cd my-bluecopa-app
49
- ```
50
39
 
51
40
  2. **Install dependencies**:
52
41
  ```bash
@@ -112,9 +101,11 @@ npx create-bluecopa-react-app my-dashboard
112
101
 
113
102
  ```
114
103
  src/
115
- ├── components/ # Reusable UI components
116
- │ ├── ui/ # Base UI components (buttons, cards, etc.)
117
- └── navbar.tsx # Navigation component
104
+ ├── components/ # Reusable components
105
+ │ ├── layout/ # Layout components (dashboard-header.tsx, dashboard-layout.tsx, sidebar.tsx)
106
+ ├── page/ # Page-specific components (dashboard.tsx, navbar.tsx)
107
+ │ ├── tables/ # Table components (data-grid.tsx)
108
+ │ └── ui/ # Base UI components (alert.tsx, avatar.tsx, badge.tsx, bluecopa-logo.tsx, button.tsx, card.tsx, dropdown-menu.tsx, input.tsx, label.tsx, select.tsx)
118
109
  ├── hooks/ # Custom React hooks
119
110
  │ └── use-api.ts # Bluecopa API hooks
120
111
  ├── lib/ # Utility functions
@@ -125,9 +116,12 @@ src/
125
116
  ├── providers/ # React context providers
126
117
  │ └── query-provider.tsx # TanStack Query provider
127
118
  ├── types/ # TypeScript type definitions
119
+ │ └── api.ts # API type definitions
128
120
  ├── App.tsx # Main app component with routing
121
+ ├── index.css # Global styles
129
122
  ├── main.tsx # Application entry point
130
- └── index.css # Global styles
123
+ ├── single-spa.tsx # Single-spa configuration
124
+ └── vite-env.d.ts # Vite environment types
131
125
  ```
132
126
 
133
127
  ## 🔧 Configuration
@@ -178,7 +172,7 @@ export default function App() {
178
172
  ```
179
173
 
180
174
  ### Adding Navigation Links
181
- Update the navigation in `src/components/navbar.tsx`:
175
+ Update the navigation in `src/components/page/navbar.tsx`:
182
176
 
183
177
  ```tsx
184
178
  const navigation = [
@@ -235,14 +229,20 @@ module.exports = {
235
229
  }
236
230
  ```
237
231
 
238
- ## 🚀 Deployment
232
+ ## 🚀 Deployment & Production
239
233
 
240
234
  ### Build for Production
241
235
  ```bash
242
236
  npm run build
243
237
  ```
244
238
 
245
- The built files will be in the `dist/` directory.
239
+ The production-ready files will be output to the `dist/` directory with optimized bundling and minification.
240
+
241
+ ### Production Best Practices
242
+ - Validate environment variables before building
243
+ - Test workflow triggers in staging environment
244
+ - Monitor bundle size with `npm run build --report`
245
+ - Use version control for deployment artifacts
246
246
 
247
247
  ### Deploy to Vercel
248
248
  1. Push your code to GitHub
@@ -261,21 +261,3 @@ The built files will be in the `dist/` directory.
261
261
  - Use environment variables for all sensitive data
262
262
  - Rotate API tokens regularly
263
263
  - Use different tokens for development and production
264
-
265
- ## 🤝 Contributing
266
-
267
- 1. Fork the repository
268
- 2. Create a feature branch
269
- 3. Make your changes
270
- 4. Add tests if applicable
271
- 5. Submit a pull request
272
-
273
- ## 📄 License
274
-
275
- This template is part of the Bluecopa ecosystem and follows the project's licensing terms.
276
-
277
- ## 🆘 Support
278
-
279
- - Check the [Bluecopa documentation](https://docs.bluecopa.com)
280
- - Review the [React Router documentation](https://reactrouter.com)
281
- - Open issues in the project repository