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

tweak(tupaiaWeb): RN-1088 Description in Export Preview & Download File #5905

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

hrazasalman
Copy link
Contributor

Issue #: RN-1088

Changes:

  • Addition of description text area on export preview.

Screenshots:

Screenshot 2024-09-16 at 6 56 54 pm Screenshot 2024-09-16 at 6 57 25 pm

Copy link
Contributor

@alexd-bes alexd-bes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So good! Just a few changes requested from me, mainly around how validation is handled

<PDFExportDashboardItem
key={dashboardItem.code}
dashboardItem={dashboardItem}
entityName={entity?.name}
activeDashboard={activeDashboard}
isPreview={isPreview}
settings={settings}
displayDescription={pageIndex === 1 || (!isPreview && i === 0)}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently (although this is due to change) there is 1 visual per page, so as long as i===0 this should always be the same as being the first page.
Once we merge in the other ticket that I worked on with continuous pages, you can amend this.

Copy link
Contributor

@alexd-bes alexd-bes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


const Wrapper = styled.div`
display: flex;
flex-direction: column;
`;

const ExportDescriptionInputArea = styled(TextField)`
const ExportDescriptionInputArea = styled((props: OutlinedTextFieldProps) => (
<TextField {...props} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of interest, is there any reason you need to do this instead of styled(TextField)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yes, because it was defaulting to OutlinedTextFieldProps which wasn't allowing me to configure variant='outline'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants