question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error Pages Component (terra-consumer)

See original GitHub issue

Issue Description

The Terra Consumer Error Page is a display presented with an error message and location for a button on a Card component.

Issue Type

  • New Feature
  • Enhancement
  • Bug
  • Other

Expected Behavior

The Error Page component will show Error icon, Error message and button. A button will provide a user with primary and secondary action.

There are different types of error pages:

  • Not Authorized Error Page: This page will always have a “Not Authorized” text and rest (icon, message, and button) are optional.
  • Sensitive concept Error Page: This page will always have a “Sensitive Data” text and rest (icon, message, and button) are optional.
  • Error Page: This page will always have an “Error” text and rest (icon, message, and button) are optional.

Tech Design:

Considerations:

Example:

import React from 'react';
import ErrorPages from 'terra-core-error-pages';
import Button from 'terra-button';

<ErrorPages
  name="error name"
  description="error description"
  buttonText="error button text"
  buttonOnClick={this.handleClick();}
  isGlyphHidden={false}
 />

This will require creating new files:
/terra-core/packages/terra-core-error-pages/src/ErrorPages.jsx
/terra-core/packages/terra-core-error-pages/src/ErrorIcon.jsx
/terra-core/packages/terra-core-error-pages/src/ErrorPages.scss

Props table:

Prop Name Type Is Required Default Value Description
name string required ‘’ The name of the error to display.
description string optional ‘’ The error description to display.
buttonOnClick func optional undefined The click callback function that should be applied to the button.
buttonText string optional ‘’ The display text for the button.
isGlyphHidden bool optional false Whether or not the error glyph should be displayed.

CSS Classes:

Selector Description
well-Icon-large well-text–light Icon styling
well-Font-xxx–large well-text–light Icon text style
well-Font–body well-text–large message style
terra-Button terra-Button–default well-Font–large well-Button–concept3 well-Button–fill Terra Button style

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
alex-bezekcommented, Aug 24, 2017

No, I think this should take the terra-clinical component, move it to terra-core, and theme/enhance it properly to solve the existing terra-clinical look/feel (legacy), consumer theme, and OCS theme. I think the code will end up in terra-core.

0reactions
PaulSolDevcommented, Nov 20, 2017

Orion JIRA created

Read more comments on GitHub >

github_iconTop Results From Across the Web

Assigning Salesforce Site Error Pages
Salesforce sites use Visualforce pages for site and error pages. Sample error pages use the SiteSamples static resource for their style sheet and...
Read more >
Error pages | fresh docs
Error pages can be used to customize the page that is shown when an error occurs in the application.
Read more >
Custom Error Pages with nuxt.js - Daniel 'mavrick' Lang
If you're like me, you will want to setup some additional components to manage different error states. This keeps our code nice and...
Read more >
Configuring Custom Pages (Error and Challenge)
Learn how to customize Cloudflare's default error and challenge pages to better fit your brand and messaging. Overview Step 1: Create a...
Read more >
How to customize the error pages? - Jahia Academy
In order to package it into a module. You should package errors/error_404.jsp into a war file. This change could be also included in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found