Repository navigation
[dashboard scoped filter] Improve scrollbar inside modal - #8553
graceguo-supercat merged 3 commits into
Conversation
|
@graceguo-supercat This looks like a good improvement to me! I'm wondering about a couple enhancements, which I can look at in a follow-up PR if you'd like: • Would it be even better if just the individual tree were to scroll? In this case, that would be just the right side's tree. Optionally, it could even leave the Expand/Collapse/Search pinned to the top. • I see the Less file has some significant-looking static values (128px, 64px, ...). I didn't look super closely at these, but if they're making space for other elements (i.e. a header), would it add value to use Less variables, so that we can tweak more easily in the future? I've been meaning to make a pass at the Less files in general looking for this sort of thing, hoping we can use more Less variables for "style guide" kind of things. |
rusackas
left a comment
There was a problem hiding this comment.
LGTM, aside from a couple small areas of potential enhancement I mentioned in a separate comment.
015a390 to
83269e9
Compare
b16fed4 to
ef8a811
Compare
Yes! I talked to @kenchendesign and he told me that this is standard interaction behavior for modals actually sidebar and content should scroll separately. I added this changed! For standardize css variables, I would like to do it when we have style guide. currently we prefer to use |
etr2460
left a comment
There was a problem hiding this comment.
a couple css nits, otherwise lgtm
|
|
||
| .react-checkbox-tree { | ||
| .rct-title .root { | ||
| font-weight: bold; |
There was a problem hiding this comment.
i see here we're using font-weight: bold; but below it's font-weight: 700;. Can we standardize?
There was a problem hiding this comment.
i choose font-weight: bold. So i fixed the font-weight: 700.
There was a problem hiding this comment.
Not to sidetrack the discussion, but I'm considering if it's worth moving some of these values (and other related typographic treatments) to LESS variables, so we can use font-weight: @bold and set/theme that to be 700 (or whatever!) globally. I can address that separately, just floating the idea ;)
ed6655a to
ad871eb
Compare
Codecov Report
@@ Coverage Diff @@
## scoped-filter-redux-v2 #8553 +/- ##
======================================================
Coverage 66% 66%
======================================================
Files 474 474
Lines 23197 23197
Branches 2484 2484
======================================================
Hits 15311 15311
Misses 7728 7728
Partials 158 158
Continue to review full report at Codecov.
|
ad871eb to
7d3b7ee
Compare
7d3b7ee to
ccd1b59
Compare
* [WIP][dashboard scoped filter] part 1: scope selector modal (#8557) * filter scope selector modal * add single-field-edit in multi-edit mode switch * fix code review comments (round 1) * refactory after design review * fix a few props initial value * [WIP][dashboard scoped filter] part 2: add algorithm to convert checked ids to scope object (#8564) * convert ids to scope object * use lodash helpers to make code readable * [WIP][dashboard scoped filter] part 3: merge filter scope settings into dashboard redux state (#8522) * merge filter scope settings into dashboard redux state * fix/add unit tests * minor bug fixes * fix save filter Scopes behavior * resolve review comments * fix save filter scope settings * minor comments * [dashboard scoped filter] Improve scrollbar inside modal (#8553) * improve scroll inside modal * make left pane and right pane scroll separately * fix review comments * force show filter_box as unchecked (#8587)
* [WIP][dashboard scoped filter] part 1: scope selector modal (apache#8557) * filter scope selector modal * add single-field-edit in multi-edit mode switch * fix code review comments (round 1) * refactory after design review * fix a few props initial value * [WIP][dashboard scoped filter] part 2: add algorithm to convert checked ids to scope object (apache#8564) * convert ids to scope object * use lodash helpers to make code readable * [WIP][dashboard scoped filter] part 3: merge filter scope settings into dashboard redux state (apache#8522) * merge filter scope settings into dashboard redux state * fix/add unit tests * minor bug fixes * fix save filter Scopes behavior * resolve review comments * fix save filter scope settings * minor comments * [dashboard scoped filter] Improve scrollbar inside modal (apache#8553) * improve scroll inside modal * make left pane and right pane scroll separately * fix review comments * force show filter_box as unchecked (apache#8587)
CATEGORY
Choose one
SUMMARY
A few UI updates based on designer's review:
All filtersandAll chartsbold font.Before: scroll bar is outside of modal

After: modal should have fixed height. when content is overflow, should show scroll bar inside modal, and keep modal header and footer in the fixed position.

TEST PLAN
manual test
ADDITIONAL INFORMATION
REVIEWERS
@kenchendesign