1642 Commits

Author SHA1 Message Date
postiz-contribution[bot]
a87826d44a
Merge main into staging 2026-10-15 20:08:33 +00:00
Nevo David
08b1e6b46f Merge remote-tracking branch 'origin/main' 2026-10-15 22:23:33 +03:00
Nevo David
20609d33a0 feat: hubspot integration 2026-10-15 22:23:09 +03:00
postiz-contribution[bot]
4ff903d899
Merge main into staging 2026-10-15 14:08:26 +00:00
Gilad Resisi
021c2ee076
Merge pull request #2266 from gitroomhq/feat/self-host-plus-jakarta-sans
fix(frontend): self-host Plus Jakarta Sans instead of next/font/google
2026-10-15 11:36:47 +00:00
Nevo David
adb8a1a7b2
Merge pull request #2269 from gitroomhq/fix/return-url-same-origin
fix(auth): only follow a returnUrl on this app after signing in
2026-10-15 13:55:39 +03:00
Nevo David
9a88959839 fix(auth): only follow a returnUrl on this app after signing in
ReturnUrlComponent stored ?returnUrl= whenever it contained "http", and
layout.context sent the browser there after login or sign-up. That made the
login an open redirect, and a javascript: value could run script on the
Postiz origin. returnUrl is now kept only when it is an http(s) address on
the app's own origin, checked when it is stored and again when it is read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 13:49:26 +03:00
Nevo David
ef8c7b8c44 feat(hubspot): explain the HubSpot install on the calendar
The HubSpot app's redirect URL (/oauth/hubspot/callback) dropped people on
the bare calendar, so nothing said the install worked or what to do next.
It now lands on /launches?hubspot=installed, where HubspotInstalled opens a
modal with the next steps in HubSpot (Agent Builder > MCP Servers > Postiz
MCP) and then clears the param. returnUrl brings someone who has to sign in
first back to it. Two new strings in en and the 14 Lingo locales.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 13:40:07 +03:00
Nevo David
0956d49ab7 feat: hubspot 2026-10-15 12:53:26 +03:00
Gilad Resisi
ea9c820160 fix(frontend): self-host Plus Jakarta Sans instead of next/font/google
The frontend build fetched Plus Jakarta Sans from Google Fonts at build
time, and a few CI builds failed with "Can't resolve
'@vercel/turbopack-next/internal/font/google/font'". The font is now
loaded with next/font/local from woff2 files in the repo, so the build
no longer depends on Google.

The files are the variable fonts from tokotype/PlusJakartaSans commit
18d1cd2f (the same files google/fonts ships, SIL OFL 1.1, license
included), converted to woff2. All four layouts share one 500-700
upright + italic definition.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 16:35:27 +07:00
claude[bot]
4e999f931d Merge remote-tracking branch 'origin/main' into staging
Resolved-by: claude-code-action

# Conflicts:
#	.env.example
2026-10-15 09:26:27 +00:00
Nevo David
d758146320 Merge remote-tracking branch 'origin/main' 2026-10-15 12:14:46 +03:00
postiz-contribution[bot]
cc7b79d45f
Merge main into staging 2026-10-15 08:08:17 +00:00
Gilad Resisi
a7666b5e2b
Merge pull request #2258 from gitroomhq/fix/youtube-thumbnail-keep-release-url-main
fix(youtube): keep the video id and URL on a post that fails only at the thumbnail step
2026-10-15 07:37:52 +00:00
Gilad Resisi
aff38f99e6 fix(telegram): mark connect command input as read-only
The connect command input had a controlled value without onChange,
which made React log a console error when opening the Telegram
connect modal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 12:19:38 +07:00
Nevo David
7ca9c39ce6 Merge branch 'main' into feat/hubspot-mcp-oauth 2026-10-15 08:09:24 +03:00
Gilad Resisi
23beddcd09 fix(youtube): keep the video id and URL on a post that fails only at the thumbnail step
The video is already live when thumbnails.set is rejected, but the post
ended in ERROR with no release URL, so users re-uploaded duplicates. The
provider now throws PublishedWithError with the video id and URL; the post
activity persists them through PostsService.updateResolvedRelease (the
existing org-scoped repository write, state untouched) and rethrows
BadBody, so every workflow version still marks the post ERROR while the
calendar can link to the live video.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 09:40:09 +07:00
postiz-contribution[bot]
57a8f1553d
Merge main into staging 2026-10-15 02:08:10 +00:00
Gilad Resisi
6cac1d23f3
Merge pull request #2255 from gitroomhq/fix/posts-valid-crash
fix(frontend): handle a failed /posts/valid response in the post modal
2026-10-15 02:03:16 +00:00
Gilad Resisi
81292402ed fix(frontend): handle a failed /posts/valid response in the post modal 2026-10-15 08:53:55 +07:00
Gilad Resisi
b958c5d591 fix(auth): align invite and showorg cookie lifetimes with the token expiry
The frontend proxy stored the team-invite token (org cookie) and the
selected-org cookie (showorg) for only 15 minutes. An invitee who opened
the invite link but finished signing up later lost the invite, even
though the link itself is valid for 2 days since #1643, and a member who
joined via the link fell back to the default org after 15 minutes.

