Skip to content

Commit

Permalink
Merge pull request #2417 from Bedrock-Layouts:roadmap
Browse files Browse the repository at this point in the history
docs(docs): add roadmap page to doc site
  • Loading branch information
Jarvis1010 authored Mar 27, 2024
2 parents 211f0ec + 1bcc5ac commit 52bae4f
Show file tree
Hide file tree
Showing 4 changed files with 636 additions and 485 deletions.
6 changes: 4 additions & 2 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { dirname, join } from "path";

import type { InlineConfig } from "vite";

const turbosnap = require("vite-plugin-turbosnap");

export const stories = [
Expand All @@ -14,13 +15,14 @@ export const stories = [
"./pages/new-arrivals.mdx",
"../stories/**/*.@(mdx|stories.@(js|ts|tsx))",
"./pages/contributing.mdx",
"./pages/roadmap.mdx",
"../examples/examples.mdx",
"../examples/web.dev.mdx"
"../examples/web.dev.mdx",
];
export const addons = [
getAbsolutePath("@storybook/addon-essentials"),
getAbsolutePath("@chromaui/addon-visual-tests"),
getAbsolutePath("@storybook/addon-mdx-gfm")
getAbsolutePath("@storybook/addon-mdx-gfm"),
];

export const staticDirs = ["../public"];
Expand Down
68 changes: 68 additions & 0 deletions .storybook/pages/roadmap.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
import { Meta } from "@storybook/addon-docs";
import { Intl, NameSpace } from "../ui-components/Intl";
import { LocaleFab } from "../ui-components/LocaleFab";

<LocaleFab />

<NameSpace ns="roadmap" />

<Meta title="Overview/Roadmap" parameters={{ viewMode: "docs" }} />

# Roadmap

This is the roadmap for the next version of the library. It is subject to change as we get feedback from the community. If you have any suggestions or feedback, please open an issue on the GitHub repository.

## Planned Breaking Changes

There is a plan to make some breaking changes in the next version of the library. These changes are necessary to improve the library and make it more consistent.

The breaking changes are as follows:

- [x] deprecate components and hooks in React and Solid
- [x] `MasonryGrid`
- [x] `Padbox`
- [x] `AppBoundry`
- [x] `useForwardedRef`
- [x] `useResizeObserver`
- [x] `useContainerQuery`
- [x] `useStatefulRef`
- [x] `register-resize-callback`
- [ ] deprecate the `center-children` prop from the center components and recommend that they use the Stack component instead
- [x] document deprecation of original Solid repo and do PR at Solid Docs to point to monorepo where the solid components are now located
- [x] deprecate the `columns` prop from the columns components and recommend that they use the `colCount` prop instead
- [x] deprecate the `gutter` prop from applicable components and recommend that they use the `gap` prop instead
- [ ] deprecate the `noStretchColumns` prop from the `ColumnDrop` component and recommend that they use the `variant:centered` prop instead
- [ ] remove above deprecated components and hooks
- [ ] remove the `center-children` prop from the center components
- [ ] remove the `columns` prop from the columns components
- [ ] remove the `gutter` prop from applicable components
- [ ] remove the camelCase custom properties in favor of kebab-case custom properties, e.g. `--min-item-width` instead of `--minItemWidth`
- [ ] change the default alignment for the `Inline` and `InlineCluster` components to `center` instead of `start`
- [ ] change default widths for components to be `100%` instead of specific widths/heights
- [ ] remove the `noStretchColumns` prop from the `ColumnDrop` component
- [ ] remove the `data-bedrock-` css selectors in favor of `data-br-` css selectors
- [ ] remove the ThemeProvider component and related theme hooks
- [ ] make spacing constants able to be used by both react and solid. Also make a note that the spacing constants will no longer follow semver and will be updated as needed
- [ ] React and Solid will no longer use `top` and `bottom` props for slots and will instead export a component for the content that needs to be vertically centered

**Note:** The breaking changes will be released in a major version bump, so you will need to update your code to use the new version of the library. Also those items marked with a checkmark (deprecation items) have already been implemented and are available in the latest version of the library.

## Non-breaking Changes

The following are some of the non-breaking changes that are planned for the next version of the library. The items marked with a checkmark have already been implemented and are available in the latest version of the library.

- [x] Add `variant:masonry` to grid in both CSS and react/solid
- [x] Add support for `gap` prop
- [x] Add support for `colCount` prop
- [ ] Add support for the `variant:centered` prop for the `ColumnDrop` component to replace the `noStretchColumns` prop
- [ ] Add support for the "-br-" in the attributes e.g,. `data-br-grid` or `data-br-stack` instead of `data-bedrock-grid` or `data-bedrock-stack`
- [x] Add support for size props in CSS strings e.g., `data-br-grid="minItemWidth:sizeContent3"`
- [x] Add alignment props to stack component
- [x] add support for space-around for inline and inline cluster
- [x] Add support for Kebab case on custom properties

## Documentation Improvements

- [ ] Add more examples
- [ ] Update lessons to use React + Vite instead of create-react-app (probably in conjuction with breaking changes)
- [ ] Add more use cases
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,43 +43,43 @@
"@vitest/coverage-c8": "^0.33.0",
"dedent": "^1.3.0",
"highlight.js": "^11.5.0",
"nx": "^18.0.5",
"nx": "^18.1.3",
"open-props": "^1.6.20"
},
"devDependencies": {
"@chromaui/addon-visual-tests": "^1.0.0",
"@nrwl/nx-cloud": "^18.0.0",
"@solidjs/router": "^0.9.1",
"@storybook/addon-actions": "^8.0.0",
"@storybook/addon-essentials": "^8.0.0",
"@storybook/addon-links": "^8.0.0",
"@storybook/addon-mdx-gfm": "^8.0.0",
"@storybook/react": "^8.0.0",
"@storybook/react-vite": "^8.0.0",
"@storybook/theming": "^8.0.0",
"@storybook/addon-actions": "^8.0.4",
"@storybook/addon-essentials": "^8.0.4",
"@storybook/addon-links": "^8.0.4",
"@storybook/addon-mdx-gfm": "^8.0.4",
"@storybook/react": "^8.0.4",
"@storybook/react-vite": "^8.0.4",
"@storybook/theming": "^8.0.4",
"@types/dedent": "^0.7.0",
"@types/minify": "^9.0.0",
"@types/node": "^20.11.21",
"@types/react": "^18.2.63",
"@types/react-dom": "^18.2.20",
"@types/node": "^20.11.30",
"@types/react": "^18.2.72",
"@types/react-dom": "^18.2.22",
"@types/styled-components": "^5.1.12",
"@typescript-eslint/eslint-plugin": "^7.1.1",
"@typescript-eslint/parser": "^7.1.1",
"@typescript-eslint/eslint-plugin": "^7.4.0",
"@typescript-eslint/parser": "^7.4.0",
"@vitejs/plugin-react-refresh": "^1.3.6",
"@vitest/coverage-v8": "^0.34.1",
"chromatic": "^11.0.3",
"commitizen": "^4.2.3",
"concat": "^1.0.3",
"cssnano": "^6.0.5",
"cssnano": "^6.1.2",
"cz-conventional-changelog": "^3.2.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.0.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-functional": "^6.0.1",
"eslint-plugin-functional": "^6.3.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react": "^7.34.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-storybook": "^0.8.0",
"husky": "^9.0.11",
Expand All @@ -100,13 +100,13 @@
"react-i18next": "^14.0.5",
"react-test-renderer": "^18.2.0",
"rimraf": "^5.0.1",
"solid-js": "^1.8.14",
"solid-js": "^1.8.16",
"solid-styled-components": "^0.28.5",
"storybook": "^8.0.0",
"storybook": "^8.0.4",
"styled-components": "^6.0.2",
"ts-node": "^10.9.1",
"typescript": "^5.1.6",
"typescript-eslint": "^7.1.1",
"typescript-eslint": "^7.4.0",
"vite": "^5.1.5",
"vite-plugin-solid": "^2.5.0",
"vite-plugin-turbosnap": "^1.0.0",
Expand Down
Loading

0 comments on commit 52bae4f

Please sign in to comment.