
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
test-master-ui
Advanced tools
This repository contains a comprehensive UI library built with Next.js, React, and TypeScript for managing master data and master settings. It provides a set of reusable components designed to build powerful and flexible administration interfaces. The lib
This repository contains a comprehensive UI library built with Next.js, React, and TypeScript for managing master data and master settings. It provides a set of reusable components designed to build powerful and flexible administration interfaces. The library is structured as a package within a Next.js application, which also serves as a live demonstration environment.
The library is centered around four main components that provide the full CRUD (Create, Read, Update, Delete) functionality for master settings and their corresponding data.
MasterSettingThis component renders a list of all available master setting definitions. It features searching and pagination capabilities to easily navigate through numerous settings. From here, users can select a setting to view its associated data or create a new setting definition.
EditMasterSettingsThis is the powerhouse for defining the structure of your master data. It provides a form to create or edit a "master setting." Key features include:
code and name.MasterDataOnce a master setting is selected, this component displays all the data records that conform to that setting's schema. It includes:
EditMasterDataThis component renders a form that is dynamically generated based on the fields defined in the associated master setting. It allows users to create a new master data record or edit an existing one.
EditMasterData are created on-the-fly based on field definitions from a MasterSetting, ensuring data integrity and consistency.string, number, boolean, datearray (for a list of strings)json (with a built-in JSON editor)text-area, text-html (rich text editor), and text-markdownauto_number for automatically generating sequential codes.system_admin and tenant, allowing for tailored user experiences.JSONEditorComponent is available for creating or editing both settings and data via raw JSON, which is ideal for bulk imports or complex data structures.The included Next.js application serves as a demonstration of the UI library's capabilities.
Prerequisites:
Clone the repository:
git clone <repository-url>
cd <repository-directory>
Install dependencies:
npm install
Configure Environment Variables:
Create a .env file in the root of the project and add the necessary API endpoints.
# Example
NEXT_PUBLIC_MASTER_API_BASE=http://your-api-server.com
NEXT_PUBLIC_MASTER_APPSYNC_URL=wss://your.appsync-api.us-east-1.amazonaws.com/graphql
NEXT_PUBLIC_MASTER_APPSYNC_APIKEY=your-appsync-api-key
NEXT_PUBLIC_MASTER_APPSYNC_REGION=us-east-1
Run the development server:
npm run dev
The application will be available at http://localhost:8888.
Access the Application:
Upon visiting the application, you will be prompted to enter a Bearer Token and select a user Segment (system_admin or tenant). This is required to initialize the API clients and user context for the demo.
To use this library in other projects, you can build it into a distributable package.
npm run build
dist/ directory. This directory is ready to be published to a package registry like npm or consumed locally in another project.The build process uses tsup and a custom postbuild.js script to ensure that all client-side components are correctly marked with the "use client" directive for compatibility with the Next.js App Router.
FAQs
This repository contains a comprehensive UI library built with Next.js, React, and TypeScript for managing master data and master settings. It provides a set of reusable components designed to build powerful and flexible administration interfaces. The lib
The npm package test-master-ui receives a total of 0 weekly downloads. As such, test-master-ui popularity was classified as not popular.
We found that test-master-ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.