Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
99ddd78
initial chunk and import changes
jasonmorais Feb 4, 2026
b4c40dc
bundling, test fixes, and naming convetions
jasonmorais Feb 4, 2026
2443c89
build pipeline fixes
jasonmorais Feb 5, 2026
2c2db5e
fix: rename App.tsx to app.tsx for case-sensitive filesystem compatib…
jasonmorais Feb 5, 2026
713e1cc
fix: add missing .tsx extension to ViewListing import
jasonmorais Feb 5, 2026
361b9a9
fix: improve Storybook test stability in CI
jasonmorais Feb 5, 2026
bf6d7d3
Revert "fix: improve Storybook test stability in CI"
jasonmorais Feb 5, 2026
56cc5cb
fix: update story tests to not expect mock content
jasonmorais Feb 5, 2026
050c45a
attempt to raise test coverage
jasonmorais Feb 5, 2026
ff67c03
sourcery sugggestion
jasonmorais Feb 5, 2026
f30c79b
Potential fix for pull request finding 'Unused variable, import, func…
jasonmorais Feb 5, 2026
bd7d403
attempt to bypass coverage for uneeded files
jasonmorais Feb 5, 2026
fd561bb
attempt for deployement
jasonmorais Feb 5, 2026
7b3d704
copilot suggested modification - commiting to experiment with fix (no…
jasonmorais Feb 6, 2026
f2f74f0
second copilot fix attempt
jasonmorais Feb 6, 2026
0942746
Merge branch 'main' into jason/react-skills-improvements
jasonmorais Feb 10, 2026
8957785
story file fixes
jasonmorais Feb 10, 2026
f77e913
remove old additions for build
jasonmorais Feb 10, 2026
ad80d59
fixing deploy setitngs
jasonmorais Feb 10, 2026
77500e0
rerun builds
jasonmorais Feb 10, 2026
d2681f4
testing a copilot idea
jasonmorais Feb 10, 2026
2242a5a
undid cache clear
jasonmorais Feb 11, 2026
172b989
pipeline reload
jasonmorais Feb 11, 2026
03ce7cc
storybook error removal, on and off issue with storybook tests failin…
jasonmorais Feb 11, 2026
7a8cfcf
removed lazy loading and instead did more chunk handling due to test …
jasonmorais Feb 11, 2026
1ca17d9
revert back to lazy route loading, avoiding bad practice in vite config
jasonmorais Feb 11, 2026
5d0f222
fix config issue with dynamic imports
jasonmorais Feb 11, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .force-deploy
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# Set FORCE_DEPLOY_* flags to control manual deployment overrides
# Set to 'true' to force deployment, 'false' to disable

FORCE_DEPLOY_API=true
FORCE_DEPLOY_UI=true
FORCE_DEPLOY_API=false
FORCE_DEPLOY_UI=false
FORCE_DEPLOY_DOCS=false

# Developers: Change any value to 'true' to force deployment of that package
Expand Down
1 change: 1 addition & 0 deletions apps/api/src/cellix.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import api, { type Tracer } from '@opentelemetry/api';
import { expect, type MockedFunction, vi } from 'vitest';
import { Cellix } from './cellix.ts';


// Mock Azure Functions
const test = { for: describeFeature };

Expand Down
1 change: 1 addition & 0 deletions apps/docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import fs from 'node:fs';

// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)


const config: Config = {
title: 'Sharethrift Docs',
tagline: 'Domain-Driven Design for Modern Azure Applications',
Expand Down
2 changes: 2 additions & 0 deletions apps/ui-sharethrift/.storybook/vitest.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ import { setProjectAnnotations } from '@storybook/react-vite';
import * as projectAnnotations from './preview';

setProjectAnnotations([a11yAddonAnnotations, projectAnnotations]);


94 changes: 0 additions & 94 deletions apps/ui-sharethrift/src/App.container.stories.tsx

This file was deleted.

178 changes: 178 additions & 0 deletions apps/ui-sharethrift/src/app.container.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
import type { Meta, StoryObj } from '@storybook/react';
import { AppContainer } from './app.container.tsx';
import {
withMockApolloClient,
withMockRouter,
MockUnauthWrapper,
} from './test-utils/storybook-decorators.tsx';
import { AppContainerCurrentUserDocument, ListingsPageContainerGetListingsDocument, UseUserIsAdminDocument } from './generated.tsx';
import { MemoryRouter, Route, Routes } from 'react-router-dom';

const meta: Meta<typeof AppContainer> = {
title: 'App/AppContainer',
component: AppContainer,
parameters: {
layout: 'fullscreen',
},
};

export default meta;
type Story = StoryObj<typeof meta>;

export const AuthenticatedCompletedOnboarding: Story = {
decorators: [withMockApolloClient, withMockRouter('/')],
parameters: {
apolloClient: {
mocks: [
{
request: {
query: AppContainerCurrentUserDocument,
variables: {},
},
result: {
data: {
currentUserAndCreateIfNotExists: {
__typename: 'PersonalUser' as const,
id: 'user-123',
userType: 'personal-user',
hasCompletedOnboarding: true,
},
},
},
},
{
request: {
query: ListingsPageContainerGetListingsDocument,
},
result: {
data: {
itemListings: [
{
__typename: "ItemListing",
id: "64f7a9c2d1e5b97f3c9d0a41",
title: "City Bike",
description: "Perfect for city commuting.",
category: "Sports & Recreation",
location: "Philadelphia, PA",
state: "Active",
images: ["/assets/item-images/bike.png"],
createdAt: "2025-08-08T10:00:00Z",
updatedAt: "2025-08-08T12:00:00Z",
sharingPeriodStart: "2025-08-10T00:00:00Z",
sharingPeriodEnd: "2025-08-17T00:00:00Z",
schemaVersion: "1",
version: 1,
reports: 0,
sharingHistory: [],
},
],
},
},
},
{
request: {
query: UseUserIsAdminDocument,
},
result: {
data: {
currentUser: {
__typename: "PersonalUser",
id: "user-123",
userIsAdmin: false,
},
},
},
},
],
},
},
};

export const AuthenticatedNotCompletedOnboarding: Story = {
decorators: [withMockApolloClient, withMockRouter('/')],
parameters: {
apolloClient: {
mocks: [
{
request: {
query: AppContainerCurrentUserDocument,
variables: {},
},
result: {
data: {
currentUserAndCreateIfNotExists: {
__typename: 'PersonalUser' as const,
id: 'user-456',
userType: 'personal-user',
hasCompletedOnboarding: false,
},
},
},
},
{
request: {
query: ListingsPageContainerGetListingsDocument,
},
result: {
data: {
itemListings: [
{
__typename: "ItemListing",
id: "64f7a9c2d1e5b97f3c9d0a41",
title: "City Bike",
description: "Perfect for city commuting.",
category: "Sports & Recreation",
location: "Philadelphia, PA",
state: "Active",
images: ["/assets/item-images/bike.png"],
createdAt: "2025-08-08T10:00:00Z",
updatedAt: "2025-08-08T12:00:00Z",
sharingPeriodStart: "2025-08-10T00:00:00Z",
sharingPeriodEnd: "2025-08-17T00:00:00Z",
schemaVersion: "1",
version: 1,
reports: 0,
sharingHistory: [],
},
],
},
},
},
{
request: {
query: UseUserIsAdminDocument,
},
result: {
data: {
currentUser: {
__typename: "PersonalUser",
id: "user-456",
userIsAdmin: false,
},
},
},
},
],
},
},
};

export const Unauthenticated: Story = {
decorators: [
withMockApolloClient,
(Story) => (
<MockUnauthWrapper>
<MemoryRouter initialEntries={['/']}>
<Routes>
<Route path="*" element={<Story />} />
</Routes>
</MemoryRouter>
</MockUnauthWrapper>
),
],
parameters: {
apolloClient: {
mocks: [],
},
},
};
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { FC } from "react";
import { useQuery } from "@apollo/client/react";
import { AppContainerCurrentUserDocument } from "./generated.tsx";
import { App } from "./App.tsx";
import { App } from "./app.tsx";
import { ComponentQueryLoader } from "@sthrift/ui-components";
import { useAuth } from "react-oidc-context";
import { UserIdProvider } from "./components/shared/user-context.tsx";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { expect } from 'storybook/test';
import { MemoryRouter } from 'react-router-dom';
import { AuthProvider } from 'react-oidc-context';
import { MockedProvider } from '@apollo/client/testing/react';
import { App } from './App.tsx';
import { App } from './app.tsx';

const mockEnv = {
VITE_FUNCTION_ENDPOINT: 'https://mock-functions.example.com',
Expand Down
File renamed without changes.
Loading
Loading