Skip to content

Commit a373978

Browse files
committed
update
1 parent 4fe2bc1 commit a373978

9 files changed

Lines changed: 25 additions & 25 deletions

File tree

.github/workflows/alpha-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
alpha-release:
2020
name: Alpha Release
2121
# Only run if the last commit is not a release commit to avoid infinite loops
22-
if: ${{ !contains(github.event.head_commit.message, '🔄 Update version') && !contains(github.event.head_commit.message, '🤖 Update API clients') && !contains(github.event.head_commit.message, 'Alpha release') && !contains(github.event.head_commit.message, '🚀') && !contains(github.event.head_commit.message, 'proxy-smart-releaser') }}
22+
if: ${{ !contains(github.event.head_commit.message, '🔄 Update version') && !contains(github.event.head_commit.message, '🤖 Update client APIs') && !contains(github.event.head_commit.message, 'Alpha release') && !contains(github.event.head_commit.message, '🚀') && !contains(github.event.head_commit.message, 'proxy-smart-releaser') }}
2323
uses: ./.github/workflows/release-orchestrator.yml
2424
with:
2525
release_type: 'alpha'

.github/workflows/beta-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
beta-release:
2020
name: Beta Release
2121
# Only run if the last commit is not a release commit to avoid infinite loops
22-
if: ${{ !contains(github.event.head_commit.message, '🔄 Update version') && !contains(github.event.head_commit.message, '🤖 Update API clients') && !contains(github.event.head_commit.message, 'Beta release') && !contains(github.event.head_commit.message, '🚀') && !contains(github.event.head_commit.message, 'proxy-smart-releaser') }}
22+
if: ${{ !contains(github.event.head_commit.message, '🔄 Update version') && !contains(github.event.head_commit.message, '🤖 Update client APIs') && !contains(github.event.head_commit.message, 'Beta release') && !contains(github.event.head_commit.message, '🚀') && !contains(github.event.head_commit.message, 'proxy-smart-releaser') }}
2323
uses: ./.github/workflows/release-orchestrator.yml
2424
with:
2525
release_type: 'beta'

