WIP: Improve Sidebar UI #667
Reference in New Issue
Block a user
Delete Branch "Improvement/ui-of-sidebar-account-list"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Requirements
Period.last_7_days,Period.last_30_days. Default should bePeriod.last_30_days. Labels should be7Dand1MFixes #647
/claim #647
Screencast from 23-04-2024 11:29:31.webm
I have added all of the requirements, just time_series chart is giving errors which I am trying to solve.
This is a good start but I think there are a few things we'll want to address prior to merging. I left some specific comments within the code, but we'll also want to make sure the UI matches the designs. I'm seeing a few inconsistencies, screenshotted below:
@@ -8,17 +9,44 @@<div class="text-left"><%= type.model_name.human %></div>Guessing this is from testing? We'll need a more specific id here, along with the other chart below in this file.
@@ -71,9 +71,15 @@</nav>This auto-submit does not appear to be working. You'll need to wrap this in a form and ideally, we submit this via Turbo streams so only the sidebar is replaced when the period changes.
Also, by reading
@period, we're exposing ourselves to a bug where if you go to an individual account page and select a period that is not available in the sidebar, an error is thrown. Reproduction:Yeah I made these changes locally will push them there is just this one problem which I am trying to solve is that the favorable_direction and trend.direction are not updating they are the same for all of these trendlines so thier color is the same
It looks like you may need to specify the
favorable_directionin theseriesmethod onaccount(think we might have missed adding this when we updated time series charts):1f6e83ee91/app/models/account.rb (L53-L66)@JoshAntBrown Hey, I'm feeling pretty under the weather. Mind splitting with me and taking on from here?
I'm away for the weekend now so not sure I'll get any time to look at this.
@syedbarimanjan I'm going to mark this as a draft for now. When this is ready for another review just mark it as ready and I'll take a look.
@jakubkottnauer hey mind splitting with me and completing this?
I won't be able to pick up new work until Thursday. I can take over if this is not finished by then.
Thanks for the work on this. Closing this out as we've merged the completed bounty in #697
Pull request closed