Skip to content

Commit

Permalink
Merge branch 'main' into shell
Browse files Browse the repository at this point in the history
  • Loading branch information
vtsaplin committed Nov 23, 2023
2 parents 4efb689 + 98d4ae0 commit 3ef4fff
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 178 deletions.
60 changes: 0 additions & 60 deletions .github/workflows/deploy_prod.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/deploy_qa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy to QA

on:
pull_request:
branches:
- main
types: [closed]

jobs:
deploy:
if: ${{ github.event.pull_request.merged }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Run npm scripts
env:
CI: true
AIO_RUNTIME_AUTH: ${{ secrets.AIO_RUNTIME_AUTH_QA }}
AIO_RUNTIME_NAMESPACE: 245265-879aquaant-qa
AIO_RUNTIME_APIHOST: 'https://adobeioruntime.net'
run: |
npm install
npm run grammar
npm run build
npm run lint
npm run test
npm run deploy
62 changes: 0 additions & 62 deletions .github/workflows/deploy_stage.yml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/pr_test.yml

This file was deleted.

18 changes: 10 additions & 8 deletions .github/workflows/pr_test_frontend.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
name: Frontend Test
name: Frontend

on:
pull_request:
branches:
- "main"

jobs:
linting:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- run: npm install
- run: npm run grammar
- run: npm run build
- run: npm run lint
- run: npm run test
- name: Run npm scripts
env:
CI: true
CI: true
run: |
npm install
npm run grammar
npm run build
npm run lint
npm run test
1 change: 1 addition & 0 deletions web-src/src/components/InputsView.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ export function InputsView({ gridColumn }) {
return createInputComponent(type, name, label, params, value, onChange);
})
}
<h3 style={{ alignSelf: 'start', marginBottom: '10px' }}>Advanced</h3>
<TemperatureSlider/>
</Flex>
);
Expand Down
4 changes: 4 additions & 0 deletions web-src/src/components/TemperatureSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,17 @@ import { useRecoilState } from 'recoil';
import {
TEMPERATURE_MAX, TEMPERATURE_MIN, temperatureState,
} from '../state/TemperatureState.js';
import { DescriptionLabel } from './DescriptionLabel.js';

const TEMPERATURE_DESC = 'A higher temperature strays from the prompt and leads to more randomness and creativity from the LLM';

export function TemperatureSlider() {
const [temperature, setTemperature] = useRecoilState(temperatureState);
return (
<Slider
UNSAFE_className="creativity-slider"
label="Temperature"
contextualHelp={<DescriptionLabel description={TEMPERATURE_DESC}/>}
minValue={TEMPERATURE_MIN}
maxValue={TEMPERATURE_MAX}
isFilled={true}
Expand Down

0 comments on commit 3ef4fff

Please sign in to comment.