Skip to content
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

Feat/hng 4 super admin email template table #200

Merged

Conversation

Tommy-Bada
Copy link
Collaborator

@Tommy-Bada Tommy-Bada commented Jul 20, 2024

Create Paginated Table List of Template List Items Component

Issue #4

Summary

This PR implements a Paginated Table List of Template List Items Component for HTML Templates used in the Super Admin Email Management Dashboard. The component is designed to display a list of email templates with pagination, adhering to the brand colors and design.

Context

As a user, I want to be able to view a paginated list of my Email HTML Templates. This component allows users to navigate through their templates in a responsive, fluid-width table format.

Changes

  • Created a Paginated Table List of Template List Items Component for HTML Templates.
  • Added onPreview prop to each Table List Item component to handle preview actions.
  • Implemented a pagination component as specified in the design.
  • Ensured the component has a fluid width and is responsive across devices.
  • Added 7 images to the public folder as dummy data for the email template items.
  • Created 3 new files in the component folder:
    • TemplateListItem.tsx for the email item list.
    • TemplateListTable.tsx to map dummy data to the email item list.
    • TemplateListPagination.tsx for controlling pagination.

Screenshots

Screenshot 2024-07-20 at 14 29 16

Checklist

  • Code follows the project style guidelines.
  • Component is responsive and fluid across devices.
  • Pagination component functions as expected.
  • onPreview passed as requested.

Copy link
Collaborator

@SirhmVFX SirhmVFX left a comment

Choose a reason for hiding this comment

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

resolve comflicts

pnpm-lock.yaml Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

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

you're not to edit this pnpm-lock.yaml file

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@SirhmVFX I have fixed that.

@Tommy-Bada Tommy-Bada requested a review from SirhmVFX July 21, 2024 21:50
@SirhmVFX SirhmVFX merged commit b5bb27a into hngprojects:dev Jul 21, 2024
1 check passed
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