Skip to content

Commit

Permalink
backport of commit 8a9d58a (#22409)
Browse files Browse the repository at this point in the history
Co-authored-by: Phil Renaud <phil.renaud@hashicorp.com>
  • Loading branch information
hc-github-team-nomad-core and philrenaud committed May 30, 2024
1 parent f10b1d7 commit 331cf22
Show file tree
Hide file tree
Showing 54 changed files with 150 additions and 11,240 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ rkt-*
# misc
/ui/.sass-cache
/ui/.eslintcache
/ui/.storybook/preview-head.html
/ui/connect.lock
/ui/coverage/*
/ui/libpeerconnection.log
Expand Down
11 changes: 0 additions & 11 deletions ui/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,6 @@ module.exports = {
'node/no-unpublished-require': 'off',
},
},
{
files: ['stories/**/*.js'],
parserOptions: {
sourceType: 'module',
},
env: {
browser: false,
node: true,
},
plugins: ['node'],
},
{
// Test files:
files: ['tests/**/*-test.{js,ts}'],
Expand Down
23 changes: 0 additions & 23 deletions ui/.storybook/main.js

This file was deleted.

46 changes: 0 additions & 46 deletions ui/.storybook/preview.js

This file was deleted.

41 changes: 0 additions & 41 deletions ui/.storybook/theme.js

This file was deleted.

5 changes: 1 addition & 4 deletions ui/.vercel/build.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1

STORYBOOK_LINK=true ember build
ember build
mkdir -p ui-dist/ui
mv dist/* ui-dist/ui/

yarn build-storybook
mv storybook-static ui-dist/storybook/
6 changes: 0 additions & 6 deletions ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,6 @@ Nomad UI releases are in lockstep with Nomad releases and are integrated into th

- UI branches should be prefix with `f-ui-` for feature work and `b-ui-` for bug fixes. This instructs CI to skip running nomad backend tests.

### Storybook UI Library

The Storybook project provides a browser to see what components and patterns are present in the application and how to use them. You can run it locally with `yarn storybook` after you have `ember serve` running. The latest version from the `main` branch is at [`nomad-storybook-and-ui.vercel.app/storybook/`](https://nomad-storybook-and-ui.vercel.app/storybook/).

To generate a new story for a component, run `ember generate story component-name`. You can use the existing stories as a guide.

### Troubleshooting

#### The UI is running, but none of the API requests are working
Expand Down
23 changes: 0 additions & 23 deletions ui/app/helpers/all-icons.js

This file was deleted.

3 changes: 0 additions & 3 deletions ui/app/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,3 @@
@import './components';
@import '@hashicorp/design-system-components';
@import './charts';

// Only necessary in dev
@import './storybook.scss';
199 changes: 0 additions & 199 deletions ui/app/styles/storybook.scss

This file was deleted.

Loading

0 comments on commit 331cf22

Please sign in to comment.