Complementary to the invite token expiry extension in #1643: the org
cookie now lives 2 days to match the link, and showorg gets the same
365-day lifetime the backend already uses for it.
2026-10-15 08:36:12 +07:00
postiz-contribution[bot]
18a5ea493e
Merge main into staging 2026-10-14 20:06:44 +00:00
Nevo David
59a50e8bdf Merge remote-tracking branch 'origin/main' 2026-10-14 23:06:27 +03:00
Nevo David
668c971171 feat: delete tool 2026-10-14 23:03:45 +03:00
postiz-contribution[bot]
860ba04f70
Merge main into staging 2026-10-14 11:07:06 +00:00
Gilad Resisi
8cfe73a5f6
Merge branch 'main' into feat/billing-ai-credits 2026-10-14 16:44:27 +07:00
Gilad Resisi
5a982c60d6 fix(billing): wait for the stored period too before writing the confirmed plan
On a same-plan Monthly/Yearly switch the stored tier already matches
before the webhook, so the first poll wrote a stale snapshot that
reverted the period toggle and could restore cancelAt. showConfirmedPlan
now waits until both the stored tier and period match the change; the
webhook writes tier, period and cancelAt in one update.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 16:34:18 +07:00
Gilad Resisi
f5963e74c8 fix(billing): refresh the card's totals and credits only once the new plan is stored
The in-place plan change only updates Stripe, the stored plan follows
with the webhook, so refetching the credits right away still returned
the old plan's. The billing cycle card now takes its plan from the
stored subscription and, after a plan change, polls /user/subscription
until it matches, then writes the three credit counts and the
subscription into the cache together. Any failure or a webhook slower
than about 10 seconds leaves the previous values in place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 16:24:24 +07:00
Gilad Resisi
7e6b155147 feat(billing): trial-aware renewal sentence, refresh the card after a plan change
getRenewalDate now returns { renewsAt, trialing }: while the Stripe
subscription is trialing, renewsAt is its trial_end and the card says
the free trial ends and the first payment is charged on that date.
After an in-place plan change the renewal date and the credits are
revalidated together with the invoices, so the counters don't mix the
new plan's totals with the old plan's remaining credits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 15:34:18 +07:00
Gilad Resisi
6b6073a3db
Merge branch 'main' into fix/mention-dropdown-dark-mode 2026-10-14 15:11:58 +07:00
Gilad Resisi
53d796ec8e fix(editor): highlight the keyboard-selected mention row
The global .dropdown-menu button rule sets a transparent background with
higher specificity than a plain Tailwind bg class, so the selected row's
bg-boxHover never showed and keyboard navigation had no visible cursor.
Use the dropdown's own hover color with the important modifier for the
selected row, and drop the hover class that the global rule overrode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 15:10:47 +07:00
Gilad Resisi
51795629ec feat(billing): show the renewal date and remaining AI credits on the billing page
Adds a Billing cycle card between the plans and the payment method card:
the next renewal date from the payment provider (new getRenewalDate on the
provider interface, null by default, Stripe reads current_period_end of the
live subscription) via GET /billing/renewal, and the remaining AI images,
AI videos and clipping minutes of the current month from the existing
/copilot/credits endpoint.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 14:57:16 +07:00
Gilad Resisi
b664f5f97f
Merge pull request #2241 from gitroomhq/fix/default-org-prefer-subscribed-main
fix(auth): prefer an org with a subscription as the default active org
2026-10-14 06:48:55 +00:00
Gilad Resisi
26c4c3ba68
Merge pull request #2237 from gitroomhq/fix/downgrade-dialog-team-members
fix(billing): warn about team members only when they exist, and say they are disabled
2026-10-14 06:42:12 +00:00
Gilad Resisi
5356052965
Merge pull request #2236 from gitroomhq/fix/delete-account-cancel-and-remove-members
fix(account): cancel the subscription and remove team members on account deletion
2026-10-14 06:41:41 +00:00
postiz-contribution[bot]
7b0e2f67f8
Merge main into staging 2026-10-14 05:06:58 +00:00
Nevo David
6f4156afcb Merge remote-tracking branch 'origin/main' 2026-10-14 08:06:44 +03:00
Nevo David
a36eada0aa feat: cancel 2026-10-14 08:06:34 +03:00
Nevo David
b1a28b17eb feat: hubspot 2026-10-14 08:04:22 +03:00
Gilad Resisi
2775f59ae9 fix(editor): make the mention dropdown readable in dark mode
The @mention suggestion list used hardcoded light colors (bg-white,
text-gray-800, bg-blue-100). In dark mode bg-white resolves to the dark
background while the label stays near-black, so results were invisible
and the list looked empty. Use the theme tokens the other menus use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 18:57:04 +07:00
Gilad Resisi
5f6008bba0 fix(auth): prefer an org with a subscription as the default active org
When no showorg cookie is set (or it no longer matches), the auth
middleware fell back to the first org of an unordered query. Invited
team members who also own an empty personal org could land behind the
paywall instead of in the paid team org they joined. Prefer an org that
has a subscription before falling back to the first one. An explicit
showorg cookie still wins.
2026-10-13 08:52:40 +07:00
Gilad Resisi
bc7b7d4707 fix(billing): keep the downgrade warning when the team list cannot be loaded
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 23:24:11 +07:00
Gilad Resisi
41f23e9d52 fix(account): cancel the subscription and remove team members on account deletion
Deleting an account was blocked with "Please remove your team members
before deleting your account" whenever the org had any other member. When a
plan loses team members the subscription flow only disables them, it does not
remove them, so an owner of a cancelled org who could not reach the team
settings (billing paywall) was stuck and could never delete the account.

