Repository navigation
Conversation
Use getStandardColumnCount to dynamically determine if the first column shoould be disabled, preventing data columns from being incorrectly locked when serialNoColumn is false. ✅ Closes: frappe#218
…columns fix: raise toast z-index above sticky columns
…lumn-freeze fix: preserve tree expand/collapse state on column freeze
Sorting compares `cell.content`, so a column that renders something other than its stored value sorts by the value the user cannot see. `compareValue` already solves this for filtering; `sortValue` is the same idea for sorting. A column with a `sortValue(cell)` function sorts on what that returns. Columns without one are unchanged.
feat(sort): sort on a value returned by the column
fix(columnmanager): resize body cells while dragging a column
fix: recompute sticky column offsets on column resize
Sort sibling groups before numbering and drawing tree rows. Add seven browser regression tests.
fix(reports): keep tree rows grouped when sorting
measureTextWidth left a hidden div in document.body on each call. It now removes the div after it reads the width. An optional container lets the text use the font of that container.
The body uses virtual scroll, so only the visible rows are in the DOM. Columns with no width were sized from the header and the first row only, and longer values in later rows were truncated. Measure the longest value of each column from the row data too. Fixes frappe/frappe#43219
Double-click auto-fit now uses Style.getColumnContentWidth. It compared content.length before, which is undefined for number values.
The longest value by character count is not always the widest one. A string of narrow characters can be shorter on screen than fewer wide characters, and a formatter can make a short value show a wider text or bold HTML. Measure the formatted HTML of each value in the DOM. For large data, a canvas first picks the widest few texts, and only those are measured in the DOM.
…idths feat: preserve resized column widths on refresh
fix(style): auto-size columns from all rows, not only the first row
…lace feat(tree): keep is_total_row and blank rows in place on sort
…lace feat: keep total rows in place in flat tables and out of footer
…ce-expansion-1.1.22 chore(deps): bump brace-expansion from 1.1.8 to 1.1.22
…dlebars-4.7.10 chore(deps): bump handlebars from 4.7.9 to 4.7.10
…yaml-3.15.2 chore(deps): bump js-yaml from 3.12.0 to 3.15.2
…side fix: end a drag selection when the mouse is released outside the table
docs: add browser support to the readme
perf: auto-size columns without formatting every cell
fix: keep the header line the width of the columns
uglify-es 3.0.3 crashes on `[this.rows, this.flatData] = ...`, which broke the production build (dist/*.min.js) and therefore CI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- build dist in CI only; dist is gitignored again
- fork tags use pl-v${version} to avoid clashing with upstream v* tags
- version stays 0.0.0-development, semantic-release sets it on publish
- publishConfig.access public for the scoped package
- drop Cypress Dashboard recording (no record key needed)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflict resolutions: - workflows: take upstream (Playwright replaces Cypress) - datamanager: keep fork group/flatData handling, add upstream is_total_row; take upstream _sortTreeRows/sortValue sorting, drop fork treeSort - body-renderer: upstream total-row filter plus fork excludeFromTotal - rowmanager: take upstream scrollToRow (supersedes fork fix) - style.css: keep fork's zero header padding, take upstream font-weight Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fork-only helper, unused since taking upstream's scrollToRow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Grouped data (tree and list), getData/flatData incl. appendRows, tree sort within groups, padding rows on sort, _excludeFromTotal in the total row and columnTotal hook, and shift+arrow at the table edge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SaiFi0102
force-pushed
the
upstream-merge
branch
from
November 26, 2026 07:36
06adfdd to
1b38b52
Compare
Member
Author
|
Closing for now: the build fix, semantic-release switch and fork tests will land first in a separate PR against the current (pre-merge) version. This branch stays as a reference for the upstream merge afterwards. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
1. Fix the production build (
fix:).src/datamanager.jsused[this.rows, this.flatData] = this.prepareRows(...).uglify-es@3.0.3crashes on array destructuring intothis.*properties, which brokeNODE_ENV=production rollup -c(*.min.js) and made every CI run fail at the build step. The fix destructures into locals first. Upstream uses the same toolchain and never hit this.2. Switch to upstream's CI/CD model (
ci:).dist/is gitignored again and built in CI only. npm still ships it via"files".semantic-releasepublishes on push tomaster..releaserc.jsonsetstagFormat: pl-v${version}, because upstream already hasv1.20.6,v1.20.7andv1.21.xtags on unrelated commits.versionis0.0.0-development(set at publish time), andpublishConfig.accessispublicfor the scoped package.3. Add
CLAUDE.md. It covers the build and release process, how paralogic_v15 consumes the package, the fork's own features, and notes for future upstream merges.4. Merge
frappe/master(7c27012). This brings in Playwright tests, frappe-ui default styles, sticky columns, fuzzy and exact filters, column auto-width,column.sortValueand tree-aware sorting. Conflict resolutions:datamanager.js: kept the fork's group/flatData/getDatahandling and added upstream'sis_total_row. Took upstream's_sortTreeRows/sortValuesorting and dropped the fork'streeSort. Upstream's version keeps the hierarchy and also keeps empty padding rows in place.body-renderer.js: upstream's total-row filter plus the fork'sexcludeFromTotal.rowmanager.js: took upstream'sscrollToRow, which replaces the fork's fix.style.css: kept the fork's zero header padding and took upstream'sfont-weight: 500.Testing
yarn lint-and-buildpasses, including the minified bundle.yarn test(Playwright): 60 passed, 1 skipped (the skip is upstream's).min.js:getData()returns the original rowBefore merging (merging publishes to npm)
@paralogic/frappe-datatable: repoParaLogicTech/datatable, workflowtest-and-release.yml. AnNPM_TOKENsecret also works.latest:git tag pl-v1.20.7 b7160fa && git push origin pl-v1.20.7feat:commits come in with the merge.Reviewer notes
--dt-*colours and the header font weight. Check the query reports in paralogic_v15.@paralogic/frappe-datatableinparalogic_v15/apps/frappeand runbench build --app frappe.🤖 Generated with Claude Code