Skip to content

Commit 6b65e95

Browse files
committed
docs: fix playground README formatting and standardize Storybook URLs
- Fix broken title in playground/vite-ts/README.md - Remove duplicated and malformed content - Standardize all Storybook URLs across documentation - Improve MIGRATION.md with version reference - Clean up formatting issues in various MD files
1 parent 3ef16f5 commit 6b65e95

File tree

5 files changed

+150
-15
lines changed

5 files changed

+150
-15
lines changed

DEVELOPMENT.md

Lines changed: 129 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Welcome to Open UI Kit development! This guide will help you set up your local development environment and understand our development workflow.
44

55
- [🛠️ Repository Setup](#%EF%B8%8F-repository-setup)
6+
- [📁 Project Structure](#-project-structure)
67
- [🎨 Style and Linting](#-style-and-linting)
78
- [👾 Development & 📚 Documentation](#-development-documentation)
89
- [🗂️ Testing](#%EF%B8%8F-testing)
@@ -33,7 +34,43 @@ nvm install
3334
yarn install
3435
```
3536

36-
## 📦 Package Structure
37+
## 📁 Project Structure
38+
39+
This monorepo is organized as follows:
40+
41+
```
42+
open-ui-kit/
43+
├── .github/ # GitHub templates and workflows
44+
│ ├── ISSUE_TEMPLATE/ # Issue templates (bug reports, feature requests, docs)
45+
│ ├── workflows/ # CI/CD GitHub Actions workflows
46+
│ └── dependabot.yml # Automated dependency updates
47+
├── .husky/ # Git hooks for code quality enforcement
48+
├── .vscode/ # VSCode workspace settings (optional)
49+
├── docs/ # Additional project documentation
50+
├── packages/
51+
│ └── open-ui-kit/ # 📦 @open-ui-kit/core - Main component library
52+
│ ├── src/ # Source code for components, themes, utilities
53+
│ ├── stories/ # Storybook stories for documentation
54+
│ └── tests/ # Unit and integration tests
55+
├── playground/
56+
│ └── vite-ts/ # 🎮 Development playground with Vite + TypeScript
57+
├── scripts/ # Build scripts and automation tools
58+
├── package.json # Root workspace configuration
59+
├── turbo.json # Turborepo build system configuration
60+
├── yarn.lock # Dependency lock file
61+
├── DEVELOPMENT.md # This file - development guidelines
62+
├── CONTRIBUTING.md # Contribution guidelines and processes
63+
└── README.md # Main project overview and setup
64+
```
65+
66+
### Key Directories
67+
68+
- **`packages/open-ui-kit/`** - The core component library where most development happens
69+
- **`playground/vite-ts/`** - Interactive development environment for testing components
70+
- **`.github/`** - CI/CD workflows, issue templates, and GitHub configuration
71+
- **`scripts/`** - Build and maintenance automation
72+
73+
### Main Packages
3774

3875
This monorepo contains the following main packages:
3976

@@ -76,7 +113,7 @@ cd open-ui-kit # Move into the cloned repository
76113
yarn install && yarn run build && yarn run storybook # Install & build deps and start Storybook
77114
```
78115

79-
The project's main branch Storybook documentation is hosted on [our Storybook instance](https://main--67e2c28f188630b706cee923.chromatic.com).
116+
The project's main branch Storybook documentation is hosted on [our Storybook instance](https://main--68cc22452afe30d90e4ca977.chromatic.com).
80117

81118
## 🗂️ Testing
82119

@@ -210,3 +247,93 @@ Releases are handled automatically through semantic-release when changes are mer
210247
},
211248
}
212249
```
250+
251+
3. **Creating New Components** - Follow the established file structure pattern:
252+
253+
When creating a new component, follow the structure used by existing components like `ActivityTimeline`. Each component should have its own directory with organized subfolders:
254+
255+
```
256+
packages/open-ui-kit/src/components/[component-name]/
257+
├── components/
258+
│ ├── [ComponentName].tsx # Main component implementation
259+
│ └── [SubComponent].tsx # Sub-components (if needed)
260+
├── types/
261+
│ ├── [ComponentName].types.ts # Main component type definitions
262+
│ └── [SubComponent].types.ts # Sub-component types (if needed)
263+
├── styles/
264+
│ └── [component-name].styles.ts # Component-specific styles
265+
├── utils/
266+
│ └── [component-name].utils.ts # Component-specific utilities
267+
├── stories/
268+
│ └── [ComponentName].stories.tsx # Storybook documentation
269+
├── __tests__/
270+
│ └── [ComponentName].test.tsx # Unit tests
271+
└── index.ts # Main export file
272+
```
273+
274+
**Required files for a new component:**
275+
276+
- **`index.ts`** - Export the component and its types
277+
```tsx
278+
export { ComponentName } from './components/ComponentName';
279+
export type { ComponentNameProps } from './types/ComponentName.types';
280+
```
281+
282+
- **`components/[ComponentName].tsx`** - Main component implementation
283+
```tsx
284+
import React from 'react';
285+
import { ComponentNameProps } from '../types/ComponentName.types';
286+
287+
export const ComponentName: React.FC<ComponentNameProps> = ({ ...props }) => {
288+
// Component implementation
289+
};
290+
```
291+
292+
- **`types/[ComponentName].types.ts`** - Type definitions
293+
```tsx
294+
export interface ComponentNameProps {
295+
// Component prop types
296+
}
297+
```
298+
299+
- **`__tests__/[ComponentName].test.tsx`** - Unit tests
300+
```tsx
301+
import { render, screen } from '@testing-library/react';
302+
import { ComponentName } from '../components/ComponentName';
303+
304+
describe('ComponentName', () => {
305+
it('renders correctly', () => {
306+
// Test implementation
307+
});
308+
});
309+
```
310+
311+
- **`stories/[ComponentName].stories.tsx`** - Storybook documentation
312+
```tsx
313+
import type { Meta, StoryObj } from '@storybook/react';
314+
import { ComponentName } from '../components/ComponentName';
315+
316+
const meta: Meta<typeof ComponentName> = {
317+
title: 'Components/ComponentName',
318+
component: ComponentName,
319+
};
320+
321+
export default meta;
322+
type Story = StoryObj<typeof meta>;
323+
324+
export const Default: Story = {
325+
args: {
326+
// Default props
327+
},
328+
};
329+
```
330+
331+
**Additional requirements:**
332+
- Export your component from `packages/open-ui-kit/src/components/index.ts`
333+
- Follow naming conventions: PascalCase for components, kebab-case for directories
334+
- Include comprehensive JSDoc comments for props and functionality
335+
- Organize types in the dedicated `types/` folder
336+
- Add component-specific styles to the `styles/` folder
337+
- Add component-specific utilities to the `utils/` folder
338+
- Organize sub-components within the same `components/` folder
339+

MIGRATION.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ Open UI Kit follows [Semantic Versioning](https://semver.org/):
1111

1212
## Current Version: 1.x
1313

14-
Open UI Kit is currently in its initial major version. This migration guide will be updated as new major versions are released.
14+
Open UI Kit is currently in its initial major version (1.x). This migration guide will be updated as new major versions are released.
15+
16+
**Current stable version**: Check the [latest release](https://github.com/outshift-open/open-ui-kit/releases) for the most up-to-date version information.
1517

1618
## Future Migration Planning
1719

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ npm install @open-ui-kit/core @mui/material @emotion/react @emotion/styled
5454
import { ThemeProvider, Button } from '@open-ui-kit/core';
5555
```
5656
57-
👉 **[View Full Installation Guide](https://main--67e2c28f188630b706cee923.chromatic.com/?path=/docs/overview-introduction--docs#-installation)**
57+
👉 **[View Full Installation Guide](https://main--68cc22452afe30d90e4ca977.chromatic.com/?path=/docs/overview-introduction--docs#-installation)**
5858
5959
## 🏗️ Architecture
6060
@@ -156,7 +156,7 @@ This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENS
156156
157157
## 🔗 Related Links
158158
159-
- 📚 **[Component Documentation](https://main--67e2c28f188630b706cee923.chromatic.com)** - Interactive Storybook
159+
- 📚 **[Component Documentation](https://main--68cc22452afe30d90e4ca977.chromatic.com)** - Interactive Storybook
160160
- 📋 **[Changelog](CHANGELOG.md)** - Release notes and version history
161161
- 🔄 **[Migration Guide](MIGRATION.md)** - Version upgrade instructions
162162
- 🎯 **[Material-UI](https://mui.com/)** - Foundation library
@@ -170,6 +170,6 @@ This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENS
170170
171171
*Empowering developers to build exceptional user experiences*
172172
173-
[🚀 Get Started](packages/open-ui-kit#quick-start) • [📚 Documentation](https://main--67e2c28f188630b706cee923.chromatic.com) • [🤝 Contribute](CONTRIBUTING.md) • [💬 Discussions](https://github.com/outshift-open/open-ui-kit/discussions)
173+
[🚀 Get Started](packages/open-ui-kit#quick-start) • [📚 Documentation](https://main--68cc22452afe30d90e4ca977.chromatic.com) • [🤝 Contribute](CONTRIBUTING.md) • [💬 Discussions](https://github.com/outshift-open/open-ui-kit/discussions)
174174
175175
</div>

packages/open-ui-kit/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ The library includes 50+ components organized into the following categories:
257257
**🔍 Specialized**
258258
- `Search Field`, `Autocomplete Tree`, `Date Time`, `Copy Button`, `Filters`
259259
260-
> **💡 Tip**: All components are fully documented with interactive examples in our [Storybook](https://main--67e2c28f188630b706cee923.chromatic.com).
260+
> **💡 Tip**: All components are fully documented with interactive examples in our [Storybook](https://main--68cc22452afe30d90e4ca977.chromatic.com).
261261
262262
## 📖 Documentation
263263
@@ -269,7 +269,7 @@ We use **Storybook** for comprehensive component documentation with live example
269269
yarn storybook
270270
```
271271
272-
🌐 **[View Live Documentation](https://main--67e2c28f188630b706cee923.chromatic.com)**
272+
🌐 **[View Live Documentation](https://main--68cc22452afe30d90e4ca977.chromatic.com)**
273273
274274
### What you'll find in Storybook:
275275
- 📖 **Component API docs** - Props, types, and usage examples
@@ -386,6 +386,6 @@ This project is licensed under the Apache License 2.0 - see the [LICENSE](../../
386386
387387
<br/>
388388
389-
[📚 Documentation](https://main--67e2c28f188630b706cee923.chromatic.com) • [🐛 Report Issues](https://github.com/outshift-open/open-ui-kit/issues) • [💬 Discussions](https://github.com/outshift-open/open-ui-kit/discussions)
389+
[📚 Documentation](https://main--68cc22452afe30d90e4ca977.chromatic.com) • [🐛 Report Issues](https://github.com/outshift-open/open-ui-kit/issues) • [💬 Discussions](https://github.com/outshift-open/open-ui-kit/discussions)
390390
391391
</div>

playground/vite-ts/README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Open UI Kit - Vite## The idea behind the example
1+
# Open UI Kit - Vite + TypeScript Example
2+
3+
## The idee example
24

35
This example demonstrates how to use Open UI Kit components in a Vite.js + TypeScript environment.
46

@@ -22,20 +24,18 @@ You now have a working example project!
2224

2325
**Next steps:**
2426
- Browse the [component documentation](https://github.com/outshift-open/open-ui-kit)
25-
- Check out the [Storybook examples](https://main--67e2c28f188630b706cee923.chromatic.com)
27+
- Check out the [Storybook examples](https://main--68cc22452afe30d90e4ca977.chromatic.com)
2628
- Read the [contributing guide](../../CONTRIBUTING.md)
2729

2830
## Learn more
2931

3032
- [Open UI Kit Documentation](https://github.com/outshift-open/open-ui-kit)
3133
- [Vite.js Documentation](https://vitejs.dev/)
32-
- [Material-UI Documentation](https://mui.com/)cript Example
33-
34-
A playground demonstrating Open UI Kit components with Vite.js and TypeScript.
34+
- [Material-UI Documentation](https://mui.com/)
3535

3636
## How to use
3737

38-
Download the example [or clone the repo](https://github.com/outshift-open/open-ui-kit):
38+
Clone the repository and navigate to the playground:
3939

4040
```bash
4141
# Clone the repository
@@ -47,6 +47,12 @@ yarn install
4747

4848
# Start development server
4949
yarn dev
50+
51+
# Build for production
52+
yarn build
53+
54+
# Preview production build
55+
yarn preview
5056
```
5157

5258
## The idea behind the example

0 commit comments

Comments
 (0)