-
Notifications
You must be signed in to change notification settings - Fork 19
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
Fix: Revert to v1.16.9 #1027
Fix: Revert to v1.16.9 #1027
Changes from 9 commits
0a3259d
3cc87fd
034f413
7c86124
b5aefec
e2d7ee3
2df6b86
a033bd7
47e1a59
9609007
1f543a1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
".": "1.16.10" | ||
".": "1.16.9" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module.exports = { | ||
// TODD: enable the before init hooks once grafana/toolkit can limit the jest workers | ||
git: { | ||
commitMessage: 'chore: update version', | ||
tag: false, | ||
push: false, | ||
commit: false, | ||
}, | ||
github: { | ||
release: false, | ||
}, | ||
npm: { | ||
publish: false, | ||
}, | ||
plugins: { | ||
'@release-it/conventional-changelog': { | ||
preset: 'angular', | ||
infile: 'CHANGELOG.md', | ||
}, | ||
}, | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,5 @@ | ||
# Changelog | ||
|
||
## [1.16.10](https://github.com/grafana/synthetic-monitoring-app/compare/v1.16.9...v1.16.10) (2024-12-17) | ||
|
||
|
||
### Features | ||
|
||
* prompt on unsaved unload ([#1002](https://github.com/grafana/synthetic-monitoring-app/issues/1002)) ([9747b27](https://github.com/grafana/synthetic-monitoring-app/commit/9747b2778e824059768848014c53fba616a0d95a)) | ||
|
||
|
||
### Fixes | ||
|
||
* add synthetic-monitoring-dev as owners of release files ([#1010](https://github.com/grafana/synthetic-monitoring-app/issues/1010)) ([d703e42](https://github.com/grafana/synthetic-monitoring-app/commit/d703e426e1e8a4c67689dd9794c4fd1f500fcf09)) | ||
|
||
|
||
### Miscellaneous Chores | ||
|
||
* **deps:** bump nanoid from 3.3.7 to 3.3.8 ([#1018](https://github.com/grafana/synthetic-monitoring-app/issues/1018)) ([77032d0](https://github.com/grafana/synthetic-monitoring-app/commit/77032d060323c49ed68394a6e242b0b6aa528d29)) | ||
* update checks UI styling ([#1020](https://github.com/grafana/synthetic-monitoring-app/issues/1020)) ([2b69b02](https://github.com/grafana/synthetic-monitoring-app/commit/2b69b024e2759e862b6c1cc490e4490ccf4f4df4)) | ||
|
||
## [1.16.9](https://github.com/grafana/synthetic-monitoring-app/compare/v1.16.8...v1.16.9) (2024-11-29) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should keep 1.16.10 details if we are releasing as 1.16.11? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch. Added it back. |
||
|
||
|
||
|
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module.exports = { | ||
faro: { | ||
api: { | ||
pushMeasurement: jest.fn(() => console.log('hhhhhhiiiiii')), | ||
pushEvent: jest.fn(), | ||
pushError: jest.fn(), | ||
}, | ||
}, | ||
isError: jest.fn(), | ||
isObject: jest.fn(), | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// @ts-ignore | ||
window.__react_router_build__ = undefined; | ||
|
||
const ui = jest.requireActual('@grafana/ui'); | ||
import React, { forwardRef } from 'react'; | ||
|
||
const Icon = forwardRef((props, ref) => <svg {...props} />); | ||
Icon.displayName = 'Icon'; | ||
|
||
interface BigValueProps { | ||
value: { | ||
numeric: number; | ||
text?: string; | ||
title?: string; | ||
}; | ||
} | ||
|
||
export function BigValue({ value }: BigValueProps) { | ||
return ( | ||
<div> | ||
{/* {value.numeric} */} | ||
{value.text && <span>{value.text}</span>} | ||
{value.title && <label>{value.title}</label>} | ||
</div> | ||
); | ||
} | ||
|
||
// Monaco does not render with jest and is stuck at "Loading..." | ||
// There doesn't seem to be a solution to this at this point, | ||
// mocking it instead. Related github issue: | ||
// https://github.com/suren-atoyan/monaco-react/issues/88 | ||
const CodeEditor = React.forwardRef((props: any, ref: any) => { | ||
return <textarea ref={ref} data-testid="code-editor" onChange={props.onChange} value={props.value} />; | ||
}); | ||
CodeEditor.displayName = 'CodeEditor'; | ||
|
||
module.exports = { | ||
...ui, | ||
Icon, | ||
BigValue, | ||
CodeEditor, | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import React from 'react'; | ||
|
||
export const SimpleMap = () => { | ||
return <div>A pretty map</div>; | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const appEvents = { | ||
emit: () => {}, | ||
}; | ||
// eslint-disable-next-line no-restricted-syntax | ||
export default appEvents; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"ignorePaths": ["node_modules"], | ||
"ignoreRegExpList": [".*"], | ||
"words": ["grafana", "datasource", "datasources", "gifs", ".*"] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// this file exists solely to trick the spell check. Delete this as soon as possible |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import React, { useEffect, useRef, useState } from 'react'; | ||
import { GrafanaTheme2 } from '@grafana/data'; | ||
import { useStyles2 } from '@grafana/ui'; | ||
import { css } from '@emotion/css'; | ||
|
||
interface ChildrenArgs { | ||
width: number; | ||
height: number; | ||
} | ||
|
||
interface Props { | ||
children: (dimensions: ChildrenArgs) => JSX.Element; | ||
} | ||
|
||
const getStyles = (theme: GrafanaTheme2) => ({ | ||
fillContainer: css` | ||
display: flex; | ||
justify-content: center; | ||
max-width: 1300px; | ||
margin-left: auto; | ||
margin-right: auto; | ||
width: 100%; | ||
`, | ||
}); | ||
|
||
export const Autosizer = ({ children }: Props) => { | ||
const el = useRef<HTMLDivElement>(null); | ||
const styles = useStyles2(getStyles); | ||
const [size, setSize] = useState({ width: 0, height: 0 }); | ||
|
||
useEffect(() => { | ||
const rect = el.current?.getBoundingClientRect(); | ||
if (rect) { | ||
setSize({ width: rect.width, height: rect.height }); | ||
} | ||
}, [el]); | ||
|
||
return ( | ||
<div className={styles.fillContainer} ref={el}> | ||
{children(size)} | ||
</div> | ||
); | ||
}; |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this cause issues when try to release? (I'm assuming we'll have to release as 1.16.11)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably it would fail, in a following commit I changed the version back to
1.16.10
as it was reverted automatically when runninggit revert v1.16.9..HEAD