Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6015435

Browse files
authored
Merge pull request #73 from theGeekist/fix/release-0.3.0
release: 0.3.0 — React Hooks Migration & Resource API Refinements
2 parents c360e94 + 4393717 commit 6015435

File tree

107 files changed

+3673
-2674
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+3673
-2674
lines changed

.release-please-manifest.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"packages/kernel": "0.1.2",
3-
"packages/cli": "0.1.1",
4-
"packages/ui": "0.1.1",
5-
"packages/e2e-utils": "0.1.1"
2+
"packages/kernel": "0.3.0",
3+
"packages/cli": "0.3.0",
4+
"packages/ui": "0.3.0",
5+
"packages/e2e-utils": "0.3.0"
66
}

app/showcase/__tests__/e2e/job-create.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ test.describe.serial('Job creation workflow', () => {
9696
await expect(rowLocator).toBeVisible({ timeout: 30000 });
9797
const jobIdAttr = await rowLocator.first().getAttribute('data-job-id');
9898
const jobId = jobIdAttr ? Number(jobIdAttr) : NaN;
99-
if (!Number.isNaN(jobId)) {
100-
createdJobIds.push(jobId);
101-
} else {
99+
if (Number.isNaN(jobId)) {
102100
throw new Error('Failed to capture created job ID for cleanup');
101+
} else {
102+
createdJobIds.push(jobId);
103103
}
104104
});
105105
});

app/showcase/src/actions/jobs/CreateJob.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import { job } from '../../resources';
33
import type { Job } from '../../../types/job';
44
import { ShowcaseActionError } from '../../errors/ShowcaseActionError';
55

6-
export interface CreateJobInput {
6+
export type CreateJobInput = {
77
title: string;
88
department?: string;
99
location?: string;
1010
description?: string;
1111
status: 'draft' | 'publish' | 'closed';
12-
}
12+
};
1313

1414
/**
1515
* CreateJob orchestrates job creation through the resource client.

app/showcase/src/errors/ShowcaseActionError.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { KernelError } from '@geekist/wp-kernel';
22
import type { ErrorCode, ErrorContext, ErrorData } from '@geekist/wp-kernel';
33

4-
interface ShowcaseActionErrorOptions {
4+
type ShowcaseActionErrorOptions = {
55
message?: string;
66
data?: ErrorData;
77
context?: ErrorContext;
8-
}
8+
};
99

1010
/**
1111
* ShowcaseActionError standardizes failures raised from showcase actions.

app/showcase/src/resources/job.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import type { Job } from '../../types/job';
44
/**
55
* Query parameters for job listing endpoint.
66
*/
7-
export interface JobListParams {
7+
export type JobListParams = {
88
q?: string;
99
department?: string;
1010
location?: string;
1111
status?: 'draft' | 'publish' | 'closed';
1212
cursor?: string;
13-
}
13+
};
1414

1515
/**
1616
* Resource definition for job postings.

app/showcase/src/views/jobs/JobCreatePanel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import {
1212
import { __ } from '@wordpress/i18n';
1313
import type { CreateJobInput } from '../../actions/jobs/CreateJob';
1414

15-
interface JobCreatePanelProps {
15+
type JobCreatePanelProps = {
1616
onSubmit: (input: CreateJobInput) => Promise<void> | void;
1717
feedback?: { type: 'success' | 'error'; message: string } | null;
1818
isSubmitting: boolean;
19-
}
19+
};
2020

2121
const createDefaultFormState = (): CreateJobInput => ({
2222
title: '',

app/showcase/src/views/jobs/JobFilters.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ import { __ } from '@wordpress/i18n';
88

99
export type JobStatusFilter = 'all' | 'draft' | 'publish' | 'closed';
1010

11-
export interface JobFiltersState {
11+
export type JobFiltersState = {
1212
search: string;
1313
status: JobStatusFilter;
14-
}
14+
};
1515

16-
interface JobFiltersProps {
16+
type JobFiltersProps = {
1717
value: JobFiltersState;
1818
onChange: (next: JobFiltersState) => void;
19-
}
19+
};
2020

2121
/**
2222
* JobFilters renders simple controls for search + status filtering.

app/showcase/src/views/jobs/JobListTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import {
88
import { __ } from '@wordpress/i18n';
99
import type { Job } from '../../../types/job';
1010

11-
interface JobListTableProps {
11+
type JobListTableProps = {
1212
jobs: Job[];
1313
isLoading: boolean;
1414
errorMessage?: string | null;
15-
}
15+
};
1616

1717
const formatDate = (value?: string): string => {
1818
if (!value) {

docs/api/generated/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
**WP Kernel API v0.1.1**
1+
**WP Kernel API v0.3.0**
22

33
---
44

5-
# WP Kernel API v0.1.1
5+
# WP Kernel API v0.3.0
66

77
## Modules
88

docs/api/generated/error/README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[**WP Kernel API v0.1.1**](../README.md)
1+
[**WP Kernel API v0.3.0**](../README.md)
22

33
---
44

@@ -17,13 +17,10 @@ Exports all error types and utilities for consistent error handling throughout t
1717
- [ServerError](classes/ServerError.md)
1818
- [TransportError](classes/TransportError.md)
1919

20-
## Interfaces
21-
22-
- [WordPressRESTError](interfaces/WordPressRESTError.md)
23-
- [ErrorContext](interfaces/ErrorContext.md)
24-
- [ErrorData](interfaces/ErrorData.md)
25-
- [SerializedError](interfaces/SerializedError.md)
26-
2720
## Type Aliases
2821

22+
- [WordPressRESTError](type-aliases/WordPressRESTError.md)
2923
- [ErrorCode](type-aliases/ErrorCode.md)
24+
- [ErrorContext](type-aliases/ErrorContext.md)
25+
- [ErrorData](type-aliases/ErrorData.md)
26+
- [SerializedError](type-aliases/SerializedError.md)

0 commit comments

Comments
 (0)