Skip to content

Style Appwrite Error Page - #5922

Merged
eldadfux merged 1 commit into
1.4.xfrom
feat-error-page
Aug 2, 2023
Merged

eldadfux merged 1 commit into
1.4.xfrom
feat-error-page

Conversation

@stnguyen90

@stnguyen90 stnguyen90 commented Aug 1, 2023 •

Copy link
Copy Markdown
Contributor

What does this PR do?

If an endpoint throws an exception, an error like this is shown:

image

This PR adds some styling so that the page matches the Console

Test Plan

Manual:

Prod mode:

image

Dev mode:

image

Related PRs and Issues

None

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

@stnguyen90
stnguyen90 changed the base branch from master to 1.4.x August 1, 2023 00:52
@stnguyen90
stnguyen90 marked this pull request as ready for review August 1, 2023 01:28

@eldadfux eldadfux left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's use proper escape when printing stuff in the template.

Inside the template, we can use:

$this->print($value, View::FILTER_ESCAPE);

https://github.com/utopia-php/framework/blob/master/src/View.php#L9C18-L9C31
https://github.com/utopia-php/framework/blob/master/src/View.php#L208

@stnguyen90
stnguyen90 removed the request for review from fogelito August 1, 2023 18:25
@eldadfux
eldadfux merged commit be67fe9 into 1.4.x Aug 2, 2023
@stnguyen90
stnguyen90 deleted the feat-error-page branch August 3, 2023 01:21
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