Repository navigation
UnderConstructionTag
UnderConstructionTag is a status tag used to mark pages or features that are still in progress. It renders a Carbon Tag with a construction icon and wraps it in a tooltip with contextual copy.
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
type |
'page' | 'feature' |
No | 'feature' |
Controls the noun used in the tooltip text (This page... or This feature...). |
The component always renders:
- a Carbon
Tagwith textUnder construction type="cyan"size="md"-
Constructionicon (renderIcon={Construction}) - class
under-construction-tag
The tag is wrapped in a Carbon Tooltip aligned to the bottom.
Tooltip label format:
This <type> is under development. Features may be incomplete or display incorrect data.
Examples:
-
type="page"=>This page is under development... -
type="feature"=>This feature is under development...
import UnderConstructionTag from "@/components/core/Tags/UnderConstructionTag";
<UnderConstructionTag />;
<UnderConstructionTag type="page" />;This folder also includes TagWrapper, a small layout helper that places UnderConstructionTag beside arbitrary child content.
TagWrapper props:
-
children: ReactElement(required) -
position?: 'left' | 'right'(defaultright) -
type?: 'page' | 'feature'(passed through toUnderConstructionTag)
Example:
import TagWrapper from "@/components/core/Tags/UnderConstructionTag/TagWrapper";
<TagWrapper position="left" type="page">
<h2>New Intake Screen</h2>
</TagWrapper>;index.scss defines two classes:
-
.under-construction-tag: sets tag height tofit-content -
.under-const-wrapper: horizontal flex layout with0.5remgap and centered alignment
Current unit tests cover:
- default tag rendering
- tooltip copy for both
pageandfeaturetypes -
TagWrapperclass and child rendering -
TagWrapperleft/right placement behavior
This wiki documents NR Waste Plus for users and developers. Verify security and deployment guidance against the current application configuration before applying it elsewhere.
- Report an issue or ask a question in the GitHub repository.
- Follow the Contributing Guidelines to propose an update.
- Read the Code of Conduct.
Collection indexes support human browsing and machine retrieval. Keep both current when adding or moving wiki pages.
NR Waste Plus Wiki | GitHub Repository