Skip to content

Commit b9e821e

Browse files
authored
Merge pull request #16 from baseflow-labs/dev
Fix: Github Workflows
2 parents fd5297b + fa99903 commit b9e821e

File tree

21 files changed

+63
-170
lines changed

21 files changed

+63
-170
lines changed

.github/workflows/pr-quality-check.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ jobs:
1111
quality-check:
1212
name: Code Quality & Type Safety
1313
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
pull-requests: write
17+
issues: write
1418

1519
steps:
1620
- name: 📥 Checkout code

.github/workflows/version-bump.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
name: 🏷️ Version Bump and Tag Creation
22

3-
concurrency:
4-
group: version-bump-${{ github.ref }}
5-
cancel-in-progress: true
6-
73
on:
84
push:
95
branches:
106
- main
117
paths-ignore:
128
- ".github/workflows/**"
139
- "**.md"
10+
- "Documentation/**"
1411

1512
jobs:
1613
bump-version:
@@ -27,8 +24,7 @@ jobs:
2724
- name: Bump version based on last PR title
2825
id: bump
2926
run: |
30-
VERSION_FILE="src/version.ts"
31-
CURRENT_VERSION=$(grep -oP '[0-9]+\.[0-9]+\.[0-9]+' $VERSION_FILE)
27+
CURRENT_VERSION=$(jq -r '.version' package.json)
3228
BASE=$(echo $CURRENT_VERSION | cut -d. -f1,2)
3329
PATCH=$(echo $CURRENT_VERSION | cut -d. -f3)
3430
MAJOR=$(echo $CURRENT_VERSION | cut -d. -f1)

.husky/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33

44
echo "🔍 Running pre-commit checks..."
55
npx lint-staged
6+
7+
yarn format

src/api/demoData.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const tablesList = [
2-
'users',
3-
'products',
4-
'orders',
2+
"users",
3+
"products",
4+
"orders",
55
"roles",
66
"permissions",
77
"metadata",
@@ -10,8 +10,8 @@ export const tablesList = [
1010
];
1111

1212
export const tableRelationsList = [
13-
'products>orders',
14-
'users>orders',
15-
'users>roles',
16-
'roles>permissions',
17-
]
13+
"products>orders",
14+
"users>orders",
15+
"users>roles",
16+
"roles>permissions",
17+
];

src/components/core/spinner.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,7 @@ interface Props {
55
}
66

77
const Spinner: React.FC<Props> = ({ color = "text", ...rest }) => {
8-
return (
9-
<div
10-
className={`spinner-border text-${color} m-0 p-0`}
11-
role="status"
12-
{...rest}
13-
/>
14-
);
8+
return <div className={`spinner-border text-${color} m-0 p-0`} role="status" {...rest} />;
159
};
1610

1711
export default Spinner;

src/components/form/inputs/default.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@ import { commonInputClasses } from "@/utils/consts";
44

55
type FinalInput = InputProps & React.InputHTMLAttributes<HTMLInputElement>;
66

7-
const DefaultInput: React.FC<FinalInput> = ({
8-
className,
9-
sizing = "sm",
10-
...input
11-
}) => {
7+
const DefaultInput: React.FC<FinalInput> = ({ className, sizing = "sm", ...input }) => {
128
return (
139
<input
1410
{...input}

src/components/form/inputs/location.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,7 @@ const LocationInput: React.FC<FinalInput> = ({ name, ...input }) => {
6969
</span>
7070

7171
{location?.lng && (
72-
<div
73-
className={`d-block w-100 mt-1 small ${
74-
location ? "text-muted" : "text-white"
75-
}`}
76-
>
72+
<div className={`d-block w-100 mt-1 small ${location ? "text-muted" : "text-white"}`}>
7773
<a
7874
href={location.link}
7975
target="_blank"

src/components/form/inputs/rating/index.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ import StarsInput from "./stars";
44

55
type FinalInput = InputProps & React.InputHTMLAttributes<HTMLInputElement>;
66

7-
const RatingInput: React.FC<FinalInput> = ({
8-
layout = "default",
9-
...input
10-
}) => {
7+
const RatingInput: React.FC<FinalInput> = ({ layout = "default", ...input }) => {
118
switch (layout) {
129
default:
1310
return <StarsInput {...input} />;

src/components/form/inputs/select.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ const SelectInput: React.FC<FinalInput> = ({
2121
{...input}
2222
className={`form-select form-select-${sizing} ${commonInputClasses} ${className}`}
2323
>
24-
<option value="">
25-
{placeholder || t("Global.Form.Labels.PleaseSelect")}
26-
</option>
24+
<option value="">{placeholder || t("Global.Form.Labels.PleaseSelect")}</option>
2725

2826
{options?.map((option, i) => (
2927
<option key={i} value={option.value}>

src/components/form/inputs/selection/checkbox/default.tsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,22 @@ import { InputProps } from "../../..";
44

55
type FinalInput = InputProps & React.InputHTMLAttributes<HTMLInputElement>;
66

7-
const DefaultCheckboxesInput: React.FC<FinalInput> = ({
8-
options,
9-
stacked,
10-
...input
11-
}) => (
7+
const DefaultCheckboxesInput: React.FC<FinalInput> = ({ options, stacked, ...input }) => (
128
<div className={stacked ? "" : "d-flex flex-wrap"}>
139
{options?.map((option, i) => (
1410
<div className="form-check my-2" key={i}>
1511
<input
1612
{...input}
1713
value={option.value}
1814
checked={
19-
input.value && Array.isArray(input.value)
20-
? input.value.includes(option.value)
21-
: false
15+
input.value && Array.isArray(input.value) ? input.value.includes(option.value) : false
2216
}
2317
type="checkbox"
2418
className="form-check-input"
2519
required={false}
2620
/>
2721

28-
<label className="form-check-label">
29-
{option.label || option.value}
30-
</label>
22+
<label className="form-check-label">{option.label || option.value}</label>
3123
</div>
3224
))}
3325
</div>

0 commit comments

Comments
 (0)