-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add list view filter to recent sessions home page component. #376
Add list view filter to recent sessions home page component. #376
Conversation
<language>en_US</language> | ||
<protected>true</protected> | ||
<shortDescription>Warning when list view limit is reached.</shortDescription> | ||
<value>The selected list view has 2000+ records, all matching records may not be displayed.</value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lbeller - good morning, we have a warning message that will be displayed if the list view selected to filter the recent sessions component contains 2000+ records. Screen shot attached still pending UX approval. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jjbennett , thanks! Here's suggested wording: There are over 2,000 records. Some records may not be shown.
<language>en_US</language> | ||
<protected>true</protected> | ||
<shortDescription>Warning when list view limit is reached.</shortDescription> | ||
<value>The selected list view has 2000+ records, all matching records may not be displayed.</value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jjbennett , thanks! Here's suggested wording: There are over 2,000 records. Some records may not be shown.
this.pageToken = this.previousPageToken; | ||
} | ||
|
||
set options(data) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we haven't used non-@api
setters like this much...if at all. neato!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few questions!
<label class="slds-form-element__label slds-m-bottom_none"> | ||
{labels.listView} | ||
</label> | ||
<div class="slds-form-element__control"> | ||
<c-list-view-selector | ||
object-api-name={objectApiName} | ||
onselect={handleListViewSelected} | ||
></c-list-view-selector> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to semantically link the label to the element with a for=
and an id=
</lightning-layout-item> | ||
<lightning-layout-item> | ||
<div class="slds-form-element slds-var-p-left_small"> | ||
<label class="slds-form-element__label slds-m-bottom_none"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same. link the label to the element.
</lightning-layout-item> | ||
</lightning-layout> | ||
</div> | ||
<div class="slds-var-p-around_small" style="background-color:#f3f2f2"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style in markup? is a there a reason it's not in the css file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Laziness lol, no other explanation I can find :)
|
||
import userId from "@salesforce/user/Id"; | ||
import pmmFolder from "@salesforce/resourceUrl/pmm"; | ||
import LIST_VIEW_LABEL from "@salesforce/label/c.List_Views"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make this const plural LIST_VIEWS_LABEL
for consistency?
if (this.rounded) { | ||
slds += " slds-box"; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this part of the scoped notif spec?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so, UX wanted rounded corners.
@@ -0,0 +1,10 @@ | |||
.listViewSelector button, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
curious, why a separate file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't appear to be necessary, moving it. Thanks for the catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually since they are overriding lwc base components it does need to be an override.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but you pulled them out of the other static resource file? can't we keep them all in one file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
future-proofing. got it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one comment. I was joking on the other one.
pageToken: "$pageToken", | ||
}) | ||
listView({ error, data }) { | ||
if (data && data.records) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jjbennett , No early return here.. Just j/k
<lightning-layout-item padding="horizontal-small"> | ||
<lightning-button-icon-stateful | ||
icon-name="utility:pin" | ||
alternative-text={labels.pinListView} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jjbennett , Can we add a hover text too so the users can see it just like the standard list view.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, thanks for the suggestion!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good work! off to QE.
@@ -0,0 +1,10 @@ | |||
.listViewSelector button, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but you pulled them out of the other static resource file? can't we keep them all in one file?
@@ -0,0 +1,10 @@ | |||
.listViewSelector button, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
future-proofing. got it.
Critical Changes
Changes
Issues Closed
New Metadata
Deleted Metadata
Definition of Done
Refer to Asteroids DoD document to see any additional details for the items below
CRUD/FLS is enforced in ApexPermission sets are updated to account for CRUD|FLS|Tab|ClassesField sets are updated to account for new fieldsPR contains draft release notes