Skip to content

Fix(embedded) : column order, sort, scrolls overlays, refresh, table … - #2868

Open
taiebot wants to merge 1 commit into
nextcloud:mainfrom
taiebot:Embedded-fix
Open

Fix(embedded) : column order, sort, scrolls overlays, refresh, table …#2868
taiebot wants to merge 1 commit into
nextcloud:mainfrom
taiebot:Embedded-fix

Conversation

@taiebot

@taiebot taiebot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

🖼️ Screenshots

🏚️ Before 🏡 After
B image
B image

View order
image

Widget order
image

a little gif sorry the first seconds are frozen

tables

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔙 Backport requests are created or not needed: /backport to stableX.X
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

…height

* Fix: column order for embedded table

Signed-off-by: taiebot <13300652+taiebot@users.noreply.github.com>

* fix(widget): use fresh store data for rows/columns in ContentReferenceWidget

Signed-off-by: taiebot <13300652+taiebot@users.noreply.github.com>

* Fix embed col order (#12)

* Fix: column order for embedded table

Signed-off-by: taiebot <13300652+taiebot@users.noreply.github.com>

* fix(widget): use fresh store data for rows/columns in ContentReferenceWidget

Signed-off-by: taiebot <13300652+taiebot@users.noreply.github.com>

---------

Signed-off-by: taiebot <13300652+taiebot@users.noreply.github.com>

* Embed scroll (#11)

* Adjust height and z-index in ContentReferenceWidget (#7)

Signed-off-by: taiebot <dedreuil@yahoo.fr>

* Fix Change height of tables-content-widget to auto

Signed-off-by: taiebot <13300652+taiebot@users.noreply.github.com>

---------

Signed-off-by: taiebot <dedreuil@yahoo.fr>
Signed-off-by: taiebot <13300652+taiebot@users.noreply.github.com>

* Fix: enable sorting on ContentReferenceWidget

Signed-off-by: taiebot <13300652+taiebot@users.noreply.github.com>

* Fix watcher for localViewSetting with debug logging

Added a watcher for localViewSetting to log changes for debugging purposes.

Signed-off-by: taiebot <13300652+taiebot@users.noreply.github.com>

* Fix Remove debug watcher for localViewSetting

Removed temporary debug watcher for localViewSetting.

Signed-off-by: taiebot <13300652+taiebot@users.noreply.github.com>

* Fix again 

Refactor loadColumnsFromBE to improve column sorting logic and add comments for clarity.

Signed-off-by: taiebot <13300652+taiebot@users.noreply.github.com>

---------

Signed-off-by: taiebot <13300652+taiebot@users.noreply.github.com>
Signed-off-by: taiebot <dedreuil@yahoo.fr>
if (!this.dataStore) return
try {
if (this.isView) {
await this.dataStore.loadColumnsFromBE({ view: this.richObject })

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the reference provider (ContentReferenceHelper) never puts columnSettings on the rich object. So inside loadColumnsFromBE the meta-column append doesn't seem to do anything?

Comment on lines 279 to +325
@@ -285,8 +318,11 @@ export default {
.nc-table {
min-width: var(--widget-content-width);

:where(.options.row) {
display: none;
:deep(.options.row) {
height: 0 !important;
overflow: hidden !important;
margin: 0 !important;
padding: 0 !important;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From your gif, i only see vertical scrolling. Did you test horizontal too?

elementId: this.richObject.id,
rows: this.richObject.rows,
})
return

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why remove this early return? for a table embed this now runs loadRowsFromBE, which hits /apps/tables/row/table/{id} and returns the full row set, whereas the reference only embedded about 100 rows

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