Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
8761536
feat(composer): edit shared posts in the new composer
tsahimatsliah Aug 4, 2026
43ab801
feat(composer): share to squad through the new composer
tsahimatsliah Aug 4, 2026
089848d
test(share): assert the composer opens from the share modal
tsahimatsliah Aug 4, 2026
4bd45db
fix(composer): compare dirty state against seeded values
tsahimatsliah Aug 4, 2026
fc6c883
chore(composer): trim commentary to load-bearing notes
tsahimatsliah Aug 4, 2026
ec06338
Merge branch 'claude/mobile-comment-input-fix-2e164b' into claude/edi…
tsahimatsliah Aug 4, 2026
352d05d
test(share): cover the discussion share row's composer trigger
tsahimatsliah Aug 4, 2026
b998f0a
fix(composer): harden the review findings from the full-PR pass
tsahimatsliah Aug 4, 2026
194a5ba
fix(composer): unblock title-only edits and desktop comment autofocus
tsahimatsliah Aug 4, 2026
439cb67
chore: appease react/destructuring-assignment in NewComment spec
tsahimatsliah Aug 4, 2026
85c1066
test(composer): assert the drawer portal without container methods
tsahimatsliah Aug 4, 2026
ff2b0fe
Merge branch 'claude/mobile-comment-input-fix-2e164b' into claude/edi…
tsahimatsliah Aug 5, 2026
43a1d64
Merge branch 'claude/mobile-comment-input-fix-2e164b' into claude/edi…
tsahimatsliah Aug 5, 2026
3c3ca94
chore(composer): second commentary trim
tsahimatsliah Aug 5, 2026
dfc2178
Merge branch 'claude/mobile-comment-input-fix-2e164b' into claude/edi…
tsahimatsliah Aug 5, 2026
7e88c6d
Merge branch 'claude/mobile-comment-input-fix-2e164b' into sync-6422
tsahimatsliah Aug 8, 2026
052ec50
Merge branch 'main' into claude/edit-post-new-composer
rebelchris Aug 27, 2026
0869bd4
Merge remote-tracking branch 'origin/claude/mobile-comment-input-fix-…
rebelchris Aug 27, 2026
54de29b
fix(composer): keep title-only freeform edits after syncing base
rebelchris Aug 27, 2026
baf1929
Merge remote-tracking branch 'origin/claude/mobile-comment-input-fix-…
rebelchris Aug 27, 2026
cbf272b
Merge branch 'claude/mobile-comment-input-fix-2e164b' into claude/edi…
rebelchris Aug 27, 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
21 changes: 15 additions & 6 deletions packages/shared/src/components/ShareBar.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import { generateTestSquad } from '../../__tests__/fixture/squads';
import { getFacebookShareLink, getTwitterShareLink } from '../lib/share';
import { LazyModalElement } from './modals/LazyModalElement';
import { NotificationsContextProvider } from '../contexts/NotificationsContext';
import SettingsContext from '../contexts/SettingsContext';
import { settingsContext } from '../../__tests__/helpers/boot';

const defaultPost = Post;
Object.defineProperty(window, 'matchMedia', {
Expand Down Expand Up @@ -65,10 +67,12 @@ const renderComponent = (
loadedUserFromCache
squads={customSquads}
>
<NotificationsContextProvider>
<LazyModalElement />
<ShareBar post={post} />
</NotificationsContextProvider>
<SettingsContext.Provider value={settingsContext}>
<NotificationsContextProvider>
<LazyModalElement />
<ShareBar post={post} />
</NotificationsContextProvider>
</SettingsContext.Provider>
</AuthContextProvider>
</QueryClientProvider>,
);
Expand Down Expand Up @@ -113,15 +117,20 @@ describe('ShareBar Test Suite:', () => {
});
});

it('should render the component with logged user and squads and open the share to squad modal', async () => {
it('should render the component with logged user and squads and open the share to squad composer', async () => {
renderComponent();
const btn = await screen.findByTestId(`social-share-@${squads[0].handle}`);

expect(btn).toBeInTheDocument();
btn.click();
await waitFor(() => {
expect(screen.getByText('New post')).toBeInTheDocument();
expect(
screen.getByRole('textbox', { name: 'Post commentary' }),
).toBeInTheDocument();
});
expect(screen.getByRole('textbox', { name: 'Link URL' })).toHaveValue(
defaultPost.permalink,
);
});

it('should render the Facebook button and navigate to correct link', async () => {
Expand Down
8 changes: 4 additions & 4 deletions packages/shared/src/components/ShareBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ export default function ShareBar({ post }: ShareBarProps): ReactElement {
const onShareToSquad = (squad: Squad) => {
logEvent(postLogEvent(LogEvent.StartShareToSquad, post));
openModal({
type: LazyModal.CreateSharedPost,
type: LazyModal.SmartComposer,
props: {
squad,
initialUrl: post.permalink,
preview: post,
onSharedSuccessfully: () =>
logEvent(postLogEvent(LogEvent.ShareToSquad, post)),
initialSquadId: squad.id,
onPosted: () => logEvent(postLogEvent(LogEvent.ShareToSquad, post)),
},
});
};
Expand Down
192 changes: 0 additions & 192 deletions packages/shared/src/components/liveRooms/CreateLiveRoomForm.spec.tsx

This file was deleted.

Loading
Loading