Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linkstate flydev #562

Closed
wants to merge 12 commits into from
Closed

Linkstate flydev #562

wants to merge 12 commits into from

Conversation

jvorob
Copy link
Contributor

@jvorob jvorob commented Jul 7, 2023

WIP of linkstate bubbles. The code is a mess but the features seem to work: Shows current linked-filter info in a pill, with more detailed linking info on hover. Also some debug information added to the Table->Data section of the rightPanel, but that won't be in the user-facing version.

Adds JV object to global namespace,
adds pretty-printing methods for columns, links, sections, etc
Shows linking debug info in rightPanel
Adds debug window to topleft
Values are hacked together in buildViewSectionDom
Combined simpleFilter and srcCellFilter (the advantage
of simpleFilter (that we don't need to look at any values)
is gone once we need to start making labels, so it's more
straightforward to unify them

Still somewhat hacky with srcCol tgtCol vs srcColId vs tgtColId,
we don't pass them into makeFilterObs right now, so the code
just grabs them from this.srcCol and this.dstCol, but that won't work
for summary tables, so still need to generalize
Filter bubbles now work correctly for unloaded tables and stuff
@jvorob jvorob added the preview Launch preview deployment of this PR label Jul 7, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jul 7, 2023

Deployed as https://grist-linkstate-flydev.fly.dev (until 2023-08-06T08:28:12.466Z)

@github-actions
Copy link
Contributor

github-actions bot commented Jul 7, 2023

Deployed as https://grist-linkstate-flydev.fly.dev (until 2023-08-06T08:28:12.466Z)

css mask-image vs -webkit-mask-image
@github-actions
Copy link
Contributor

github-actions bot commented Jul 7, 2023

Deployed as https://grist-linkstate-flydev.fly.dev (until 2023-08-06T08:44:59.437Z)

If visibleCol is rowId, that's implemented as visibleCol
= colRec 0, so its colId is undefined.
Added an explicit check to fix that

TODO: switch to using undefined instead of "id" in makeFilterObs
and in makeValGetter to better mesh with grist style
Was trying to switch sections WITHOUT opening rename widget,
but was clicking directly on .test-viewsection-title instead
of -viewsection-blank, which exists for that purpose, so test broke
I previously changed lookup links (i.e. ref col -> row)
to behave consistently whether ref or reflist.
i.e.: instead of ref being a cursor-link and reflist filtering,
they now both filter, so ref just shows a single record

However this breaks tests so let's undo it temporarily
@jvorob jvorob closed this Jul 10, 2023
@jvorob jvorob deleted the linkstate-flydev branch July 10, 2023 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
preview Launch preview deployment of this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant