Skip to content

Commit 0306b49

Browse files
Coderabbit theme and fixes (#175)
* coderabbit theme * theme change * checkpoint * fixes * added coderabbit authentication
1 parent 2ce8ced commit 0306b49

File tree

24 files changed

+228
-434
lines changed

24 files changed

+228
-434
lines changed

.betterer.results

+1-5
Original file line numberDiff line numberDiff line change
@@ -1296,11 +1296,7 @@ exports[`better eslint`] = {
12961296
],
12971297
"public/app/core/services/backend_srv.ts:5381": [
12981298
[0, 0, 0, "Do not use any type assertions.", "0"],
1299-
[0, 0, 0, "Unexpected any. Specify a different type.", "1"],
1300-
[0, 0, 0, "Unexpected any. Specify a different type.", "2"],
1301-
[0, 0, 0, "Unexpected any. Specify a different type.", "3"],
1302-
[0, 0, 0, "Unexpected any. Specify a different type.", "4"],
1303-
[0, 0, 0, "Unexpected any. Specify a different type.", "5"]
1299+
[0, 0, 0, "Do not use any type assertions.", "1"]
13041300
],
13051301
"public/app/core/services/context_srv.ts:5381": [
13061302
[0, 0, 0, "Do not use any type assertions.", "0"],
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/env node
2+
3+
const {existsSync} = require(`fs`);
4+
const {createRequire, register} = require(`module`);
5+
const {resolve} = require(`path`);
6+
const {pathToFileURL} = require(`url`);
7+
8+
const relPnpApiPath = "../../../../.pnp.cjs";
9+
10+
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
11+
const absRequire = createRequire(absPnpApiPath);
12+
13+
const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
14+
const isPnpLoaderEnabled = existsSync(absPnpLoaderPath);
15+
16+
if (existsSync(absPnpApiPath)) {
17+
if (!process.versions.pnp) {
18+
// Setup the environment to be able to require eslint/use-at-your-own-risk
19+
require(absPnpApiPath).setup();
20+
if (isPnpLoaderEnabled && register) {
21+
register(pathToFileURL(absPnpLoaderPath));
22+
}
23+
}
24+
}
25+
26+
// Defer to the real eslint/use-at-your-own-risk your application uses
27+
module.exports = absRequire(`eslint/use-at-your-own-risk`);

.yarn/sdks/prettier/bin/prettier.cjs

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/env node
2+
3+
const {existsSync} = require(`fs`);
4+
const {createRequire, register} = require(`module`);
5+
const {resolve} = require(`path`);
6+
const {pathToFileURL} = require(`url`);
7+
8+
const relPnpApiPath = "../../../../.pnp.cjs";
9+
10+
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
11+
const absRequire = createRequire(absPnpApiPath);
12+
13+
const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
14+
const isPnpLoaderEnabled = existsSync(absPnpLoaderPath);
15+
16+
if (existsSync(absPnpApiPath)) {
17+
if (!process.versions.pnp) {
18+
// Setup the environment to be able to require prettier/bin/prettier.cjs
19+
require(absPnpApiPath).setup();
20+
if (isPnpLoaderEnabled && register) {
21+
register(pathToFileURL(absPnpLoaderPath));
22+
}
23+
}
24+
}
25+
26+
// Defer to the real prettier/bin/prettier.cjs your application uses
27+
module.exports = absRequire(`prettier/bin/prettier.cjs`);

packages/grafana-data/src/themes/breakpoints.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function createBreakpoints(): ThemeBreakpoints {
2828
const values: ThemeBreakpointValues = {
2929
xs: 0,
3030
sm: 544,
31-
md: 769, // 1 more than regular ipad in portrait
31+
md: 768, // 1 more than regular ipad in portrait
3232
lg: 992,
3333
xl: 1200,
3434
xxl: 1440,

packages/grafana-data/src/themes/createColors.ts

+10-10
Original file line numberDiff line numberDiff line change
@@ -171,16 +171,16 @@ class LightColors implements ThemeColorsBase<Partial<ThemeRichColor>> {
171171
blackBase = '45, 51, 62';
172172

173173
primary = {
174-
main: '#8EC4AD',
175-
border: palette.blueLightText,
176-
text: '#F0E4B6',
174+
main: '#FF4702',
175+
border: '#E33E00',
176+
text: '#101828',
177177
};
178178

179179
text = {
180-
primary: '#2D333E',
181-
secondary: '#2d333e',
180+
primary: '#101828',
181+
secondary: '#344054',
182182
disabled: '#9DA7B8',
183-
link: this.primary.text,
183+
link: '#FF4702',
184184
maxContrast: palette.black,
185185
};
186186

@@ -191,7 +191,7 @@ class LightColors implements ThemeColorsBase<Partial<ThemeRichColor>> {
191191
};
192192

193193
secondary = {
194-
main: '#FC9A69',
194+
main: '#FF4702',
195195
shade: '#FC9A6990',
196196
contrastText: `rgba(${this.blackBase}, 1)`,
197197
text: this.text.primary,
@@ -220,9 +220,9 @@ class LightColors implements ThemeColorsBase<Partial<ThemeRichColor>> {
220220
};
221221

222222
background = {
223-
canvas: '#F6F5F3',
224-
primary: '#FDFDFC',
225-
secondary: '#FDFDFC',
223+
primary: '#FAFAFA',
224+
canvas: '#FFFFFF',
225+
secondary: '#FAFAFA',
226226
};
227227

228228
action = {

packages/grafana-data/src/themes/createTypography.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,22 @@ export interface ThemeTypographyInput {
5353
htmlFontSize?: number;
5454
}
5555

56-
const defaultFontFamily = '"Source Sans Pro", Nunito, Roboto, Arial'; //'"Roboto", "Helvetica", "Arial", sans-serif';
57-
const defaultFontFamilyMonospace = "'Nunito Mono', 'Roboto Mono', monospace"; // "'Roboto Mono', monospace";
56+
const defaultFontFamily = '"Poppins", Inter, Satoshi, sans-serif'; //'"Roboto", "Helvetica", "Arial", sans-serif';
57+
const defaultFontFamilyMonospace = '"SatoshiLight", "FigtreeLight", monospace'; // "'Roboto Mono', monospace";
5858

5959
export function createTypography(colors: ThemeColors, typographyInput: ThemeTypographyInput = {}): ThemeTypography {
6060
const {
6161
fontFamily = defaultFontFamily,
6262
fontFamilyMonospace = defaultFontFamilyMonospace,
6363
// The default font size of the Material Specification.
6464
fontSize = 14, // px
65-
fontWeightLight = 300,
66-
fontWeightRegular = 400,
67-
fontWeightMedium = 500,
65+
fontWeightLight = 200,
66+
fontWeightRegular = 300,
67+
fontWeightMedium = 400,
6868
fontWeightBold = 500,
6969
// Tell Grafana-UI what's the font-size on the html element.
7070
// 16px is the default font-size used by browsers.
71-
htmlFontSize = 14,
71+
htmlFontSize = 16,
7272
} = typographyInput;
7373

7474
if (process.env.NODE_ENV !== 'production') {

packages/grafana-data/src/themes/fnCreateColors.ts

-240
This file was deleted.

0 commit comments

Comments
 (0)