Skip to content
This repository was archived by the owner on Jan 12, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 3 additions & 8 deletions sourceme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,15 @@ optic_build() {
optic_workspace_build
)
}

optic_build_with_linked_core() {
(
set -o errexit
cd "$OPTIC_SRC_DIR"

yarn link @useoptic/domain
yarn link @useoptic/domain-types
yarn link @useoptic/domain-utilities

yarn install

optic_workspace_clean
yarn workspaces run ws:linkDomain
yarn install
optic_workspace_build

)
}

Expand Down
5 changes: 3 additions & 2 deletions workspaces/agent-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@useoptic/agent-cli",
"version": "8.2.4",
"version": "8.2.5",
"author": "@useoptic",
"bin": {
"optic-agent": "./bin/run"
Expand All @@ -15,7 +15,7 @@
"@oclif/command": "^1",
"@oclif/config": "^1",
"@oclif/plugin-help": "^3",
"@useoptic/cli-shared": "8.2.4",
"@useoptic/cli-shared": "8.2.5",
"dotenv": "^8.2.0",
"jwt-decode": "^2.2.0",
"tslib": "^1",
Expand Down Expand Up @@ -67,6 +67,7 @@
"version": "oclif-dev readme && git add README.md",
"ws:build": "tsc -b --verbose",
"ws:clean": "rm -rf lib",
"ws:linkDomain": "yarn link @useoptic/domain @useoptic/domain-types @useoptic/domain-utilities",
"ws:test": "echo skipping tests"
},
"types": "lib/index.d.ts"
Expand Down
7 changes: 4 additions & 3 deletions workspaces/ci-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@useoptic/ci-cli",
"version": "8.2.4",
"version": "8.2.5",
"author": "@useoptic",
"bin": {
"optic-ci": "./bin/run"
Expand All @@ -15,8 +15,8 @@
"@oclif/command": "^1",
"@oclif/config": "^1",
"@oclif/plugin-help": "^3",
"@useoptic/cli-config": "8.2.4",
"@useoptic/cli-shared": "8.2.4",
"@useoptic/cli-config": "8.2.5",
"@useoptic/cli-shared": "8.2.5",
"dotenv": "^8.2.0",
"jwt-decode": "^2.2.0",
"tslib": "^1",
Expand Down Expand Up @@ -68,6 +68,7 @@
"version": "oclif-dev readme && git add README.md",
"ws:build": "tsc -b --verbose",
"ws:clean": "rm -rf lib",
"ws:linkDomain": "yarn link @useoptic/domain @useoptic/domain-types @useoptic/domain-utilities",
"ws:test": "echo skipping tests"
},
"types": "lib/index.d.ts"
Expand Down
9 changes: 5 additions & 4 deletions workspaces/cli-client/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "@useoptic/cli-client",
"version": "8.2.4",
"version": "8.2.5",
"scripts": {
"ws:build": "yarn run tsc -b --verbose",
"ws:clean": "rm -rf build/*",
"ws:test": "echo cli-client"
"ws:test": "echo cli-client",
"ws:linkDomain": "yarn link @useoptic/domain @useoptic/domain-types @useoptic/domain-utilities"
},
"repository": {
"type": "git",
Expand All @@ -14,8 +15,8 @@
"main": "build/index.js",
"types": "build/index.d.ts",
"dependencies": {
"@useoptic/cli-config": "8.2.4",
"@useoptic/client-utilities": "8.2.4",
"@useoptic/cli-config": "8.2.5",
"@useoptic/client-utilities": "8.2.5",
"bottleneck": "^2.19.5",
"cross-fetch": "^3.0.4"
},
Expand Down
5 changes: 3 additions & 2 deletions workspaces/cli-config/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "@useoptic/cli-config",
"version": "8.2.4",
"version": "8.2.5",
"scripts": {
"ws:test": "echo config",
"ws:build": "yarn run tsc -b --verbose",
"ws:clean": "rm -rf build/*"
"ws:clean": "rm -rf build/*",
"ws:linkDomain": "yarn link @useoptic/domain @useoptic/domain-types @useoptic/domain-utilities"
},
"repository": {
"type": "git",
Expand Down
7 changes: 4 additions & 3 deletions workspaces/cli-scripts/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "@useoptic/cli-scripts",
"version": "8.2.4",
"version": "8.2.5",
"scripts": {
"ws:test": "echo scripts",
"ws:build": "yarn run tsc -b --verbose",
"ws:clean": "rm -rf build/*"
"ws:clean": "rm -rf build/*",
"ws:linkDomain": "yarn link @useoptic/domain @useoptic/domain-types @useoptic/domain-utilities"
},
"repository": {
"type": "git",
Expand All @@ -16,7 +17,7 @@
"dependencies": {
"node-notifier": "^7.0.0",
"analytics-node": "^3.4.0-beta.1",
"@useoptic/cli-shared": "8.2.4"
"@useoptic/cli-shared": "8.2.5"
},
"devDependencies": {
"@types/node-notifier": "^6.0.1"
Expand Down
15 changes: 8 additions & 7 deletions workspaces/cli-server/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "@useoptic/cli-server",
"version": "8.2.4",
"version": "8.2.5",
"scripts": {
"ws:build": "yarn run tsc -b --verbose",
"ws:clean": "rm -rf build/*",
"ws:test": "echo cli-server"
"ws:test": "echo cli-server",
"ws:linkDomain": "yarn link @useoptic/domain @useoptic/domain-types @useoptic/domain-utilities"
},
"repository": {
"type": "git",
Expand All @@ -14,11 +15,11 @@
"main": "build/index.js",
"types": "build/index.d.ts",
"dependencies": {
"@useoptic/cli-client": "8.2.4",
"@useoptic/cli-config": "8.2.4",
"@useoptic/cli-scripts": "8.2.4",
"@useoptic/cli-shared": "8.2.4",
"@useoptic/ui": "8.2.4",
"@useoptic/cli-client": "8.2.5",
"@useoptic/cli-config": "8.2.5",
"@useoptic/cli-scripts": "8.2.5",
"@useoptic/cli-shared": "8.2.5",
"@useoptic/ui": "8.2.5",
"avsc": "^5.4.18",
"body-parser": "^1.19.0",
"cors": "^2.8.5",
Expand Down
17 changes: 9 additions & 8 deletions workspaces/cli-shared/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "@useoptic/cli-shared",
"version": "8.2.4",
"version": "8.2.5",
"scripts": {
"ws:build": "yarn run tsc -b --verbose",
"ws:clean": "rm -rf build/*",
"ws:test": "echo cli-shared"
"ws:test": "echo cli-shared",
"ws:linkDomain": "yarn link @useoptic/domain @useoptic/domain-types @useoptic/domain-utilities"
},
"repository": {
"type": "git",
Expand All @@ -15,12 +16,12 @@
"types": "build/index.d.ts",
"dependencies": {
"@oclif/command": "^1.6.1",
"@useoptic/cli-client": "8.2.4",
"@useoptic/cli-config": "8.2.4",
"@useoptic/client-utilities": "8.2.4",
"@useoptic/domain": "8.3.0",
"@useoptic/domain-types": "8.3.0",
"@useoptic/domain-utilities": "8.3.0",
"@useoptic/cli-client": "8.2.5",
"@useoptic/cli-config": "8.2.5",
"@useoptic/client-utilities": "8.2.5",
"@useoptic/domain": "8.3.1",
"@useoptic/domain-types": "8.3.1",
"@useoptic/domain-utilities": "8.3.1",
"avsc": "^5.4.21",
"proper-lockfile": "^4.1.1",
"bottleneck": "^2.19.5",
Expand Down
5 changes: 3 additions & 2 deletions workspaces/client-utilities/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "@useoptic/client-utilities",
"version": "8.2.4",
"version": "8.2.5",
"scripts": {
"ws:build": "yarn run tsc -b --verbose",
"ws:clean": "rm -rf build/*",
"ws:test": "echo client-utilities"
"ws:test": "echo client-utilities",
"ws:linkDomain": "yarn link @useoptic/domain @useoptic/domain-types @useoptic/domain-utilities"
},
"repository": {
"type": "git",
Expand Down
15 changes: 8 additions & 7 deletions workspaces/local-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@useoptic/cli",
"description": "The Optic CLI",
"version": "8.2.4",
"version": "8.2.5",
"author": "@useoptic",
"bin": {
"api": "./bin/run"
Expand All @@ -16,12 +16,12 @@
"@oclif/command": "^1",
"@oclif/config": "^1",
"@oclif/plugin-help": "^2",
"@useoptic/cli-client": "8.2.4",
"@useoptic/cli-config": "8.2.4",
"@useoptic/cli-scripts": "8.2.4",
"@useoptic/cli-server": "8.2.4",
"@useoptic/cli-shared": "8.2.4",
"@useoptic/domain": "8.3.0",
"@useoptic/cli-client": "8.2.5",
"@useoptic/cli-config": "8.2.5",
"@useoptic/cli-scripts": "8.2.5",
"@useoptic/cli-server": "8.2.5",
"@useoptic/cli-shared": "8.2.5",
"@useoptic/domain": "8.3.1",
"analytics-node": "^3.4.0-beta.1",
"cli-ux": "^5.4.1",
"colors": "^1.4.0",
Expand Down Expand Up @@ -89,6 +89,7 @@
"ws:build": "tsc -b --verbose",
"ws:clean": "rm -rf lib/*",
"ws:test": "echo local-cli",
"ws:linkDomain": "yarn link @useoptic/domain @useoptic/domain-types @useoptic/domain-utilities",
"postinstall": "api daemon:stop || exit 0"
},
"types": "lib/index.d.ts"
Expand Down
5 changes: 3 additions & 2 deletions workspaces/saas-types/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"name": "@useoptic/saas-types",
"description": "interfaces and types for Optic SaaS surface area",
"version": "8.2.4",
"version": "8.2.5",
"main": "build/index.js",
"files": [
"build"
],
"scripts": {
"ws:build": "tsc -b --verbose",
"ws:clean": "rm -rf build/*"
"ws:clean": "rm -rf build/*",
"ws:linkDomain": "yarn link @useoptic/domain @useoptic/domain-types @useoptic/domain-utilities"
},
"dependencies": {},
"devDependencies": {}
Expand Down
11 changes: 6 additions & 5 deletions workspaces/snapshot-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
{
"name": "@useoptic/snapshot-tests",
"version": "8.2.4",
"version": "8.2.5",
"scripts": {
"ws:build": "yarn run tsc -b --verbose",
"ws:clean": "rm -rf build/*",
"ws:test": "node build/index.js"
"ws:test": "node build/index.js",
"ws:linkDomain": "yarn link @useoptic/domain @useoptic/domain-types @useoptic/domain-utilities"
},
"repository": {
"type": "git",
"url": "ssh://git@github.com/useoptic/optic-package.git",
"directory": "workspaces/snapshot-tests"
},
"dependencies": {
"@useoptic/domain-types": "8.3.0",
"@useoptic/domain": "8.3.0",
"@useoptic/domain-utilities": "8.3.0",
"@useoptic/domain-types": "8.3.1",
"@useoptic/domain": "8.3.1",
"@useoptic/domain-utilities": "8.3.1",
"dataloader": "^2.0.0",
"fs-extra": "^9.0.0"
},
Expand Down
9 changes: 5 additions & 4 deletions workspaces/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@useoptic/ui",
"version": "8.2.4",
"version": "8.2.5",
"files": [
"build",
"index.js",
Expand All @@ -15,9 +15,9 @@
"@material-ui/core": "^4.9.7",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "^4.0.0-alpha.46",
"@useoptic/cli-client": "8.2.4",
"@useoptic/domain": "8.3.0",
"@useoptic/domain-utilities": "8.3.0",
"@useoptic/cli-client": "8.2.5",
"@useoptic/domain": "8.3.1",
"@useoptic/domain-utilities": "8.3.1",
"bottleneck": "^2.19.5",
"camelcase": "^5.2.0",
"classnames": "^2.2.6",
Expand Down Expand Up @@ -62,6 +62,7 @@
"ws:build": "echo building ui",
"ws:clean": "rm -rf build/*",
"ws:test": "echo ui",
"ws:linkDomain": "yarn link @useoptic/domain @useoptic/domain-types @useoptic/domain-utilities",
"prepare": "CI='' yarn run build-local"
},
"eslintConfig": {
Expand Down
48 changes: 48 additions & 0 deletions workspaces/ui/src/components/diff/v2/DiffCopy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import { mapScala } from '@useoptic/domain';
import { UpdatedBlue, UpdatedBlueBackground } from '../../../theme';

export function DiffCopy(props) {
const classes = useStyles();

const copy = props.copy;
const fontSize = props.fontSize || 13;

const components = mapScala(copy)((i) => {
if (i.style === 'normal') {
return (
<span className={classes.normal} style={{ fontSize }}>
{i.value}{' '}
</span>
);
} else if (i.style === 'code') {
return (
<span>
<span className={classes.code} style={{ fontSize }}>
{i.value}
</span>{' '}
</span>
);
}
});

return <div>{components}</div>;
}

const useStyles = makeStyles((theme) => ({
normal: {
wordBreak: 'break-word',
fontFamily: 'Ubuntu',
},
code: {
fontFamily: "'Source Code Pro', monospace",
fontWeight: 600,
paddingLeft: 2,
paddingRight: 2,
paddingTop: 1,
paddingBottom: 1,
wordBreak: 'break-word',
backgroundColor: UpdatedBlueBackground,
},
}));
10 changes: 5 additions & 5 deletions workspaces/ui/src/components/diff/v2/DiffCursor.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { UpdatedBlue } from '../../../theme';
import DiffReviewExpanded, {
DiffReviewExpandedCached,
} from './DiffReviewExpanded';
import { DiffCopy } from './DiffCopy';

const useStyles = makeStyles((theme) => ({
diffCursor: {
Expand Down Expand Up @@ -193,11 +194,10 @@ const DiffItem = ({ diff, button, setSelectedDiff, toggle }) => {
}}
>
{description && (
<Typography variant="h5" className={classes.diffTitle}>
{button && ' • '}
{description.title}
{/*{diff.toString()}*/}
</Typography>
<div style={{ display: 'flex', flexDirection: 'row', paddingLeft: 7 }}>
{button && <div style={{ marginRight: 7 }}>{' • '}</div>}
<DiffCopy copy={description.titleCopy} fontSize={15} />
</div>
)}
</ListItem>
);
Expand Down
Loading