Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/v8 #538

Draft
wants to merge 114 commits into
base: next
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
c7c8d88
v7 init
dannyhw Jul 30, 2023
bd8d3da
fix
dannyhw Jul 30, 2023
d0476ea
remove unused
dannyhw Jul 30, 2023
e9804f7
fix: story render
dannyhw Jul 30, 2023
07cd886
controls
dannyhw Jul 30, 2023
36893ef
actions
dannyhw Jul 30, 2023
f6c9d0d
fix: argenchancer import
dannyhw Jul 30, 2023
ce6759e
backgrounds
dannyhw Jul 30, 2023
3995ed0
fix remaining addons
dannyhw Jul 30, 2023
dabdf49
fix: tests
dannyhw Jul 30, 2023
3a51176
remove client-api
dannyhw Aug 2, 2023
8496cdb
remove yarn cache
dannyhw Aug 2, 2023
5663e06
hot/dispose
dannyhw Aug 4, 2023
583d2b8
Merge remote-tracking branch 'origin/next' into feat/v7
dannyhw Aug 4, 2023
9cbebc2
Merge remote-tracking branch 'origin/next' into feat/v7
dannyhw Aug 4, 2023
a16d060
v7.0.0-alpha.0
dannyhw Aug 4, 2023
3db81f0
stories of hack
dannyhw Aug 6, 2023
c4d6504
remove console.log fix
dannyhw Aug 6, 2023
bb9ed13
fix: stories of with loadAddedExports in start
dannyhw Aug 7, 2023
6e25726
v7.0.0-alpha.1
dannyhw Aug 7, 2023
39f5653
fix: update snapshots
dannyhw Aug 7, 2023
cb47081
use addons.add
dannyhw Aug 7, 2023
3b0607a
fix: comsthing
dannyhw Aug 9, 2023
284fd8a
v7.0.0-alpha.2
dannyhw Aug 9, 2023
caa9868
use manager api
dannyhw Aug 9, 2023
965a875
v7.0.0-alpha.3
dannyhw Aug 9, 2023
3d34bdb
setstory fix/hack
dannyhw Aug 13, 2023
5ddd20b
remove log
dannyhw Aug 13, 2023
eb7e4f2
v7.0.0-alpha.4
dannyhw Aug 13, 2023
3e4e301
try again
dannyhw Aug 13, 2023
7e6db94
v7.0.0-alpha.5
dannyhw Aug 13, 2023
e3c9288
feat/v7 store7 (#509)
dannyhw Oct 15, 2023
13c1081
fix: user channel wasnt working
dannyhw Oct 15, 2023
b17a6c6
fix: deprecation warning
dannyhw Oct 15, 2023
7f5728a
note
dannyhw Oct 15, 2023
297efe8
fix: notes markdown and add error boundaries
dannyhw Oct 16, 2023
6472ca1
fix: set channel on both preview and manager and revert store.channel
dannyhw Oct 22, 2023
002ec8d
fix: actions dont clear
dannyhw Oct 22, 2023
962fd39
Merge remote-tracking branch 'origin/next' into feat/v7
dannyhw Oct 22, 2023
52baead
fix: broken empty config test
dannyhw Oct 22, 2023
b934d12
test: initial generation tests
dannyhw Oct 22, 2023
5b63fc5
fix: only require preview if it exists
dannyhw Oct 22, 2023
98ada29
tests: comment out absolute test
dannyhw Oct 22, 2023
5fc1996
fix: peer
dannyhw Oct 22, 2023
07aa303
fix: peer
dannyhw Oct 22, 2023
e3e0ae9
lock
dannyhw Oct 28, 2023
d0d09fc
v7.0.0-alpha.6
dannyhw Oct 28, 2023
e4d59eb
fix: make actions and controls regular deps for the addons
dannyhw Oct 28, 2023
1e3f579
v7.0.0-alpha.7
dannyhw Oct 28, 2023
a3038aa
fix: missing story error
dannyhw Oct 29, 2023
c383729
v7.0.0-alpha.8
dannyhw Oct 29, 2023
0f83a20
update to alpha 6
dannyhw Dec 17, 2023
e143b04
feat: initial adjustments to server
dannyhw Dec 20, 2023
77ceb0d
chore: update to 7.6.7
dannyhw Jan 2, 2024
da1c920
v7.6.7-alpha.0
dannyhw Jan 2, 2024
679f4b8
requires
dannyhw Jan 2, 2024
c3d9608
v7.6.7-alpha.1
dannyhw Jan 2, 2024
365651b
Merge remote-tracking branch 'origin/next' into feat/v7
dannyhw Jan 2, 2024
dc7661c
start new server implementation
dannyhw Jan 7, 2024
15c4e56
fix: 7.6.8 resolves globals resolution
dannyhw Jan 14, 2024
4968705
fix: resend channel events (controls working, actions not)
dannyhw Jan 15, 2024
3ebf30c
fix: more server progress
dannyhw Jan 15, 2024
c89d260
using addon react native server
dannyhw Jan 15, 2024
9d4a0f4
remove server in favour of addon server
dannyhw Jan 15, 2024
113d7fc
lock
dannyhw Jan 15, 2024
17607f9
fix: tests
dannyhw Jan 15, 2024
1fd96da
v7.6.8-alpha.0
dannyhw Jan 15, 2024
181b1aa
fix: knobs fix and get latest server version
dannyhw Jan 15, 2024
4f4da4f
fix: version
dannyhw Jan 16, 2024
a1b8c3b
fix: patch annoying warning
dannyhw Jan 16, 2024
b0c0513
fix: patch annoying warning
dannyhw Jan 16, 2024
921116d
test out example of not bundling sb code
dannyhw Jan 16, 2024
6c7852f
remove log
dannyhw Jan 16, 2024
55f4892
fix: animation style type
dannyhw Jan 16, 2024
06c547f
docs: update things
dannyhw Jan 17, 2024
b067bf0
fix: types
dannyhw Jan 17, 2024
ea5f98c
fix: another type
dannyhw Jan 17, 2024
99b82f1
fix: update version
dannyhw Jan 17, 2024
d458704
v7.6.9-alpha.0
dannyhw Jan 17, 2024
301aa6e
refactor: use storybook/react types
dannyhw Jan 18, 2024
ebae4b3
chore: update storybook version
dannyhw Jan 19, 2024
d48243f
v7.6.10-alpha.0
dannyhw Jan 19, 2024
1911c47
docs: migration guide
dannyhw Jan 20, 2024
83ae5a1
fix: update addons readme
dannyhw Jan 20, 2024
c71a8ff
make storage configurable
patlux Nov 21, 2023
625f4d7
Merge remote-tracking branch 'origin/next' into feat/v7
dannyhw Jan 20, 2024
ff4038f
fix: warning when storage is not set
dannyhw Jan 20, 2024
5cec081
docs: more stuff
dannyhw Jan 20, 2024
988171a
empty test
dannyhw Jan 20, 2024
8b2e967
v7.6.10-alpha.1
dannyhw Jan 20, 2024
182c6e6
feat: first steps for v8
dannyhw Jan 21, 2024
90c9a2f
fix: story loading
dannyhw Jan 22, 2024
871c653
merge main
dannyhw Jan 29, 2024
2393b73
Merge remote-tracking branch 'origin/next' into feat/v8
dannyhw Jan 29, 2024
71c280a
regen
dannyhw Jan 29, 2024
c9e13d9
wip
dannyhw Jan 29, 2024
af939b2
Merge remote-tracking branch 'origin/next' into feat/v8
dannyhw Jan 30, 2024
612cdd8
Merge remote-tracking branch 'origin/next' into feat/v8
dannyhw Jan 31, 2024
14ffe40
v8.0.0-alpha.0
dannyhw Jan 31, 2024
c214e9d
fix: example app
dannyhw Feb 1, 2024
94e5983
feat: update to v8 beta
dannyhw Feb 2, 2024
0441ccd
Merge remote-tracking branch 'origin/next' into feat/v8
dannyhw Mar 3, 2024
19a0751
feat: update
dannyhw Mar 3, 2024
1865884
v8.0.0-alpha.1
dannyhw Mar 3, 2024
0d5e5b6
Merge remote-tracking branch 'origin/next' into feat/v8
dannyhw Mar 7, 2024
6f18953
v8.0.0-alpha.2
dannyhw Mar 7, 2024
582329c
Merge remote-tracking branch 'origin/next' into feat/v8
dannyhw Mar 9, 2024
f4a1516
fix: update to latest rc
dannyhw Mar 9, 2024
1695965
Feat/v8 UI (#564)
dannyhw Apr 4, 2024
bf76948
Merge remote-tracking branch 'origin/next' into feat/v8
dannyhw Apr 4, 2024
9e1b8ee
Merge remote-tracking branch 'origin/next' into feat/v8
dannyhw May 27, 2024
304f40a
fix: update versions and convert color picker to ts
dannyhw May 27, 2024
d426c91
fix: tests
dannyhw May 27, 2024
62f5da8
keep old color
dannyhw May 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 7 additions & 10 deletions ROADMAP.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
# Roadmap

Now that V6.5 is ready, we're looking to the future. Here's what we're working on next:

- Firstly stablise the V6.5 release
- Version 7
- Support story categorisation for more organisation in the story list sidebar
- Experiment with use of metro’s experimental `require.context` to simplify story imports
- Better testing support, potentially support interaction tests with the play function
- Better integration with `@storybook/addon-react-native-web`
- Better way to display addons to avoid shrinking the preview
- … and more
- [x] Create a roadmap
- [ ] UI overhaul
- [ ] Redo theming
- [ ] integrate reanimated and gorhom as new dependencies
- [ ] New storybook/react-native-ui library for ondevice ui components
- [ ] implement new ondevice ui based on storybook v8 mobile design
- [ ] improve controls api implementation to match more closely web api
14 changes: 5 additions & 9 deletions examples/expo-example/.storybook-web/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,24 @@ const main: ServerStorybookConfig = {
addons: [
getAbsolutePath('@storybook/addon-essentials'),
getAbsolutePath('@storybook/addon-interactions'),
getAbsolutePath('@storybook/addon-react-native-web'),
'@storybook/addon-react-native-web',
// note why does this break with get absolute?
'@storybook/addon-react-native-server',
],
// logLevel: 'debug',
framework: {
name: '@storybook/react-webpack5',
options: {
builder: {
useSWC: true,
},
},
options: {},
},

reactNativeServerOptions: {
host: 'localhost',
port: 7007,
},

docs: {
autodocs: 'tag',
},
// docs: {
// autodocs: 'tag',
// },
};

export default main;
2 changes: 1 addition & 1 deletion examples/expo-example/.storybook/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const StorybookUIRoot = view.getStorybookUI({
getItem: AsyncStorage.getItem,
setItem: AsyncStorage.setItem,
},
enableWebsockets: true,
// enableWebsockets: true,

// initialSelection: { kind: 'TextInput', name: 'Basic' },
// isUIHidden: true,
Expand Down
13 changes: 0 additions & 13 deletions examples/expo-example/.storybook/indexV6Mode.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions examples/expo-example/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { StorybookConfig } from '@storybook/react-native';
const main: StorybookConfig = {
stories: [
'../components/**/*.stories.?(ts|tsx|js|jsx)',
'../../../packages/react-native-ui/**/*.stories.?(ts|tsx|js|jsx)',
{
directory: '../other_components',
files: '**/*.stories.?(ts|tsx|js|jsx)',
Expand All @@ -16,11 +17,10 @@ const main: StorybookConfig = {
// '../components/**/*.storiesof.?(ts|tsx|js|jsx)',
],
addons: [
'@storybook/addon-ondevice-notes',
'@storybook/addon-ondevice-controls',
'@storybook/addon-ondevice-knobs',
'@storybook/addon-ondevice-backgrounds',
'@storybook/addon-ondevice-actions',
'@storybook/addon-ondevice-notes',
],
reactNative: {
playFn: false,
Expand Down
35 changes: 16 additions & 19 deletions examples/expo-example/.storybook/storybook.requires.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
/* do not change this file, it is auto generated by storybook. */

import {
start,
prepareStories,
getProjectAnnotations,
} from "@storybook/react-native";
import { start, updateView } from "@storybook/react-native";

import "@storybook/addon-ondevice-notes/register";
import "@storybook/addon-ondevice-controls/register";
import "@storybook/addon-ondevice-knobs/register";
import "@storybook/addon-ondevice-backgrounds/register";
import "@storybook/addon-ondevice-actions/register";
import "@storybook/addon-ondevice-notes/register";

const normalizedStories = [
{
Expand All @@ -26,6 +21,19 @@ const normalizedStories = [
/^\.(?:(?:^|\/|(?:(?:(?!(?:^|\/)\.).)*?)\/)(?!\.)(?=.)[^/]*?\.stories\.(?:ts|tsx|js|jsx)?)$/
),
},
{
titlePrefix: "",
directory: "../../packages/react-native-ui",
files: "**/*.stories.?(ts|tsx|js|jsx)",
importPathMatcher:
/^\.(?:(?:^|\/|(?:(?:(?!(?:^|\/)\.).)*?)\/)(?!\.)(?=.)[^/]*?\.stories\.(?:ts|tsx|js|jsx)?)$/,
// @ts-ignore
req: require.context(
"../../../packages/react-native-ui",
true,
/^\.(?:(?:^|\/|(?:(?:(?!(?:^|\/)\.).)*?)\/)(?!\.)(?=.)[^/]*?\.stories\.(?:ts|tsx|js|jsx)?)$/
),
},
{
titlePrefix: "OtherComponents",
directory: "./other_components",
Expand Down Expand Up @@ -66,18 +74,7 @@ if (!global.view) {
options,
});
} else {
const { importMap } = prepareStories({
storyEntries: normalizedStories,
options,
});

global.view._preview.onStoriesChanged({
importFn: async (importPath: string) => importMap[importPath],
});

global.view._preview.onGetProjectAnnotationsChanged({
getProjectAnnotations: getProjectAnnotations(global.view, annotations),
});
updateView(global.view, annotations, normalizedStories, options);
}

export const view = global.view;
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import type { Meta, StoryObj } from '@storybook/react';

import { ActionButton } from './Actions';

const meta = {
title: 'ActionButton',
component: ActionButton,
argTypes: {
onPress: { action: 'pressed the button' },
onPress: { action: 'pressed' },
},
args: {
text: 'Press me!',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React from 'react';
import { TouchableOpacity, Text, StyleSheet } from 'react-native';

interface ActionButtonProps {
onPress: () => void;
onPress?: () => void;
text: string;
}

Expand Down

This file was deleted.

34 changes: 0 additions & 34 deletions examples/expo-example/components/KnobsExample/KnobsExample.js

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const First: StoryObj<typeof MyComponent> = {
};

export const Second: StoryObj<typeof MyComponent> = {
storyName: 'Second Story',
name: 'Second Story',
args: {
text: 'Second',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const First: StoryObj<typeof MyComponent> = {
};

export const Second: StoryObj<typeof MyComponent> = {
storyName: 'Second Story',
name: 'Second Story',
args: {
text: 'Second',
},
Expand Down