Skip to content

feat: issue filter views - #418

Merged
pablohashescobar merged 11 commits into
developfrom
feat/views
Mar 15, 2023
Merged

pablohashescobar merged 11 commits into
developfrom
feat/views

Conversation

@pablohashescobar

Copy link
Copy Markdown
Member

feat: issue filter views

@vercel

vercel Bot commented Mar 10, 2023 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Ignored Deployments
Name Status Preview Comments Updated
plane ⬜️ Ignored (Inspect) Visit Preview Mar 15, 2023 at 7:44AM (UTC)
plane-dev ⬜️ Ignored (Inspect) Visit Preview Mar 15, 2023 at 7:44AM (UTC)
plane-staging ⬜️ Ignored (Inspect) Visit Preview Mar 15, 2023 at 7:44AM (UTC)

@pablohashescobar
pablohashescobar merged commit b6ee197 into develop Mar 15, 2023
@pablohashescobar
pablohashescobar deleted the feat/views branch March 15, 2023 17:56
codecsrayo referenced this pull request in codecsrayo/plane Apr 7, 2026
…variant

- React error #418/#423: navigate() was called during render which causes
  SSR/CSR hydration mismatch. Moved both redirect cases (unknown provider,
  integration not installed) into useEffect so they run after mount only.
- Button variant 'danger' does not exist in @plane/propel — changed to
  'error-fill' (valid variants: error-fill, error-outline, primary, etc.)
  The invalid variant was crashing the MobX observer reaction on load.
speedenator added a commit to zebaria/plane that referenced this pull request May 25, 2026
Adding integrations to TWorkspaceSettingsTabs left
WORKSPACE_SETTINGS_ICONS missing a key for it; the sidebar item
component crashed at render with React minified error makeplane#418.

Also opt JS-based CI actions into Node 24 ahead of GitHub's June 2026
default flip to suppress deprecation warnings on every workflow run.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
takenagain added a commit to takenagain/plane that referenced this pull request Jun 28, 2026
… hydration

The work-item, inbox, and sticky description editors passed fresh inline
`placeholder` / `searchMentionCallback` function literals on every render.
These feed the editor's `resolvedExtensions` memo, so @tiptap/react v3
destroyed and recreated the ProseMirror view each keystroke, dropping the
cursor/focus (same class of bug as the wiki/pages body fix). Stabilize them
with module-level constants / useRef+useMemo/useCallback so identity is
preserved across renders.

Also:
- root.tsx: gate HydrateFallback's spinner behind a post-hydration mount
  flag so the first client render matches the prerendered empty <div/>,
  fixing React hydration error makeplane#418. Remove the redundant Inter woff2
  preload (font already loads via @font-face), silencing the unused-preload
  console warning.
- use-page-fallback.ts: build a complete TDocumentPayload (matching
  convertHTMLDocumentToAllFormats) so the page fallback save typechecks.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
simonrejzek added a commit to Vojta70246/plane that referenced this pull request Jul 30, 2026
…ming

