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

Add stories for UT-HAI's client-deliberation fork of client-participation #7

Merged
merged 36 commits into from
Oct 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
14a99a8
Added stories for UT-HAI's client-deliberation fork of client-partici…
patcon Oct 6, 2024
b8ced4d
Oops. Small prop typo.
patcon Oct 6, 2024
546909e
Added branch build script to allow other PR to work.
patcon Oct 6, 2024
15c26b1
Fixed output dir to make other PR work.
patcon Oct 6, 2024
bfb5900
Allow submodules to sync properly. (other PR)
patcon Oct 6, 2024
efb4cef
Added a stub overview page for the whole storybook.
patcon Oct 7, 2024
7f5f8fe
Merge branch 'main' into add-UT-HAI-client-deliberation
patcon Oct 7, 2024
6a2471b
Fixing storybook config for multi-branch deploy.
patcon Oct 7, 2024
32a4c87
Copying multi-brain things to this branch for testing.
patcon Oct 7, 2024
d440806
Remove github deploy sending for now.
patcon Oct 8, 2024
5ab870e
Base to using main branch as default.
patcon Oct 8, 2024
b3a38e2
Added smartness to preview.js to detect github builds and prepare for…
patcon Oct 7, 2024
18e10c5
Removed localhost debug for multi-branch.
patcon Oct 8, 2024
3411159
Added style fix for indented bullet spacing in MDX.
patcon Oct 8, 2024
f7b8503
Migrated to UT-HAI using Tutorial branch.
patcon Oct 8, 2024
95b1653
Updated client-deliberation Overview doc.
patcon Oct 8, 2024
5548345
Added new components for client-deliberation.
patcon Oct 8, 2024
b7e0f8d
Merge branch 'main' into add-UT-HAI-client-deliberation
patcon Oct 8, 2024
9b97afb
Merge branch 'main' into add-UT-HAI-client-deliberation
patcon Oct 8, 2024
7eb657a
Trying to do submodule command first.
patcon Oct 8, 2024
fd56893
Trying to bring submodule init into branch switcher pkg.
patcon Oct 8, 2024
5506166
Merge branch 'main' into add-UT-HAI-client-deliberation
patcon Oct 8, 2024
62f954d
Merge branch 'main' into add-UT-HAI-client-deliberation
patcon Oct 8, 2024
a6e7570
Merge branch 'main' into add-UT-HAI-client-deliberation
patcon Oct 8, 2024
d47673f
Merge branch 'main' into add-UT-HAI-client-deliberation
patcon Oct 8, 2024
7beb4f9
Merge branch 'main' into add-UT-HAI-client-deliberation
patcon Oct 8, 2024
b697130
Merge branch 'main' into add-UT-HAI-client-deliberation
patcon Oct 8, 2024
3efac20
Shift to using patcon's fork while waiting for upstream merge.
patcon Oct 8, 2024
9ae54d9
Added remaining placeholder components from UT-HAI codebase.
patcon Oct 8, 2024
7b8be47
Merge branch 'main' into add-UT-HAI-client-deliberation
patcon Oct 10, 2024
86a22ee
Moving git submodule to codebases dir.
patcon Oct 10, 2024
06fd4d0
Renamed imports to new dir.
patcon Oct 10, 2024
e103026
Merge branch 'main' into add-UT-HAI-client-deliberation
patcon Oct 11, 2024
f5dfd90
Merge branch 'main' into add-UT-HAI-client-deliberation
patcon Oct 11, 2024
673410a
Migrated client-deliberation into UT-HAI subdir.
patcon Oct 11, 2024
222c164
Got barebones stories working for most of remaining UT-HAI components.
patcon Oct 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "polis"]
path = codebases/compdem
url = https://github.com/CivicTechTO/polis.git
[submodule "polis-UT-HAI"]
path = codebases/UT-HAI
url = https://github.com/patcon/polis.git
11 changes: 9 additions & 2 deletions .storybook/decorators.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
import React from 'react'
import { ThemeProvider } from 'theme-ui'
import theme from '../codebases/compdem/client-admin/src/theme'
import compdemAdminTheme from '../codebases/compdem/client-admin/src/theme'
import haiDelibTheme from '../codebases/UT-HAI/client-deliberation/src/theme'
import { Provider as ReduxProvider } from 'react-redux'
import configureStore from '../codebases/compdem/client-admin/src/store'

const store = configureStore()

export const withThemeUi = (Story) => (
<ThemeProvider theme={theme}>
<ThemeProvider theme={compdemAdminTheme}>
<Story />
</ThemeProvider>
)

export const withDelibThemeUi = (Story) => (
<ThemeProvider theme={haiDelibTheme}>
<Story />
</ThemeProvider>
)
Expand Down
2 changes: 2 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/** @type { import('@storybook/react').Preview } */
import "./style.css"

const isGithubBuild = !!process.env["GITHUB_REPOSITORY"]
const preview = {
parameters: {
Expand Down
8 changes: 8 additions & 0 deletions .storybook/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** To remove weird spacing in indented lists of MSX. **/
.sbdocs-content :where(
ul:not(
.sb-anchor, .sb-unstyled, .sb-unstyled ul
)
) :first-of-type {
margin-bottom: 0;
}
1 change: 1 addition & 0 deletions codebases/UT-HAI
Submodule UT-HAI added at 14f842
Loading