-
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
reporting buttons fixes #2567
reporting buttons fixes #2567
Conversation
3ef608e
to
f6b8ba1
Compare
@@ -29,11 +30,13 @@ const taskListElements: TaskListElement[] = [ | |||
}, | |||
]; | |||
|
|||
export default function SignOffPage() { | |||
const SignOffPage: React.FC<HasReportVersion> = ({ version_id }) => { |
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.
@gdalcengio
For your consideration:
IMO, for Next.js apps, if your component is a page component, the preferred pattern is a function declaration with export default; such as, export default function SignOffPage({ version_id }: HasReportVersion) {...
This pattern aligns with the framework's dynamic routing and file-based conventions.
Seems, this is still an issue:
|
f6b8ba1
to
3089450
Compare
@@ -236,8 +236,6 @@ export default function FacilityEmissionAllocationForm({ | |||
setSubmitButtonDisabled(false); |
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.
@gdalcengio
FYI: Clicking Save
disables the Save and Continue
due to handleSubmit\setSubmitButtonDisabled(false);
FYI, related to breadcrumb component, there are some navigation links with obsolete |
4052364
to
4711986
Compare
9949aa6
to
7777381
Compare
chore: fix additonal data back url chore: fix backURL chore: fix incorrect url
7777381
to
6238498
Compare
Other components with button display and functionality issues: |
bd1a0fe
to
eed0626
Compare
const continueUrl = | ||
operationType === "Linear Facility Operation" | ||
? `/reporting/reports/${version_id}/facilities/lfo-facilities${queryString}` |
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.
FYI: incorrect /reporting/reports/
instead of /reports/
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.
local testing confirms working. Only possible issue noticed is :
On 'Review Operation Information' page: clicking "Save" generates error =
An error occurred while fetching /reporting/report-version/3/report-operation: SyntaxError: Unexpected token '<', "
<!doctype "... is not valid JSON
- status 200 is still returned from the POST and seem to function properly. Behaviour is NOT seen when clicking "Save and Continue". probably not an issue that would be noticed in testing tomorrow
|
||
*/ |
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.
commented code still present
Thanks @acatchpole ! |
chore: additional data chore: add test delay for CI pre-commit fix for CI fix for CI
076a829
to
bd961e9
Compare
Thank you @shon-button. I really appreciate you cleaning up all the mess I left! |
bcgov/cas-reporting#444
🔬 SH Post Review - Testing:
Expected Results
Start
orContinue
Operator 3
row buttonStart
Expected Results
Review operation information
Back
;Save
;Save & Continue
Operator 3
row buttonContinue
Expected Results
Review operation information
Back
;Save
;Save & Continue
Back
Expected Results
Operator 3
row buttonContinue
Save
Expected Results
Save & Continue
Expected Results
Person Responsible
Back
;Save
;Save & Continue
Back
Expected Results
Save & Continue
Person Responsible
Save
Expected Results
Save & Continue
Expected Results
Review facility information
Back
;Save
;Save & Continue
Back
Expected Results
Save & Continue
Review facility information
Save
Expected Results
Save & Continue
Expected Results
General stationary combustion excluding line tracing
Back
;Save
;Save & Continue
Back
Expected Results
Save & Continue
General stationary combustion excluding line tracing
Save
Expected Results
Save & Continue
Expected Results
Activities
(currently "Something went wrong...")Non-Attributable Emissions
Back
;Save
;Save & Continue
Save
Expected Results
Save & Continue
Expected Results
Emission Summary
Back
;Save
;Continue
Save
is disabledContinue
Expected Results
Production Data
Back
;Save
;Save & Continue
Back
Expected Results
Continue
Expected Results
Production Data
Save
Expected Results
Save & Continue
Expected Results
Allocation Of Emissions
Back
;Save
;Save & Continue
Back
Expected Results
Save & Continue
Allocation Of Emissions
Save
Expected Results
Save & Continue
Expected Results
Additional Reporting Data
Back
;Save
;Save & Continue
Back
Expected Results
Save & Continue
Additional Reporting Data
Save
Expected Results
Save & Continue
Expected Results
new-entrant-information
(coming soon)Back
;Save
;Save & Continue
Expected Results
Verification
Back
;Save
;Save & Continue
Save
Expected Results
Save & Continue
Expected Results
Attachments
Back
;Save
;Save & Continue
Back
Expected Results
Save & Continue
Attachments
Save
Expected Results
Save & Continue
Expected Results
Final Review
Back
;Save
;Save & Continue
Back
Expected Results
Save & Continue
Final Review
Save
Expected Results
Save & Continue
Expected Results
Sign Off
Back
;Save
;Save & Continue
Save
is disabledBack
Expected Results
Save & Continue
Sign Off
Save & Continue
Expected Results
Successful Submission
displays