Browser logs showed React makeplane#418 noise and a blocking Epics walkthrough with
raw "Step {current} of {total}". Mark explored_features.epic_migration in
workspace preferences, use i18next {{var}} interpolation, defer sidebar CSS
force until after load, and ship inject v36.
simonrejzek added a commit to Vojta70246/plane that referenced this pull request Jul 30, 2026
SPA axios never hit the fetch-only regroup path, so group headers showed
counts (e.g. Simon · 21) with empty card rows. Intercept issues list XHR
to materialize cards from a flat re-fetch, defer DOM side effects until
after React hydrate (reduces makeplane#418 blanks), and patch store-context
ingest/skipBootstrap for self-host. Ship inject v41 + web mirror v33 / PI v44.
TheJohnFogarty pushed a commit to TheJohnFogarty/plane that referenced this pull request Aug 7, 2026
* dev: views initiated

* dev: refactor filtering logic

* dev: move state grouping filter to util function

* dev: view issues create endpoint and update on filters for time

* dev: rename views to issue views

* dev: rename in serilaizer and views

* dev: update issue filters

* dev: update filter

* feat: create issue favorites

* dev: update query keys

* dev: update create and update method
abhinav-jha-dev added a commit to vishwakarma-bot/plane that referenced this pull request Aug 23, 2026
- Replace module-scope Intl.DateTimeFormat with UTC-based formatters
  that produce identical output on server and client (fixes React makeplane#418/makeplane#423)
- Use stable empty array constants instead of inline `= []` defaults
  that create new references every render (fixes memo breakage)
- Derive selectedSourceId from props instead of useEffect state sync
  (fixes no-adjust-state-on-prop-change)

Co-authored-by: Cursor <[email protected]>
QuentinDowsers added a commit to Dowsers/plane that referenced this pull request Sep 9, 2026
React errors makeplane#418/makeplane#423 on the sign-in page: next-themes only knows the
real theme after mount (it reads localStorage client-side), but
LogoSpinner and the GitHub OAuth icon read resolvedTheme directly during
render. Server always renders the light variant (no localStorage), so
if a client had a stored dark preference, its very first render already
picked the dark asset - src mismatch vs the server HTML, which is
exactly React error makeplane#418, cascading into makeplane#423 as the tree falls back to
client-only rendering. Fixed both with the standard mounted-guard
pattern: render the light asset until a post-mount effect flips a
mounted flag, so the first client render always matches SSR.

Also patched the is-emoji-supported dependency (used by the editor's
emoji extension) via pnpm patch: it creates its canvas via getContext
('2d') without willReadFrequently, and calls getImageData twice per
emoji checked, which is exactly the "Multiple readback operations"
perf warning Chrome was logging. Added willReadFrequently: true to all
three build variants (esm/cjs/umd) it ships.
QuentinDowsers added a commit to Dowsers/plane that referenced this pull request Sep 9, 2026
resolvedTheme can resolve synchronously from localStorage on the
client's first render, before hydration completes, but the server
never resolves it. Branching on resolvedTheme directly made the
server and first client render diverge, causing React error makeplane#418
(hydration mismatch) on every page load. Gate on a `mounted` flag
instead, which is guaranteed false on both the server and the
client's first paint.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
io777 added a commit to io777/plane that referenced this pull request Sep 12, 2026
akunito added a commit to akunito/plane-up that referenced this pull request Sep 17, 2026
…sktop/Android/iPhone WebKit (APLANE-12, L5-01/02)

@playwright/test 1.61.1 pinned to nixpkgs playwright-driver (browsers come from
nix). Projects: desktop Chromium 1440×900, Pixel 7, iPhone 14 (WebKit — the
APLANE-1 crash class). QA users sign in once with their real password; every
test runs under a guard: no uncaught page error, no global/layout error
boundary, no horizontal overflow on phones.

- L5-01: 'Sign in with Pocket ID' → Plane's /auth/gitea/ 302 targets
  auth.akunito.com/authorize with this host's callback (Pocket ID not loaded)
- L5-02: 19 routes × 3 devices render as qa-alice

React makeplane#418/makeplane#423/makeplane#425 (recoverable SPA hydration mismatch on every route) are
recorded, not failed. (--no-verify: oxfmt SIGKILLed in lint-staged; run by hand.)

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
giuntonic pushed a commit to giuntonic/plane that referenced this pull request Sep 24, 2026
O index.html pré-renderizado (SPA mode) contém o ramo de servidor do
HydrateFallback: uma div vazia. No cliente, o next-themes já conhece o tema
na primeira renderização, então o spinner era renderizado de imediato e a
árvore divergia do HTML do servidor. O spinner agora só aparece depois da
montagem. O erro já existia antes da atualização para o preview.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
georman added a commit to georman/plane that referenced this pull request Sep 24, 2026
- Sidebar on phones (by width, not only user agent): starts closed,
  closes after navigating, dimmed backdrop closes it on tap.
- Top bar: search shrinks on phones so notifications/profile stay visible.
- Page headers: breadcrumbs shrink, action buttons stay visible.
- Account settings: menu above the form on phones.
- Member tables scroll sideways instead of cutting columns.
- Customers settings form and rows wrap on phones.
- HydrateFallback renders the same empty div on the first client pass,
  fixing React hydration error makeplane#418 on every page load.
- No "Pro" upgrade badges, bulk-operations upgrade banner or Active
  cycles menu entry; removed GitHub star/bug links, @planepowers and
  upstream marketing text; admin breadcrumb label for Branding.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
juleek pushed a commit to DimanNe/plane that referenced this pull request Oct 23, 2026
…ting no longer weighs on the list's render (PLANE-63)

Every page load reported React error makeplane#418. HydrateFallback in root.tsx drew an empty div on the server, which
index.html holds, but in the browser's first render, which hydrates that HTML, it drew the spinner as soon as
the theme was known: an element the HTML did not have. React then gave up the HTML and rendered everything anew.
It now draws the empty div until it has been hydrated, and the checks no longer tolerate makeplane#418 (KNOWN_PAGE_ERRORS
in claude/checks/run.py): every check fails if a page reports it again.

A profile of the render that draws the list after the work items arrive found about 20 ms of its ~125 ms in
translation: react-i18next's useTranslation gave every component that calls it a copy of the i18n instance and
a subscription of its own, and a list calls it in several components per line. The app's useTranslation
(packages/i18n) now shares one subscription, made when the first component mounts, and gives each component
a t that changes only with the language or the translations. The rest of that render is React itself (~37 ms),
the menus and tooltips that every line mounts (~10 ms), garbage collection and the browser's style and layout;
none of them is in one component.

Measured on a throwaway copy of the owner's data, the old and new builds alternating, medians of 9: the
hydration fix took cold loads 919 -> 895 ms and warm reloads 573 -> 554 ms; the shared translation hook a
further 892 -> 877 and 560 -> 544 ms.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
akunito added a commit to akunito/plane-up that referenced this pull request Nov 10, 2026
… and nothing had ever opened that app

The `gitea` OAuth slot is repurposed to Pocket ID OIDC and B-32 relabelled apps/web when that happened. apps/space was missed, so anyone asked to sign in on a published board saw the name and the logo of a provider that is not the one behind it. Found by opening the app in a real browser on dev, which no layer of the suite had ever done.

L5-80 and L5-81 are the first E2E specs to open /god-mode (apps/admin) and /spaces (apps/space). Both are copied into the AIO image (Dockerfile:37-39) and their only runtime coverage was L3-08's 200/text-html plus L7-02b/c's asset check, all of which pass on a shell rendering an error boundary.

Measured before asserting anything, on Chromium and WebKit: both routes mount, no uncaught errors, no boundary. `unauthenticated: true` is required rather than convenient — both legitimately log 401s while anonymous and the guard's session tripwire would fail every test.

expectNoErrorBoundary matched only apps/web's copy, so it was INERT on exactly the two routes these tests are about: apps/admin renders "Something went wrong." with a trailing period and no Retry button, apps/space "Yikes! That doesn't look good." with a Refresh button. Both added; `exact` is what keeps web's "Oops! Something went wrong." not-found page from reading as a crash.

The negative assertion is by accessible name, not text: the bug had two halves and getByText reads text nodes only, so reverting the icon alone would have kept the test green with the Gitea logo still visible.

Scope, said plainly: this closes the published-board button. The Members column and the whole /god-mode Gitea auth panel still name Gitea for fields that hold Pocket ID's host and secret — APLANE-49. The makeplane#418 hydration mismatch /spaces logs is APLANE-48; helpers.ts's blanket exemption for it described SPA-mode hydration, which is true of web and admin but not of space, the only app with ssr: true.

Full suite before this commit: 209 passed, 20 skipped, 3 failed — the 3 are L5-81b on each project, red only because dev still served the pre-fix image. No existing test changed verdict.

Co-Authored-By: Claude Opus 5 <[email protected]>
akunito added a commit to akunito/plane-up that referenced this pull request Nov 12, 2026
… the i18n provider seeded its first render from async state

An anonymous GET /spaces/ logged ~20 × React makeplane#418 and then makeplane#423 — "the entire root will switch to client rendering". The makeplane#423 was not in the ticket; it is the tell that the mismatch was structural rather than an attribute.

`TranslationProvider` was `useState(i18nInstance.isInitialized)` with `if (!isReady) return null`. apps/space is the only one of the three apps with `ssr: true`, and its server is a long-running node process whose `initPromise` resolved at startup — so the flag is TRUE there and the whole subtree rendered. A fresh browser is the opposite, so the client's first pass rendered nothing where the server had emitted markup.

The load-bearing argument is soundness, not the timings: `entry.client.tsx` wraps `hydrateRoot` in `startTransition`, so the hydration render is schedulable rather than synchronous with module evaluation. Seeding from that flag was a RACE and could only ever be right by luck. The measurement corroborates which side dev landed on: `performance.getEntriesByType("resource")` puts `entry.client` at 49 ms and the chunks for the first two namespaces — accessibility, auth — at 176 ms, so the locale resources had not even been REQUESTED when hydration began.

Two rival explanations were eliminated by evidence, not by argument:

- The ticket's own hypothesis, `resolvedTheme`. It was a good lead: LogoSpinner does pick its gif from the theme, it is what the server rendered, and the server does emit the DARK gif because `resolvedTheme` is undefined there. Set `localStorage.theme = "light"`, where both sides choose the same gif, reload — the #418s still fire, with fresh timestamps. Refuted.
- next-themes. Its inline script really does mutate `<html>` before hydration, but it renders that script with `suppressHydrationWarning: true` (read in [email protected]/dist). Excluded.

The fix is `useState(false)`: make the first render identical on both sides and let the effect do the rest. Nothing real is lost. apps/space's entire route tree, published boards included, is gated behind `InstanceProvider`'s `!instance && !error`, and SWR never fetches during a server render — so the body it emitted was always just a spinner. `<Meta/>` and `<Links/>` sit in `<head>` OUTSIDE the providers, so a shared board link keeps its title, description and OG tags. The one real cost is that pre-JS viewers now get a blank body instead of a spinner, and the old code discarded that spinner anyway when makeplane#423 switched the root to client rendering.

Also added `suppressHydrationWarning` to apps/space's `<html>` and `<body>`, which apps/web and apps/admin both carry and space — the only server-rendered app — did not. It does NOT fix the above and the comment says so.

The audit caught a false claim in the comment I had just written. I wrote that the change is a no-op for web and admin because `ssr: false` means "no server render". That is wrong: react-router's SPA mode still renders once at BUILD time (`handleSpaMode`, `X-React-Router-SPA-Mode: yes`) and wraps the root route's Layout around its HydrateFallback. The conclusion holds for two narrower reasons, now written down: apps/web mounts this provider in `app/provider.tsx`, which `Root()` renders below that boundary, and apps/admin never mounts it at all. The distinction matters — admin already puts its providers inside `Layout`, so the same restructure of web would pull this line into the build-time render. The audit also found an unfixed sibling of this bug in apps/web's own HydrateFallback; filed as APLANE-51 rather than folded in here.

L1-27 in apps/web/tests/unit, and the ORDER of its two steps is the whole test: a server render on its own proves nothing, because in a fresh module `isInitialized` is false anyway and the assertion would pass against the broken code too. Rendering on the client first and waiting for the children drives the real `initPromise` to resolve on the module-level singleton, so the following `renderToString` runs with the flag genuinely true. Verified by watching it fail: against a dist built before the fix it returns `<p>child</p>` instead of "". The header records that the subject is `packages/i18n/dist`, not src, so a bare `pnpm --filter web test` can go green against a stale build in either direction.

Tested: apps/web 15 files / 220 tests pass locally, oxlint 0 errors and 0 warnings on the two files I wrote. Not yet verified where it matters — the symptom lives in a production build of apps/space, and confirming the #418s are gone needs this deployed to dev first.

Co-Authored-By: Claude Opus 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants