-
Notifications
You must be signed in to change notification settings - Fork 16
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
Feat/implement design reporting tab #1384
Conversation
- refactor to use context - split up into sub components
-extends TableGroup with `rounded` prop -> as required by design - extends InputBox and Select component with `bordered` variation - set csv file names - refactor markup ReportCompnent - creates new DateRange fabric component
wip state
PR deployed in Google Cloud |
A few testing notes:
For the borrower tx type, I would suggest to just capitalize the first letter. E.g. For the investor tx type, I would suggest:
|
For some reason this PR does not trigger Github Actions correctly 🤷♂️ |
- extends Spinner to accepts ShelfProps -> enable setting margin directly on Spinner - set minWidth on DataTable via new useElementScrollSize -> nested flex container need specific width otherwise it will inherit it's parent container width (borders and background hover color won't span on whole table width) - refactor loading state of reports - adds custom column sizes for each report table
bring changes (#1476) from Report to report > index
My testing feedback.. it already looks a lot better! @Hornebom On the first screenshot:
Second screenshot:
|
const [value, setValue] = React.useState(defaultOption.value) | ||
const [startDate, setStartDate] = React.useState(start || new Date()) | ||
|
||
React.useEffect(() => { |
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.
this can just be in the state initializer
const [startDate, setStartDate] = React.useState(getDate[defaultOption.value](end))
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.
refactored
@@ -68,6 +69,7 @@ export const DataTable = <T extends Record<string, any>>({ | |||
) | |||
|
|||
const [currentSortKey, setCurrentSortKey] = React.useState(defaultSortKey || '') | |||
const [setNode, { scrollWidth }] = useElementScrollSize() |
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 think a better API for this would be
const ref = useRef()
const { scrollWidth } = useElementScrollSize(ref)
doing a setState for setting the ref seems like a bad idea
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.
refactored
- feedback #1384 (comment) - removes start prop from DateRange - extends DateRange stories with example of dates
Description
Note
Working pull request with verified commits: #1520
This pr is only for reference
Issue: #1199
Approvals