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

DRAFT 4776 de techify new report modal #4804

Closed
wants to merge 4 commits into from

Conversation

fergie-nz
Copy link
Contributor

@fergie-nz fergie-nz commented Sep 17, 2024

Fixes #4776

πŸ‘©πŸ»β€πŸ’» What does this PR do?

  • Removes non configurable fields (This change comes with update reports from reports PR)
  • Changes title wording
  • Date defaults to today
  • item search added starts_with for standard reports on name and/or code search

Works with changes made in omSupply reports PR https://github.com/msupply-foundation/open-msupply-reports/pull/93

πŸ’Œ Any notes for the reviewer?

πŸ§ͺ Testing

You can test this report by upserting the new reports from the #4776 reports branch, and then generating a new report.

You will see the modal has changed and search for code or name on standard reports now runs by 'starts with' rather than 'contains'

πŸ“ƒ Documentation

@github-actions github-actions bot added this to the V2.3.0 milestone Sep 17, 2024
@github-actions github-actions bot added enhancement New feature or request Team Ruru πŸ¦‰ Andrei, Roxy, Ferg Severity: Normal Bugs which have an acceptable workaround. Moderate/tolerable user impact. Next minor release. labels Sep 17, 2024
@@ -29,11 +29,15 @@ export const ReportArgumentsModal: FC<ReportArgumentsModalProps> = ({
monthsItemsExpire,
} = store?.preferences ?? {};

// default expiry date as now formatted to datepicker
const expiryDate = new Date().toISOString().slice(0, 10);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wondered if made more sense to have this default coming through with report json schema, but it was much easier to call date here rather than try and add functions to json

Comment on lines +12 to +13
/// Search term must begin with (case insensitive)
starts_with: Option<String>,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

have added starts_with to string filter.

Is this okay? I was wondering why we didn't have all implementations of StringFilter included already?

@fergie-nz
Copy link
Contributor Author

This PR will be streamlined to just make modal text changes - remaining changes have not been triaged

@fergie-nz fergie-nz changed the title 4776 de techify new report modal DRAFT 4776 de techify new report modal Sep 17, 2024
@fergie-nz fergie-nz closed this Sep 17, 2024
@roxy-dao roxy-dao deleted the 4776-de-techify-new-report-modal branch December 18, 2024 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Severity: Normal Bugs which have an acceptable workaround. Moderate/tolerable user impact. Next minor release. Team Ruru πŸ¦‰ Andrei, Roxy, Ferg
Projects
None yet
Development

Successfully merging this pull request may close these issues.

More user friendly header for the report window & better filters please
1 participant