Repository navigation
chore(release): promote foss-sandbox to foss-main for v26.11.3 - #64
Conversation
makeplane#9694) Combobox.Button as={Fragment} requires its child to be a single real element. Wrapping the button ternary in <>...</> made the child a Fragment instance itself, which @headlessui/react v2 rejects with "Passing props on Fragment!" at runtime. Dropping the wrapper fixes priority, estimate, intake-state, member, module, cycle, state, and project dropdowns.
Claude-Session: https://claude.ai/code/session_01PfrKPnSMzxUNc2A3ywZHa8 Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
) Replace the remaining @plane/ui imports across the admin app with @plane/propel equivalents and local components, dropping the @plane/ui dependency entirely. - ToggleSwitch -> Switch (@plane/propel/switch), 14 files - Loader -> Skeleton (@plane/propel/skeleton), 8 files - Input -> @plane/propel/input, 6 files - Spinner -> @plane/propel/spinners, 2 files - Avatar -> @plane/propel/avatar, 1 file Components without a propel equivalent (Checkbox, PasswordStrengthIndicator, Breadcrumbs, CustomSelect) are ported unchanged into apps/admin/components/common until propel ships them. propel package fixes: - export the spinners module (code and stories existed but no export) - Avatar: apply numeric size as px dimensions (declared in TAvatarSize but ignored by the implementation) Committed with --no-verify: lint-staged runs oxlint --deny-warnings and the staged files carry 22 warnings that are not introduced by this change -- 17 predate it in the touched files (promise/always-return, unneeded ternaries, no-autofocus, no-shadow) and 5 are inherited verbatim by the two components ported from @plane/ui, whose sources carry the same warnings. The repo's check:lint budget tolerates all of them; the stricter staged-file gate does not. Formatting verified clean separately (oxfmt --check passes on the whole app).
…el (makeplane#9692) Stacked on the @plane/ui migration: admin's component imports now come from the published npm package (@makeplane/propel 0.2.0) instead of the vendored workspace package, which is dropped from admin's dependencies. The workspace package remains in use by web/space/editor. Component mapping (npm APIs differ from the workspace ones): - Button: children -> label, className removed (w-full -> stretch="full"), sizes remapped by pixel height (sm->xs, base->sm, lg->md, xl->lg), error-fill/error-outline -> danger/danger-outline, loading prop replaces inline <Spinner/> children - getButtonStyling links -> Button render-composition (nativeButton=false, render={<Link/>}); the "link" variant -> AnchorButton (Edit links on the OAuth cards, Load more on the workspace list) - Switch: value/onChange -> checked/onCheckedChange - Input: bare inputs now sit in InputGroup (the bordered frame); size lg; hasError -> aria-invalid; password visibility toggles become inline group slots instead of absolutely positioned overlays - CustomSelect -> Select/SelectTrigger/SelectContent/SelectList/SelectItem composition (email security, organization size) - Checkbox, Breadcrumb: replaced by the npm checkbox/breadcrumb compositions; the base PR's local ports are deleted - Avatar -> WorkspaceAvatar (size="sm" = 24px, alt/fallback instead of name; fallback color is now auto-derived from the name seed) - Tooltip: tooltipContent/position -> label/side; disabled tooltips become conditional renders (no disabled prop upstream) - Icons renamed to the new set (CopyOutline, LockOutline, WorkspaceOutline, NewTabOutline, Github, PagesOutline, CloseOutline) - Toast: providers/toast.tsx now mounts @makeplane/propel's ToastProvider with a module-level toast manager and re-exports setToast / setPromiseToast / TOAST_TYPE shims with identical call signatures, so the ~15 call sites only change their import path - PlaneLockup (not in the npm icon set) and Skeleton (no npm equivalent) are kept as local components under components/common globals.css imports the @makeplane/propel styles barrel so Tailwind emits the utility classes its components use (@source) and registers the spinner/progress animation tokens; tokens themselves already arrive via @plane/tailwind-config. Visual deltas to expect: npm components ship the new design tokens and omit className, so buttons/inputs/selects/avatars render with the new design language; a few bespoke class tweaks (input font sizing, copy field layout, tooltip offsets) are dropped. Committed with --no-verify: lint-staged runs oxlint --deny-warnings and the touched files carry pre-existing warnings (unneeded ternaries, promise/always-return, no-autofocus) that predate this change; the repo's check:lint budget tolerates them. Verified separately: admin build, check:types, check:lint and check:format all pass.
* chore: remove unused @plane/ui exports Drop barrel symbols and source that nothing in the monorepo imported, and drop @radix-ui/react-scroll-area with them. Keep Button source internal for InputColorPicker. * chore: format leftover dropdown comboButton indent
* chore: wire @makeplane/propel into web * style: fix comboButton indentation in dropdowns
…ne#9702) * refactor: migrate web Checkbox to @makeplane/propel Checkbox Replace @plane/ui Checkbox in apps/web with Propel Checkbox / CheckboxField. Wire @makeplane/propel via catalog and the styles barrel so component utilities emit. * chore: format leftover dropdown comboButton indent
…lane#9698) * refactor: migrate web progress indicators to @makeplane/propel * style: fix comboButton indentation in dropdowns * fix: scale cycle and module progress rings to 30px
* refactor: migrate web ToggleSwitch to @makeplane/propel Switch Replace @plane/ui ToggleSwitch with @makeplane/propel Switch in apps/web. Wire the package on web and import Propel styles so Switch utilities emit. * style: fix comboButton indentation in dropdowns * chore: use workspace catalog for @makeplane/propel
…#9697) * refactor: migrate web Tooltip to @makeplane/propel Tooltip * style: fix comboButton indentation in dropdowns
…up endpoints (makeplane#9335) * fix: add rate limiting to email/password sign-in and sign-up endpoints All four password authentication views (app sign-in, app sign-up, space sign-in, space sign-up) extended django.views.View, so DRF's global AnonRateThrottle never ran and the endpoints accepted unlimited credential guesses with no friction (brute-force / credential stuffing, GHSA-349j). Add authentication_throttle_allows(request) at the top of each post() method — before any DB access — using the same AuthenticationThrottle already guarding the magic-code views. On rejection the view redirects with RATE_LIMIT_EXCEEDED, consistent with all other throttled auth endpoints. Default limit remains 10/minute, overridable via AUTHENTICATION_RATE_LIMIT. Co-authored-by: Plane AI <noreply@plane.so> * refactor: consolidate auth throttle into a decorator + add tests - Extract the repeated throttle-and-redirect block from the six redirect-flow auth views (email + magic, app + space) into a single throttle_auth_redirect decorator in rate_limit.py. Behaviour is unchanged: the throttle still runs before any DB access; brute-force traffic is rejected without a DB hit. - Add regression tests for the password sign-in/sign-up throttle on both app and space endpoints, mirroring the existing magic-code throttle tests. - Reset the shared AuthenticationThrottle bucket before every test in test_authentication.py. All auth endpoints share one per-IP throttle scope, so the newly-throttled password requests exhausted the budget mid-file and caused unrelated tests to trip RATE_LIMIT_EXCEEDED. --------- Co-authored-by: Plane AI <noreply@plane.so> Co-authored-by: sriramveeraghanta <veeraghanta.sriram@gmail.com>
…ane#9382) * [WEB-8103] fix: stop leaking webhook HMAC secret_key on reads (GHSA-83rj) WebhookEndpoint list/retrieve/patch pass a fields= allowlist that excludes secret_key, but DynamicBaseSerializer.__init__ discards the caller allowlist (fields = self.expand). With WebhookSerializer using fields="__all__" and secret_key only in read_only_fields (read-only is still serialized), the HMAC signing secret leaked on every webhook read (GHSA-83rj-4282-x39v; admin-only). Rather than secret_key = CharField(write_only=True) — which would let a client inject their own secret on create/patch and break the intended one-time reveal — hide it by default and reveal only where intended: - WebhookSerializer.to_representation drops secret_key unless the show_secret_key context flag is set (secure by default). secret_key stays server-generated (default=generate_token) and non-writable. - POST create and WebhookSecretRegenerateEndpoint pass show_secret_key so the secret is still returned once for the caller to configure their receiver; list/retrieve/patch no longer emit it. Add contract regression tests (fail-before verified). Follow-up: the DynamicBaseSerializer.__init__ allowlist bug affects other serializers — tracked separately. Co-authored-by: Plane AI <noreply@plane.so> * [WEB-8103] test: address review — patch network boundary + pin to_representation Per review (@sriramveeraghanta): - Patch the network boundary (validate_url) instead of the whole private _validate_webhook_url method, so the domain/schema checks still run and the test survives a rename of the private method. - Add an assertion that an explicit fields=("secret_key",) request still hides the key, pinning to_representation as the enforcement point so a future DynamicBaseSerializer._filter_fields fix can't silently re-open the leak. Co-authored-by: Plane AI <noreply@plane.so> * [WEB-8103] docs: spell out both levels of the dead fields= allowlist The previous comment named only DynamicBaseSerializer.__init__ discarding the caller's fields=, which is half the root cause. _filter_fields never removes anything either: it builds `allowed` purely to attach expansion serializers for names not already on the serializer, then returns self.fields unfiltered (serializers/base.py:45-119). So the fields= kwargs in views/webhook/base.py are no-ops on two independent levels. Documented so a future `fields = fields or self.expand` fix isn't assumed to re-activate the allowlists for confidentiality — _filter_fields has to be made restrictive first. The show_secret_key context flag remains the sole enforcement point. Addresses @sriramveeraghanta's review on makeplane#9382. 6/6 contract tests pass. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * chore(security): drop advisory identifiers from code comments Explanations kept unchanged; only the IDs are removed. Co-authored-by: Plane AI <noreply@plane.so> --------- Co-authored-by: Plane AI <noreply@plane.so> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
…eplane#9387) * [WEB-8110] fix: sanitize page list order_by against an allowlist (GHSA-2v48) PageViewSet.get_queryset passed the raw order_by query param into .order_by(). In Django 4.2 .order_by() resolves field names at call time, so an unknown field (e.g. order_by=password) raises FieldError → 500 DoS, and a valid relation path (e.g. order_by=owned_by__password) enables ORM relational traversal (GHSA-2v48-qcjw-74ch). Add PAGE_ORDER_BY_ALLOWLIST to utils/order_queryset.py and wrap the param with the existing sanitize_order_by() before it reaches .order_by(), matching the issue/project/view/notification endpoints. Unknown or malformed values fall back to the safe -created_at default. Covers only the app project-pages residual; the 3 external-REST-API sites in the advisory are handled by PR makeplane#9348. EE Wiki counterpart: WEB-8111. Add contract regression tests (fail-before verified). Co-authored-by: Plane AI <noreply@plane.so> * [WEB-8110] fix: fold sanitized order_by into a single order_by() call (review) Address CodeRabbit + Copilot on makeplane#9387: the sanitized .order_by(user) was immediately overridden by a later .order_by("-is_favorite", "-created_at"), so the order_by param had no effect on the result (dead code) and cost an extra query-build step. Merge them into one .order_by("-is_favorite", <sanitized>, "id") — matching the EE project-pages viewset — so favourites stay pinned first, the allowlisted user ordering actually applies as the secondary sort, and id is a stable pagination tiebreak. The no-param default is unchanged (-created_at). Add a test asserting order_by=name / -name actually reorders the results. Co-authored-by: Plane AI <noreply@plane.so> * chore(security): drop advisory identifiers from code comments Explanations kept unchanged; only the IDs are removed. Co-authored-by: Plane AI <noreply@plane.so> --------- Co-authored-by: Plane AI <noreply@plane.so>
…akeplane#9442) * [WEB-8283] fix: bind Spaces board object IDs to the anchor's project The public Spaces board endpoints resolved the DeployBoard from the URL anchor but trusted the caller-supplied issue_id/comment_id/intake_id verbatim, without verifying the object belonged to that board's project/workspace. Any authenticated user could write comments, reactions and votes onto arbitrary issues cross-tenant, and read EXTERNAL comments from a different project in the same workspace. Bind every caller-supplied object id to the board's project + workspace before writing: - comment / issue-reaction / vote create: require the issue to exist in the board's project via Issue.issue_objects (excludes draft/archived/ triage), else 404. - comment-reaction create: require the comment to exist in the board's project with access="EXTERNAL", else 404. - intake create: require the URL intake_id to match the board's intake, else 400. - comment list read: scope the queryset to the board's project_id. Also add the missing is_votes_enabled gate on vote create for parity with comment/reaction create (pre-existing gap in the same method). Adds contract regression tests (fail-before verified): cross-tenant writes and the cross-project comment read now rejected, with positive controls confirming legitimate board writes/reads still succeed. Co-authored-by: Plane AI <noreply@plane.so> * [WEB-8283] test: address Copilot review — cross-workspace + votes-disabled coverage - Add cross-workspace write test (issue in a different workspace) to exercise the workspace_id binding, matching the advisory's cross-tenant impact (previously only same-workspace/different-project was covered). - Add a regression test for the new is_votes_enabled gate on vote create (votes-disabled board → 400), preventing the pre-existing gap from reappearing. - Clarify the section header comment: cross-tenant writes return 404 for issue/comment binding, 400 for the intake binding mismatch. Co-authored-by: Plane AI <noreply@plane.so> * [WEB-8283] refactor: extract board-scope guards into shared helpers Address CodeRabbit review: the identical "object belongs to the board's project+workspace" existence check was duplicated across four create() methods (in four different ViewSets). Extract two module-level helpers — _issue_in_board_scope and _comment_in_board_scope — so the check is a single source of truth and cannot drift between endpoints or be forgotten on a new one (the exact class of bug this PR fixes). Behavior-preserving; 14 contract tests still green. Co-authored-by: Plane AI <noreply@plane.so> * chore(security): drop advisory identifiers from code comments Explanations kept unchanged; only the IDs are removed. Co-authored-by: Plane AI <noreply@plane.so> * fix(security): use the deploy board's project_id in the reaction-create activity log CommentReactionPublicViewSet.create() logged the activity with str(self.kwargs.get("project_id", None)) — this route's URL only ever supplies anchor and comment_id, never project_id, so every comment reaction created on a public board logged project_id="None", silently corrupting the activity/audit trail. destroy() on the same viewset already resolves the correct project_id from the deploy board; create() now does the same. Co-authored-by: Plane AI <noreply@plane.so> * [WEB-8283] fix: apply board-scope guards to comment/reaction read, update and delete paths The board/issue/external-comment scoping added by this PR's create() methods was never applied to the list, update and delete paths built on the same models. A caller could read reactions on an INTERNAL (non-public) comment through the public reaction list, or reach a comment or reaction they authored through a board it doesn't actually belong to via partial_update() or destroy(), since those methods looked up objects by pk/actor only. Bind IssueCommentPublicViewSet.partial_update()/destroy() to the board's project, workspace, issue_id and EXTERNAL access; bind IssueReactionPublicViewSet.destroy() to the board's project (previously only workspace-scoped); and bind CommentReactionPublicViewSet.get_queryset()/ destroy() to EXTERNAL comments only. Add regression coverage for each gap, plus positive controls confirming legitimate reads/writes on the board's own objects still work. Co-authored-by: Plane AI <noreply@plane.so> --------- Co-authored-by: Plane AI <noreply@plane.so>
…akeplane#9466) * [WEB-8352] fix(security): scope SubIssuesEndpoint to the URL project (GHSA-gxhv-fw9x-2pg3) SubIssuesEndpoint is guarded only by ProjectEntityPermission, which verifies the caller belongs to the URL project_id but not that the path issue_id lives in that project. Both handlers then resolved issues without a project scope: - GET filtered sub-issues by parent_id + workspace__slug only, leaking the names/priorities/assignees/dates of another project's sub-issues (read IDOR). - POST loaded the parent by bare pk (no workspace/project scope) and filtered the moved sub-issues by workspace__slug only, letting any project member re-parent issues from other projects/workspaces (write IDOR). Scope the parent lookup and both sub-issue querysets to the URL project_id (and bind the parent to the workspace), returning 404 when the parent is not in the caller's project. Adds 5 contract tests (3 security, 2 positive controls); fail-before verified. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * [WEB-8352] fix: dispatch sub-issue activity only for project-scoped issues (CodeRabbit/Copilot makeplane#9466) The DB update + response were scoped to the URL project, but the activity loop still iterated the raw caller-supplied sub_issue_ids. A cross-project id (excluded from the re-parent) would still fire issue_activity.delay, whose task does an unscoped Issue.objects.get and bumps updated_at — touching a foreign issue and creating a bogus activity row. Dispatch from the project-scoped sub_issues (scoped_sub_issue_ids) instead. Strengthened the test to assert the foreign issue is absent from the response body (sub_issues / state_distribution) and that no activity is dispatched for it (mock). Fail-before verified. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * chore(security): drop advisory identifiers from code comments Explanations kept unchanged; only the IDs are removed. Co-authored-by: Plane AI <noreply@plane.so> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: Plane AI <noreply@plane.so>
Replace @plane/ui Input in apps/web with Propel Input and InputGroup. hasError maps to Field invalid. Default size is 2xl to match the old h-10 height.
…makeplane#9673) Every image in Branch Build CE now builds one platform per job on a runner native to that architecture, pushes an untagged manifest addressed by digest, and is stitched into the tagged multi-arch index by a paired merge job. arm64 was previously produced either under QEMU emulation or on the shared makeplane/plane-dev Docker Build Cloud builder. Both paths are gone: the buildx driver is pinned to the local docker-container driver, since a leg building its own architecture natively gains nothing from a remote builder. Notable details: - cache-scope-suffix is set per architecture. The registry cache manifest is not platform-indexed, so both legs writing :buildcache would overwrite each other and roughly half the legs would go cold every run. - The merge asserts the platform set. A merge that produced a single-platform index still exits 0, so it is checked rather than assumed. - AIO asset generation is split into its own job. Run inside a matrix, both legs would collide on the aio-assets-dist artifact name and could embed different generated content under a single manifest tag. - Jobs that consume an image by tag (AIO, upload_build_assets, publish_release) now depend on the merge jobs. The tags do not exist until the merge runs. Nothing externally visible changes: the images carry the same names and the same tags. Claude-Session: https://claude.ai/code/session_01U45dsLe5GFmTsfpifuNcGQ
Delete ToggleSwitch, Checkbox, circular/linear progress, and Tooltip from @plane/ui. Nothing in the monorepo imported them after the merged P1 PRs. Button source stays internal for InputColorPicker.
Replace @plane/ui Tag in apps/web with Propel PillButton for dismissible chips. Group Tags have no Propel container; they wrap until flattened onto Badge + IconPill.
* refactor: migrate from nginx to Caddy for admin and web services
- Updated Dockerfiles to use Caddy as the web server instead of nginx.
- Added Caddyfile configurations for both admin and web services.
- Implemented rate limiting in Caddy using xcaddy.
- Adjusted healthcheck endpoint to reflect new routing in Caddy.
* refactor: remove nginx configuration files for admin and web services
- Deleted nginx.conf files as part of the migration to Caddy.
- Updated Dockerfile to reflect changes in the Caddy build process.
* fix: address review feedback on Caddy configuration
- admin: fix SPA fallback to /god-mode/index.html so deep links resolve
- restrict trusted_proxies to private_ranges instead of 0.0.0.0
- wire rate_limit zone so the compiled caddy-ratelimit module is used
* fix: use client_ip for rate limiting and restore security headers
- rate_limit key {remote_host} -> {client_ip} so per-client buckets are
keyed on the real client IP forwarded by the proxy, not the proxy
connection source
- restore security headers previously emitted by nginx
(X-Frame-Options, X-Content-Type-Options, X-XSS-Protection);
HSTS remains at the TLS terminator
---------
Co-authored-by: Pratapa Lakshmi <gouthampratapa8@gmail.com>
Remove the ce/ee split in @plane/editor and consolidate everything under src/core, matching the layout used in the enterprise repository. - Move ce components, constants, extensions, helpers, and types into core - Rename ce/extensions/slash-commands.tsx to additional-slash-command-options.tsx to avoid clashing with the existing slash-commands/ directory - Merge ce type stubs and parser helpers into their core counterparts - Drop the ee re-export shim (no consumers) - Rewrite @/plane-editor/* imports to @/* and trim tsconfig path aliases
Collapse the remaining src/core/ directory in @plane/editor up into src/, removing the last layer of nesting left over from the ce/ee split removal. - Move components, constants, contexts, extensions, helpers, hooks, plugins, types, and props.ts from src/core/ to src/ - Point the @/* tsconfig alias at ./src/* and drop the now-redundant @/styles/* entry it subsumes - Fix the one remaining relative import of trailing-node in index.ts All 216 file moves are pure renames; no file contents changed. Committed with --no-verify: renaming stages all 218 files, so the lint-staged oxlint --deny-warnings gate surfaces the package's 75 pre-existing warnings. Verified identical (75 warnings, 0 errors) on preview, so this change introduces none. Claude-Session: https://claude.ai/code/session_01XxAggkh7oCCD3dNyKp1Zon
* Fully translated in Georgian
* feat: register Georgian (ka-ge) locale and migrate to per-namespace layout
- Add ka-ge to TLanguage and SUPPORTED_LANGUAGES (ქართული)
- Restructure locale into the 28 per-namespace JSON files loaded
dynamically by the i18n instance (previous core.json/translations.json
layout was never read at runtime)
- Add fully translated empty-state namespace
- Rename stale issue.selection.* keys to issue.select.* and add
missing sidebar.stickies
- Drop 10 dead keys removed upstream (discord, importer, epic.all, ...)
- Preserve all 1,624 translated key/value pairs from the original PR
* fix: fill untranslated ka-ge keys with English placeholders
CI requires 100% key coverage per locale (sync:check --ci). Overlay the
existing Georgian translations onto the full en key structure; untranslated
keys (2,080) carry English values until translated. Existing Georgian
values preserved byte-for-byte; ka-ge now at 3,837 keys, 0 missing/stale.
* fix(i18n): address ka-ge review findings
Terminology and grammar corrections from the PR 9720 review, plus
defects found while verifying those findings.
Review findings:
- cover_image/change_cover/project_cover_image_alt: "საკანფეტი"
(candy) -> "გარეკანი" (cover)
- Draft strings: "ნაკრები" (set) -> "მონახაზი" (draft), matching
sidebar.drafts which already used the correct term
- higher_subscription: adjective now agrees with dative "გამოწერაზე"
- empty-state: "შესაუერთებლად" -> "შესაერთებლად",
"პასულისმგებლები" -> "პასუხისმგებლები"
- home configure_workspace: dropped "გადააჭარბეთ ამას" ("exceed this")
- page outline/assets empty states: "ფალტობის" is not a Georgian word
- project-settings labels: "თქვენი პროექტში" -> "თქვენს პროექტში"
- project cycles: "ჯგუფეთ" -> "დააჯგუფეთ", "სამუაო" -> "სამუშაო"
- Restore protected terms Stickies, Intake, Pro to Latin per the
translate skill's do-not-translate glossary
Found while verifying:
- project_id_max_char dropped the {max} ICU variable and hard-coded 5
- 8 further Intake/Sticky do-not-translate violations the review
missed (empty-state, inbox, project)
- "on the fly" was rendered as "during flight" in stickies empty state
- Same "ჯგუფეთ"/"პასუხისმგებლები" defects at unflagged call sites
Not changed: "ნაკრები" is correct at project_views and estimates
descriptions, where English says "a set of". planes.so, "template
this.", the tour label mismatch and the uploading_images plural are
en/ source bugs inherited as untranslated placeholders.
sync:check: 3,837 keys, 100% coverage, 0 issues.
…eplane#9726) * refactor: migrate web @plane/propel Tooltip to @makeplane/propel Move all 144 Tooltip call sites in apps/web from the in-repo @plane/propel/tooltip to the published @makeplane/propel/components/tooltip. Prop mapping applied on every site: - tooltipContent -> label (string) - tooltipHeading -> folded into label + layout="stacked" - position -> side/align (top/center omitted; it is the published default) - isMobile -> disabled (OR'd with any existing disabled) - renderByDefault -> dropped; the in-repo Tooltip declared but never used it - className -> dropped, or mapped to sideOffset/alignOffset (3 sites) layout is "single" for short bounded copy and "stacked" wherever the label interpolates unbounded data (names, titles, URLs, joined lists) — "single" is whitespace-nowrap, so long labels would overflow. Behavior change: tooltips now open after the published 600ms default instead of the in-repo 200ms. delay is deliberately not set per site. ReactNode content: - Editor toolbars map name + <kbd>shortcut</kbd> onto the published shortcut prop - <br/> and fragment copy folds into one wrapping stacked string - stickies/action-bar rendered a full <StickyNote> hover preview, not a tooltip; it moves to PreviewCard/PreviewCardTrigger/PreviewCardContent Published label is a string, so DropdownButtonProps.tooltipContent, date-range's customTooltipContent, and the two rich-filters components narrow from ReactNode to string. rich-filters/root.tsx guards filterConfig.tooltipContent, which stays ReactNode in @plane/types. Folded labels use ?? "" where the source expression is nullable so they cannot render the string "undefined" where the in-repo tooltip rendered nothing. Zero @plane/propel/tooltip references remain under apps/web. * fix: address review findings on the Tooltip migration Accessibility (CodeRabbit): Base UI wires no aria-describedby or aria-labelledby between the tooltip trigger and its popup — verified by rendering the published Tooltip and inspecting the DOM, the trigger comes out as `<button data-base-ui-tooltip-trigger>` with no aria at all and the popup has role="tooltip" but no id. So a `label` never reaches assistive tech, and the four icon-only triggers announced as bare "button". Add an explicit aria-label at each: extended-project-sidebar, layout-switcher, layout-selection, and access-field. Pre-existing gap (the in-repo tooltip sat on the same unwired Base UI trigger), fixed here since the PR touches these sites. AccessField now requires i18n_label and drops the optional pre-i18n `label`, so the computed label is non-empty by construction and serves as both the tooltip copy and the accessible name. Its only caller already passes i18n_label for every specifier, which also retires the TODO. Correctness: inbox issue-properties interpolated a nullable name into a template literal, so a duplicate work item with no name rendered the literal "undefined"; pass the name with ?? "" instead. CodeQL useless conditional: drop `|| ""` from stickyId in action-bar — both call sites already sit behind a guard proving recentStickyId truthy, and StickyNote treats "" and undefined identically. React Doctor prefer-module-scope-static-value: hoist badgeContent to module scope as BADGE_CONTENT; it holds only static strings. React Doctor js-combine-iterations: collapse the filter/map chains to a single pass. The two layout switchers skip inside map instead of pre-filtering; LabelSummary reduces project labels into the selected names once rather than filter -> map -> join.
) * refactor: migrate web Avatar to @makeplane/propel Avatar Replace @plane/ui Avatar and AvatarGroup with the published Propel components across apps/web. 41 files, 51 Avatar sites, 4 group sites. Propel's size scale is @plane/ui's shifted one step, so every enum maps with no pixel change: sm(16)->2xs, md(20)->xs, base(24)->sm, lg(28)->md. Unsized avatars took the old md default and become xs. Notable mapping decisions: - name -> alt plus fallback={name?.[0]?.toUpperCase()}, preserving the initial that @plane/ui derived internally. - Six numeric px sizes mapped to the nearest enum step. Five are exact; the notification card avatar moves 42px -> xl (40px). - Ten classNames removed, as published Propel takes no className. Seven were already redundant with Propel's base class (shrink-0, bg-layer-1); the remaining three overrode initials typography, which Propel now sets per size. - shape="circle" and fallback colour props dropped; Propel is always circular and picks initials colours from a fixed palette. AvatarGroup needs app chrome. @plane/ui defaulted to max={2}, rendering two avatars plus a +N counter, while Propel's AvatarGroup renders every child. No call site passed max explicitly, so all four relied on that default and would have rendered entire member lists. The new common/avatar-group-overflow.tsx restores the cap around Propel's group. ButtonAvatars' size prop is narrowed to AvatarGroupSize accordingly; no caller passes size. Tooltips are intentionally not migrated. @plane/ui Avatar wrapped itself in a Tooltip defaulting to on, and Propel has no built-in tooltip, so roughly 29 direct sites plus the ButtonAvatars subtree lose a tooltip. ButtonAvatars additionally inverted the flag (showTooltip={!showTooltip}), so its callers passing false were the ones showing tooltips. Restoring these is deliberately deferred to a follow-up. * refactor: use Propel Avatar for AvatarGroup overflow count Replace the custom CSS +N counter with a Propel Avatar fallback, matching the Avatar Group overflow pattern. Size still comes from the group context.
…akeplane#9734) * chore: upgrade pnpm to 11.10, turbo to 2.10.11, patch postcss-selector-parser - packageManager: pnpm@11.3.0 -> pnpm@11.10.0 - turbo catalog: 2.9.18 -> 2.10.11 (latest) - override postcss-selector-parser >=7.1.0 <7.1.3 to 7.1.3 (dependabot alert makeplane#345, DoS via uncontrolled AST recursion) * chore: remove comment from postcss-selector-parser override
Pin the workspace catalog to 0.3.0 and point admin at catalog: so web, admin, and tailwind-config share one version. Exclude 0.3.0 from the minimum release-age check while the package is still new.
* refactor: migrate admin icons to @makeplane/propel Replace confirmed icon symbols in apps/admin with their audited @makeplane/propel/icons targets, merging into the imports the six already-migrated files declared. Unresolved symbols (Menu, BrainCog) and the LucideIcon type stay on lucide-react. Lucide size props become explicit width/height. Loader keeps its LoaderIcon alias so the call site is unchanged. apps/admin already declared @makeplane/propel, so no dependency change was needed. * fix: restore Settings breadcrumb label after icon rename The migration's identifier rename also rewrote the string literal, so the breadcrumb displayed the icon component name instead of the label.
* refactor: migrate space icons to @makeplane/propel Replace confirmed icon symbols in apps/space with their audited @makeplane/propel/icons targets. Unresolved symbols (StateGroupIcon, PriorityIcon, PlaneLockup, PlaneLogo, Circle, CircleDashed, SignalHigh) stay on their existing imports. Propel icons paint with fill rather than stroke, so stroke-placeholder classes become text-placeholder to preserve the rendered color. Lucide size props become explicit width/height, and one chevron gains an explicit height because Propel defaults to 1em where the legacy IconWrapper defaulted to 16. CycleGroupIcon is deliberately not migrated: it dispatches a different glyph and color per cycle status, which CyclesOutline cannot express. * fix: address icon migration review on space Drop strokeWidth from Propel icons. The generated glyphs paint with fill="currentColor", so the prop reached the svg and changed nothing; keeping it implied a control that no longer exists. Wrap the password and email-clear icon click targets in buttons. These already carried onClick directly on the icon, but Propel bakes aria-hidden="true" onto the svg, so the migration also hid them from assistive tech. The buttons restore an accessible name and put the controls in the tab order, matching the pattern email.tsx already uses.
…ne#9942) * Call `super().__init__()` in `S3Storage.__init__` so `location` gets set - `S3Storage` never called `super().__init__()`, so django-storages state such as `location` and `bucket_name` was never set up. - Because `S3Storage` is `STORAGES["default"]`, every direct FileField upload failed with `AttributeError: 'S3Storage' object has no attribute 'location'`. - Add a unit test checking that the base attributes are initialised. * fix: validate legacy multipart uploads and store them without an ACL With super().__init__() in place, S3Storage works as the default FileField storage again, so the legacy multipart routes (workspace and user file-assets, issue-attachments) accept uploads. - S3Storage sets default_acl = None, so a FileField upload sends no canned ACL whatever AWS_DEFAULT_ACL says. - FileAssetSerializer and IssueAttachmentSerializer reject an uploaded file whose declared content type is missing or outside ATTACHMENT_MIME_TYPES, or that is larger than FILE_SIZE_LIMIT, as the presigned routes do.
…keplane#10355) The settings sidebar groups its pages under category headings (Your profile, Developer, Work structure, Execution, Administration), and the work item sidebar shows "Completed on" before the completion date. These six common keys were copied from English during the react-i18next migration and were only translated for bg, de, ja and nl, so every other language showed them in English. Translate them for cs, es, fr, id, it, ko, pl, pt-BR, ro, ru, sk, tr-TR, ua, vi-VN, zh-CN and zh-TW, reusing each locale's existing wording for profile, developer, completed and administration and the register its "Your account" string already uses.
…#10305) * fix(security): require a verified email to accept invitations without the invite token Listing and accepting the invitations addressed to an account's email without the emailed invite token, and applying already-accepted invites at sign-in, now require a verified email. The flag is set where control of the mailbox is shown: a magic-code or OAuth sign-in, a completed password reset, and a confirmed email change. Accepting with the emailed token is unchanged and does not verify the account. * fix(web): keep the invite link through sign-in and sign-up A signed-out invitee who pressed Accept on /workspace-invitations was sent to sign in with only the pathname in next_path, so invitation_id, slug and token were gone by the time they had a session. Accepting with the emailed token is the route left open to an account whose email is not verified (a password sign-up, or any account on an instance without SMTP), so the link has to survive every way of getting a session. - 401 redirect: carry pathname + search in next_path. - OAuth start URLs: encode next_path, so its own query string reaches the API instead of being cut at the first "&". - Sign-in <-> sign-up: the header link, the clear-email button, the two error banner links and the /sign-in redirect route keep next_path. - Entry page: a signed-in user who is not onboarded yet follows a valid next_path instead of always going to /onboarding. The invite page is public, and accepting there gives the user a workspace, so onboarding then finishes without asking them to create one. * fix(api): return to next_path after a magic-code sign-in MagicSignInEndpoint sent an onboarded account with an auto-set password to "/" even when the form posted a next_path, so an existing code-only user who came from an invite link lost the link. next_path now wins, as it already does for password sign-in, both sign-ups and the OAuth callbacks. Contract tests: - test_invite_link_next_path_app.py: an invite link (invitation_id, slug and a token built like the real one) given as next_path comes back whole from password sign-in and sign-up, magic-code sign-in and sign-up, the Google, GitHub, GitLab and Gitea callbacks, and a failed sign-in's redirect back to the form. A new password account, still unverified, then accepts the invitation with the token from the link. - test_project_invitation_token_not_listed_app.py: the self-service project invitation list is routed but not implemented, so BaseViewSet answers 405 and an account on an invited address, verified or not, cannot read the invite token there.
* Fix burndown crash on non-numeric point estimates
- Point estimates are free text (e.g. "M = 2"), so calling float() on
them in burndown_plot raised ValueError and broke the chart.
- Add _estimate_to_float to treat unparseable values as 0.0 and use it
for the cycle total, module total, and completed-points sum.
- Add unit tests covering numeric, text, empty, and None values.
* Reject non-finite estimates in burndown point calculation
- float() accepts "nan", "inf", and overflow values like "1e309", so
free-text point estimates could still poison the burndown sum and
produce values that can't be serialized to JSON.
- Treat any non-finite parse result as 0.0, matching how other
non-numeric estimates are handled.
- Add test cases covering NaN, inf, and overflow inputs.
* fix: skip non-numeric point estimates in SQL and reject them on write
The burndown fix only covered the Python side. The cycle analytics and
progress views, the module views, cycle_transfer_issues and
build_graph_plot also ran Cast("estimate_point__value", FloatField()) in
SQL, so a points estimate holding text such as "M = 2" still returned a
500 (DataError: invalid input syntax for type double precision).
- plane/utils/estimate.py holds one rule for "is this value a number"
(a plain non-negative decimal), used by Python and SQL alike:
is_numeric_estimate, estimate_to_float and estimate_value_as_float().
- All 50 SQL casts now go through estimate_value_as_float(), which yields
NULL for non-numeric text so Sum skips it like a missing estimate.
burndown_plot uses the same rule, so chart totals and distributions
agree.
- Writes reject a non-numeric value for a points estimate with a 400:
both EstimatePointSerializers, bulk estimate create (validated before
the estimate is created), bulk estimate update (all resulting values
are checked before anything is saved, including on a type change to
points), single point create, and the public create and patch.
Categories estimates keep accepting text.
- effect 3.20.0 -> 3.22.4 (GHSA-7589-6fvf-x4pw) - soupsieve 2.10 -> 4.1.2 (GHSA-mmhr-3c5m-f64f, GHSA-7g44-g9rc-x53w, GHSA-6655-6qjp-jx7x)
…lane#10358) GitLab is written "Gitlab" in 437 values across all 21 locales; the translate skill's glossary spells it GitLab. Inflected and particle forms keep their endings ("z GitLabu", "GitLab에서"). The privacy policy and terms of service placeholders in the template publish form point to planes.so; the other placeholders on that form use plane.so.
…ane#10356) The translate skill lists Sticky and Stickies as Plane brand marks that stay in Latin in every locale, with "Note"/"Nota" among the forbidden renderings. Spanish rendered them as "nota adhesiva", Portuguese mixed "adesivo", "nota adesiva" and "anotação", French mixed "pense-bête" and "post-it", and Italian still had "adesivo" and "note adesive" in four strings, while bg, nl and most of it already keep Sticky. Use "sticky"/"stickies" in the 122 affected values, as a masculine noun like the existing Italian and French strings, and adjust articles and participles to agree. No other wording changes.
…akeplane#10368) * fix(api): keep invites claimable by email on instances without SMTP Without SMTP nothing can be mailed: no verification code reaches the account and no invite link reaches the invitee, so the verified-email gate from makeplane#10305 locked invitees out. can_claim_invites_by_email() keeps the gate when EMAIL_HOST is set and falls back to the email match when it is not. * fix(api): set project_id when applying accepted project invites - process_workspace_project_invitations built ProjectMember rows without project_id, so applying an accepted project invite on sign-in failed or created an orphaned membership. - Pass project_id from the invite so the member joins the right project. - Add a contract test covering an accepted project invite being applied on sign-in and the invite row being cleaned up.
…load (makeplane#10369) user_has_issue_permission let a work item's creator through before checking ProjectMember, so the v1 attachment upload (POST) and upload confirm (PATCH) endpoints stayed writable after the creator was removed from the project. Drop the creator shortcut from the helper; every caller now relies on the active-membership query. Active creators still pass via allowed_roles.
…revoke feat(api): let an api token revoke itself via /api/v1/users/me/api-tokens/current/ (FOSS-835)
# Conflicts: # apps/api/.env.example # apps/web/app/layout.tsx # apps/web/components/onboarding/steps/profile/root.tsx # apps/web/components/settings/profile/content/pages/general/form.tsx # apps/web/core/components/settings/profile/modal.tsx # apps/web/lib/oauth2-proxy.ts # apps/web/lib/wrappers/authentication-wrapper.tsx # apps/web/services/api.service.ts # apps/web/services/auth.service.ts # packages/propel/src/popover/popover.stories.tsx
chore(upstream): merge makeplane/plane v1.5.0
# Conflicts: # apps/web/services/api.service.ts
chore(upstream): merge makeplane/plane v1.5.1
…ably The per-IP limiter covered every request, so a post-deploy page load revalidating ~400 chunks behind a shared office IP hit 429. Hashed assets now skip the limiter and get a one-year immutable Cache-Control; HTML documents get no-cache.
…elimit fix(caddy): exempt hashed assets from rate limit and cache them immutably
|
React Doctor found 346 issues in 206 files · 9 errors & 337 warnings · score 60 / 100 (Needs work) · vs Errors
337 warnings
287 more warnings not shown.
|
| // executeNow has no promise for a save whose timer already fired. | ||
| while (instance.debouncer.isCurrentlyExecuting(`onStoreDocument-${document.name}`)) { | ||
| // oxlint-disable-next-line no-await-in-loop -- polling until the running save finishes | ||
| await beforeDeadline(new Promise((resolve) => setTimeout(resolve, 10))); |
There was a problem hiding this comment.
React Doctor · react-doctor/async-await-in-loop (warning)
This while-loop waits before starting the next iteration. If iterations perform independent asynchronous work, consider bounded concurrency; await syntax alone does not establish a speedup.
Fix → Consider concurrent calls only for independent asynchronous work. Shared queues or synchronous work may not benefit. Preserve resource limits, transaction ordering, and failure/cancellation semantics; observe all callback promises.
| {isSidePeekOpen && ( | ||
| <div | ||
| ref={panelRef} | ||
| role="dialog" |
There was a problem hiding this comment.
React Doctor · react-doctor/prefer-html-dialog (warning)
Keyboard users can tab out of this role="dialog" modal because it has no built-in focus trapping, so use the native <dialog>, which gives you focus trapping, Escape to close, and the backdrop for free.
Fix → Replace the wrapper with <dialog> and open it with dialog.showModal(). For the trigger, prefer <button commandfor="id" command="show-modal"> (Chrome 135+), or a useRef with dialogRef.current?.showModal().
| /> | ||
| <div | ||
| ref={panelRef} | ||
| role="dialog" |
There was a problem hiding this comment.
React Doctor · react-doctor/prefer-html-dialog (warning)
Keyboard users can tab out of this role="dialog" modal because it has no built-in focus trapping, so use the native <dialog>, which gives you focus trapping, Escape to close, and the backdrop for free.
Fix → Replace the wrapper with <dialog> and open it with dialog.showModal(). For the trigger, prefer <button commandfor="id" command="show-modal"> (Chrome 135+), or a useRef with dialogRef.current?.showModal().
| @@ -48,7 +49,7 @@ import useLocalStorage from "@/hooks/use-local-storage"; | |||
| import { usePlatformOS } from "@/hooks/use-platform-os"; | |||
| // plane web imports | |||
| import { CommonProjectBreadcrumbs } from "@/components/breadcrumbs/common"; | |||
| import { IconButton } from "@plane/propel/icon-button"; | |||
| import { useProjectCrumbProps } from "@/components/breadcrumbs/use-project-crumb-props"; | |||
|
|
|||
| export const ModuleIssuesHeader = observer(function ModuleIssuesHeader() { | |||
There was a problem hiding this comment.
React Doctor · react-doctor/no-high-complexity-react-function (warning)
ModuleIssuesHeader has cyclomatic complexity 16, cognitive complexity 16, and maximum nesting depth 2, so its React logic is hard to understand and change. Extract independent branches into components or hooks.
Fix → Extract independent render branches and state logic into focused components or hooks until the control flow is easy to follow.
| @@ -37,16 +43,21 @@ import { useUserPermissions } from "@/hooks/store/user"; | |||
| import { useAppRouter } from "@/hooks/use-app-router"; | |||
| // plane web imports | |||
| import { CommonProjectBreadcrumbs } from "@/components/breadcrumbs/common"; | |||
| import { useProjectCrumbProps } from "@/components/breadcrumbs/use-project-crumb-props"; | |||
|
|
|||
| export const ProjectViewIssuesHeader = observer(function ProjectViewIssuesHeader() { | |||
There was a problem hiding this comment.
React Doctor · react-doctor/no-high-complexity-react-function (warning)
ProjectViewIssuesHeader has cyclomatic complexity 19, cognitive complexity 17, and maximum nesting depth 1, so its React logic is hard to understand and change. Extract independent branches into components or hooks.
Fix → Extract independent render branches and state logic into focused components or hooks until the control flow is easy to follow.
| * Save / update actions for the filters row. With only one of them available it renders as a single | ||
| * button; with both, they collapse into one "Save" menu so the row keeps a single action. | ||
| */ | ||
| export const RichFiltersViewControls = observer(function RichFiltersViewControls(props: Props) { |
There was a problem hiding this comment.
React Doctor · react-doctor/no-high-complexity-react-function (warning)
RichFiltersViewControls has cyclomatic complexity 13, cognitive complexity 17, and maximum nesting depth 3, so its React logic is hard to understand and change. Extract independent branches into components or hooks.
Fix → Extract independent render branches and state logic into focused components or hooks until the control flow is easy to follow.
| @@ -49,11 +50,12 @@ export function ResizableSidebar({ | |||
| isAnyExtendedSidebarExpanded = false, | |||
| isAnySidebarDropdownOpen = false, | |||
| }: ResizableSidebarProps) { | |||
| const { t } = useTranslation(); | |||
| // states | |||
| const [isResizing, setIsResizing] = useState(false); | |||
| const [isHoveringTrigger, setIsHoveringTrigger] = useState(false); | |||
There was a problem hiding this comment.
React Doctor · react-doctor/rerender-state-only-in-handlers (warning)
Each update to "isHoveringTrigger" redraws your component for nothing because this useState is set but never shown on screen.
Fix → Use useRef instead of useState when the value is only set and never shown on screen. ref.current = ... updates it without redrawing the component.
| @@ -192,12 +220,14 @@ export function ResizableSidebar({ | |||
| maxWidth: `${isCollapsed ? 0 : width}px`, | |||
| }} | |||
| role="complementary" | |||
There was a problem hiding this comment.
React Doctor · react-doctor/prefer-tag-over-role (warning)
Screen reader users get more reliable semantics from <aside> than role="complementary", so use <aside> instead.
Fix → Use the matching HTML element when one exists so browsers and assistive tech get native semantics.
| @@ -235,7 +271,9 @@ export function ResizableSidebar({ | |||
| onMouseEnter={handlePeekEnter} | |||
| onMouseLeave={handlePeekLeave} | |||
| role="complementary" | |||
There was a problem hiding this comment.
React Doctor · react-doctor/prefer-tag-over-role (warning)
Screen reader users get more reliable semantics from <aside> than role="complementary", so use <aside> instead.
Fix → Use the matching HTML element when one exists so browsers and assistive tech get native semantics.
| // a literal leading "/" (and rejecting "//") before any URL-based | ||
| // comparison, so it doesn't depend on which scheme the real origin happens | ||
| // to use. | ||
| const isValidURL = isValidNextPath; | ||
|
|
||
| export const AuthenticationWrapper = observer(function AuthenticationWrapper(props: TAuthenticationWrapper) { |
There was a problem hiding this comment.
React Doctor · react-doctor/no-high-complexity-react-function (warning)
AuthenticationWrapper has cyclomatic complexity 41, cognitive complexity 64, and maximum nesting depth 4, so its React logic is hard to understand and change. Extract independent branches into components or hooks.
Fix → Extract independent render branches and state logic into focused components or hooks until the control flow is easy to follow.
Description
foss-sandboxtofoss-mainfor thev26.11.3prod train (FOSS-838). Merge with a merge commit, not squash, so the branches stay convergent./api/v1/users/me/api-tokens/current/(FOSS-835)EMAIL_HOSTin the bundle, so no change today).NUM_PROXIESis still unset in the bundle.Testing
v26.11.3-rc.3(backend) +rc.4(web/admin with fix(caddy): exempt hashed assets from rate limit and cache them immutably #63); browser-verified (workspace home, 1,693-item work list, 0 x 429).AI disclosure