-
Notifications
You must be signed in to change notification settings - Fork 1
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
project: Move field report title generation logic to server #1470
base: develop
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 4ae480f The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
c7d2eb5
to
a48cd22
Compare
a48cd22
to
3348e90
Compare
const summaryVisible = !value.is_covid_report; | ||
const suffixVisible = !fieldReportId && isTruthyString(titleSuffix); | ||
|
||
const preferredColumnNoForSummary = Math.max( |
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.
Isn't this always zero?
value={titlePrefix} | ||
onChange={() => { }} | ||
/> | ||
)} | ||
{summaryVisible && ( |
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.
@samshara We should still display the final title from the server.
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 in the latest commit.
3348e90
to
0b136d2
Compare
2d48508
to
dcd13d3
Compare
dcd13d3
to
92fa86c
Compare
b030361
to
4ae480f
Compare
Addresses:
Depends on:
Changes
title
field will now store the user-provided title for the field report.summary
field will contain the automatically generated title from the server.This PR doesn't introduce:
console.log
meant for debugging