.github/workflows/create-pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
pr-to-develop:
1212
name: Create/Update PR from dev/* → develop
13-
if: startsWith(github.ref, 'refs/heads/dev/') && !contains(github.event.head_commit.message, '🔄 Update version') && !contains(github.event.head_commit.message, '🤖 Update API clients') && !contains(github.event.head_commit.message, 'proxy-smart-releaser')
13+
if: startsWith(github.ref, 'refs/heads/dev/') && !contains(github.event.head_commit.message, '🔄 Update version') && !contains(github.event.head_commit.message, '🤖 Update client APIs') && !contains(github.event.head_commit.message, 'proxy-smart-releaser')
1414
runs-on: ubuntu-latest
1515

1616
steps:
@@ -142,7 +142,7 @@ jobs:
142142

143143
pr-to-test:
144144
name: Create/Update PR from develop → test
145-
if: github.ref == 'refs/heads/develop' && !contains(github.event.head_commit.message, '🔄 Update version') && !contains(github.event.head_commit.message, '🤖 Update API clients') && !contains(github.event.head_commit.message, 'proxy-smart-releaser')
145+
if: github.ref == 'refs/heads/develop' && !contains(github.event.head_commit.message, '🔄 Update version') && !contains(github.event.head_commit.message, '🤖 Update client APIs') && !contains(github.event.head_commit.message, 'proxy-smart-releaser')
146146
runs-on: ubuntu-latest
147147

148148
steps:
@@ -260,7 +260,7 @@ jobs:
260260

261261
pr-to-main:
262262
name: Create/Update PR from test → main
263-
if: github.ref == 'refs/heads/test' && !contains(github.event.head_commit.message, '🔄 Update version') && !contains(github.event.head_commit.message, '🤖 Update API clients') && !contains(github.event.head_commit.message, 'proxy-smart-releaser')
263+
if: github.ref == 'refs/heads/test' && !contains(github.event.head_commit.message, '🔄 Update version') && !contains(github.event.head_commit.message, '🤖 Update client APIs') && !contains(github.event.head_commit.message, 'proxy-smart-releaser')
264264
runs-on: ubuntu-latest
265265

266266
steps:

.github/workflows/production-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
name: Production Release
5757
needs: [check-changes]
5858
# Only run if the last commit is not a release commit AND there are non-documentation changes
59-
if: ${{ needs.check-changes.outputs.should_release == 'true' && !contains(github.event.head_commit.message, '🔄 Update version') && !contains(github.event.head_commit.message, '🤖 Update API clients') && !contains(github.event.head_commit.message, 'Production release') && !contains(github.event.head_commit.message, '🎉') }}
59+
if: ${{ needs.check-changes.outputs.should_release == 'true' && !contains(github.event.head_commit.message, '🔄 Update version') && !contains(github.event.head_commit.message, '🤖 Update client APIs') && !contains(github.event.head_commit.message, 'Production release') && !contains(github.event.head_commit.message, '🎉') }}
6060
uses: ./.github/workflows/release-orchestrator.yml
6161
with:
6262
release_type: "RELEASE"

.github/workflows/release-orchestrator.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ jobs:
143143
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
144144
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
145145

146-
# Generate API clients with updated version
147-
generate-api-clients:
146+
# Generate client APIs with updated version
147+
generate-client-apis:
148148
name: Generate API Clients
149149
needs: [version]
150150
runs-on: ubuntu-latest
@@ -185,25 +185,25 @@ jobs:
185185
cd backend && bun install
186186
cd ../ui && bun install
187187
188-
- name: Generate API clients
188+
- name: Generate client APIs
189189
run: |
190190
bun run generate:ui:normalized
191191
192-
- name: Commit generated API clients
192+
- name: Commit generated client APIs
193193
run: |
194194
# Check if there are changes to commit (files should already be staged by generate:ui:normalized)
195195
if git diff --staged --quiet; then
196196
echo "No API client changes to commit"
197197
else
198-
git commit -m "🤖 Update API clients for v${{ needs.version.outputs.new_version }}"
198+
git commit -m "🤖 Update client APIs for v${{ needs.version.outputs.new_version }}"
199199
git push origin ${{ inputs.target_branch }}
200200
fi
201201
202202
203203
# Build and test
204204
build:
205205
name: Build and Test
206-
needs: [version, generate-api-clients]
206+
needs: [version, generate-client-apis]
207207
uses: ./.github/workflows/build-and-test.yml
208208
with:
209209
run_tests: true
@@ -212,7 +212,7 @@ jobs:
212212
# Create GitHub release
213213
release:
214214
name: Create GitHub Release
215-
needs: [version, changelog, generate-api-clients, build]
215+
needs: [version, changelog, generate-client-apis, build]
216216
uses: ./.github/workflows/create-release.yml
217217
with:
218218
release_type: ${{ inputs.release_type }}
@@ -260,7 +260,7 @@ jobs:
260260
# Discord notification on failure
261261
notify-failure:
262262
name: Discord Failure Notification
263-
needs: [version, changelog, generate-api-clients, build, release]
263+
needs: [version, changelog, generate-client-apis, build, release]
264264
if: ${{ failure() }}
265265
runs-on: ubuntu-latest
266266

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ bun run test:smart-flows # SMART App Launch tests
305305
bun run test:backend-services # Backend API tests
306306

307307
# API Generation
308-
bun run generate # Generate API clients
308+
bun run generate # Generate client APIs
309309
bun run validate-api # Validate OpenAPI specs
310310

311311
# Version Management

ui/src/components/LaunchContextManager.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ export function LaunchContextManager() {
229229
// Use fhirStore for context sets management
230230
const { contextSets, addContextSet, updateContextSet, deleteContextSet } = useLaunchContextSets();
231231

232-
// Use auth store to get authenticated API clients and auth state
232+
// Use auth store to get authenticated client APIs and auth state
233233
const { isAuthenticated, profile, apiClients } = useAuth();
234234

235235
// Track if templates have been initialized to prevent infinite loops
@@ -335,7 +335,7 @@ export function LaunchContextManager() {
335335
setLaunchContextsLoading(true);
336336
setError(null);
337337
try {
338-
// Use auth store's API clients with automatic error handling
338+
// Use auth store's client APIs with automatic error handling
339339
const response = await apiClients.launchContexts.getAdminLaunchContexts();
340340
setLaunchContextUsers(response);
341341
console.log('Successfully loaded launch contexts:', response.length);

ui/src/lib/apiClient.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const createConfig = (token?: string) => {
8282
});
8383
};
8484

85-
// Create individual API clients
85+
// Create individual client APIs
8686
export const createAdminApi = (token?: string) => new AdminApi(createConfig(token));
8787
export const createAuthApi = (token?: string) => new AuthenticationApi(createConfig(token));
8888
export const createHealthcareUsersApi = (token?: string) => new HealthcareUsersApi(createConfig(token));
@@ -121,7 +121,7 @@ const wrapApiClient = <T extends object>(client: T): T => {
121121
});
122122
};
123123

124-
// Create all API clients at once with automatic auth error handling
124+
// Create all client APIs at once with automatic auth error handling
125125
export const createApiClients = (token?: string) => ({
126126
admin: wrapApiClient(createAdminApi(token)),
127127
auth: wrapApiClient(createAuthApi(token)),
@@ -155,7 +155,7 @@ export const getStoredToken = (): string | null => {
155155
}
156156
};
157157

158-
// Create authenticated API clients using stored token
158+
// Create authenticated client APIs using stored token
159159
export const createAuthenticatedApiClients = () => {
160160
const token = getStoredToken();
161161
return createApiClients(token || undefined);

ui/src/stores/authStore.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export const useAuthStore = create<AuthState>()(
7575
isAuthenticated: false,
7676
apiClients: createApiClients(), // Initialize with no token
7777

78-
// Helper function to update API clients with current token
78+
// Helper function to update client APIs with current token
7979
updateApiClients: () => {
8080
const tokens = getStoredTokens();
8181
const token = tokens?.access_token || undefined;
@@ -126,7 +126,7 @@ export const useAuthStore = create<AuthState>()(
126126
storeTokens(tokenData);
127127
set({ isAuthenticated: true });
128128

129-
// Update API clients with new token
129+
// Update client APIs with new token
130130
get().updateApiClients();
131131

132132
// Fetch user profile
@@ -205,7 +205,7 @@ export const useAuthStore = create<AuthState>()(
205205
storeTokens(tokenData);
206206
set({ isAuthenticated: true, loading: false });
207207

208-
// Update API clients with refreshed token
208+
// Update client APIs with refreshed token
209209
get().updateApiClients();
210210

211211
} catch (error) {
@@ -236,7 +236,7 @@ export const useAuthStore = create<AuthState>()(
236236
loading: false
237237
});
238238

239-
// Update API clients to have no token
239+
// Update client APIs to have no token
240240
get().updateApiClients();
241241

242242
clearTokens();
@@ -272,7 +272,7 @@ export const useAuthStore = create<AuthState>()(
272272
state.apiClients = createApiClients(); // No token
273273
clearTokens();
274274
} else {
275-
// Update API clients with current token
275+
// Update client APIs with current token
276276
state.apiClients = createApiClients(tokens.access_token);
277277
// Set up auth error handler for rehydrated clients
278278
setAuthErrorHandler(() => {

0 commit comments

Comments
 (0)