The owner's explicit confirmation now covers both effects instead:
- GET /user/delete-account-info returns hasSubscription / hasAdditionalMembers
  across the orgs the user owns, and the confirmation dialog states that the
  subscription will be cancelled and/or the additional team members removed
  from the organization (four text variants).
- deleteAccount removes every other member of each deleted org, whether the
  subscription is still active or already cancelled (members disabled).
- An org with another SUPERADMIN is not treated as owned: deleting the
  account only removes the user from it and the org is left untouched.

Subscription cancellation itself is unchanged (cancelAllSubscriptions in the
controller, before deleteAccount).

Verified end to end in Stripe test mode with stripe listen: an org with an
active subscription and an enabled member, and an org whose subscription was
already cancelled with a disabled member, were both deleted; the Stripe
subscription ended up canceled, the Subscription row was removed and the
members kept their own orgs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 19:56:44 +07:00
Gilad Resisi
97d14d0138 fix(billing): warn about team members only when they exist, and say they are disabled
The downgrade and cancel confirmations always said "Your team members will
be removed from your organization" when moving from a plan with team members
to one without, even for an org with no members. They are not removed: the
subscription flow only sets userOrganization.disabled, and a later upgrade to
a team plan re-enables them.

moveToCheckout now loads /settings/team and adds the message only when the
org has a member other than the current user (or the list cannot be read),
and the text says the members are disabled until the org is on a plan that
includes team members again.

Verified end to end in Stripe test mode with stripe listen: a TEAM org with
a member downgraded to STANDARD (webhook disabled the member) and upgraded
back to TEAM (webhook re-enabled it).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 19:56:44 +07:00
claude[bot]
74184a1885 Merge remote-tracking branch 'origin/main' into staging
Resolved-by: claude-code-action

# Conflicts:
#	libraries/nestjs-libraries/src/integrations/refresh.integration.service.ts
2026-10-09 08:36:36 +00:00
postiz-contribution[bot]
3fdd9ccf5a
Merge main into staging 2026-10-09 05:02:44 +00:00
Gilad Resisi
0d486f75e8 Merge origin/main into fix/google-workspace-session-observability
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 09:33:10 +07:00
Gilad Resisi
2e2d8ed00b fix(integrations): log the error behind "Authentication failed" on social connect
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 09:09:28 +07:00
postiz-contribution[bot]
971500f815
Merge main into staging 2026-10-08 23:02:36 +00:00
Enno Gelhaus
4c5d42a92f
feat: superadmin public api endpoint to reset an org's ai credits 2026-10-08 22:41:53 +02:00