generated from altence/lightence-ant-design-react-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Neumorhpiv desgign 2 #164
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
Open
sumansaurabh
wants to merge
50
commits into
main
Choose a base branch
from
neumorhpiv-desgign-2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Neumorhpiv desgign 2 #164
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
68e962a
refactor(dashboard): clean up DashboardContent component by removing …
sumansaurabh cc6614e
feat(sidebar): update sidebar navigation and rename dashboard to Git …
sumansaurabh d7e5fe8
style(sider): update styles for MainSider and SiderMenu with new colo…
sumansaurabh ffd386c
style(sider): enhance styles for MainSider and SiderMenu with improve…
sumansaurabh 818590a
style(sider): adjust margin for menu items in SiderMenu styles
sumansaurabh 8d865d8
style(header): enhance header styles with new action buttons and impr…
sumansaurabh 492344c
style(breadcrumb): enhance MainBreadcrumb styles with improved layout…
sumansaurabh 0149287
style(layout): enhance MainLayout styles with new background, shadows…
sumansaurabh 10d90f2
style(dashboard): enhance ListAllRepos and SearchDropdown styles with…
sumansaurabh 4fafb2a
style(dashboard): update ListAllRepos styles with improved gradients …
sumansaurabh 5e93d3a
style(dashboard): enhance premium card styles with new border, box-sh…
sumansaurabh 41d3f01
style(buttons, dropdowns): enhance BaseButton and BaseDropdown styles…
sumansaurabh eeb9abc
style(dashboard): enhance PremiumContainer with new gradient, box-sha…
sumansaurabh 0fd56e2
style(dashboard): update PremiumContainer background color; enhance D…
sumansaurabh 2cc9323
style(dashboard): update PremiumContainer box-shadow dynamically base…
sumansaurabh ae51cba
style(VendorDropdown): add height to dropdown for improved layout con…
sumansaurabh b371fcc
style(BaseCard): implement neumorphic design with gradient background…
sumansaurabh 9b2e2a9
style(BaseTable): implement dark-themed neumorphic design with gradie…
sumansaurabh faa9e71
style(ApiKeys): remove BaseCard wrapper from ApiKeyTable; add delete …
sumansaurabh 56c24fa
style(ApiKeysTable): add ActionRow component for improved action hand…
sumansaurabh a49b016
style(ApiKeysTable): comment out gradient background and shadow in Ac…
sumansaurabh e1dbc0b
style(BaseSwitch): update box-shadow and border color to use inputPla…
sumansaurabh 59cae31
style(ApiKeysTable, BaseTable): update inactive record text color for…
sumansaurabh b1de244
style(BaseFormItem): enhance dark theme styling with neumorphic desig…
sumansaurabh d91c635
style(PersonalInfo): add neumorphic design section for improved UI; u…
sumansaurabh 6e5fddc
style(ConnectAccountItem): refactor styles for improved layout and re…
sumansaurabh 7f1ae8d
style(ConnectAccountItem): refactor for improved layout and responsiv…
sumansaurabh 780589c
style(PersonalInfo, ConnectAccountItems): refactor layout for improve…
sumansaurabh 0087ad6
style(SearchDropdown, MainLayout): adjust padding for improved layout…
sumansaurabh 56a5846
style(ConnectAccountItem): remove default padding from card body for …
sumansaurabh 3034e2a
style(BaseFormItem, ConnectAccountItem): adjust font size for better …
sumansaurabh 9cd009a
style(ConnectAccountItem): adjust margin-top for IconWrapper; enable …
sumansaurabh 490365e
style(lightTheme): update heading color to improve contrast and reada…
sumansaurabh 0b005d9
style(BaseCard): remove unnecessary comments and improve code clarity
sumansaurabh 1a02b66
style(ListAllRepos): add !important to padding for OuterBaseCard on x…
sumansaurabh b67a68c
style(ListAllRepos): update OuterBaseCard background and box-shadow f…
sumansaurabh 1de3ece
style(Profile): enhance button and card styles with gradients and sha…
sumansaurabh 7eb810c
style(ProfileLayout): add gradient background and improve card styles…
sumansaurabh cf27370
style(ProfileInfo): enhance avatar styles with neumorphism and improv…
sumansaurabh 53279a4
style(SecuritySettings): add neumorphic card styles and refactor TwoF…
sumansaurabh 4625059
style(LoginForm): center align login title for improved aesthetics
sumansaurabh 5630cdb
style(SignUpForm): refactor form layout and center align terms of use…
sumansaurabh de80fd6
style(AuthForms): center align titles and update footer layout for im…
sumansaurabh 6004581
refactor(ProfileNav): remove security settings navigation item for cl…
sumansaurabh c6c0099
style(BaseFormItem): simplify success text display by removing dynami…
sumansaurabh 2c8bb1e
style(SocialButton): enhance button design with neumorphic shadows an…
sumansaurabh 83d74b1
style(SignUpForm): adjust font size for agreement and policy links fo…
sumansaurabh 703a293
style(InnerBaseCard): enhance design with gradient background, improv…
sumansaurabh 4426ba0
feat(AuthLayout): implement Three.js scene with animated birds for en…
sumansaurabh be1f656
feat(AuthLayout): replace Three.js scene with PenifyIntroScene for im…
sumansaurabh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| import { DeleteOutlined, CheckCircleOutlined, StopOutlined } from '@ant-design/icons'; | ||
| import React from 'react'; | ||
| import { BaseButton } from '@app/components/common/BaseButton/BaseButton'; | ||
| import { ActionRowContainer } from './ApiKeysTable.style'; | ||
| import { ApiTableRow } from '@app/api/apiToken.api'; | ||
|
|
||
| interface ActionRowProps { | ||
| record: ApiTableRow; | ||
| handleToggleRow: (id: number) => void; | ||
| handleDeleteRow: (id: number) => void; | ||
| isCreating?: boolean; // If record.id === -1 | ||
| t: (key: string) => string; | ||
| } | ||
|
|
||
| export const ActionRow: React.FC<ActionRowProps> = ({ | ||
| record, | ||
| handleToggleRow, | ||
| handleDeleteRow, | ||
| isCreating, | ||
| t | ||
| }) => { | ||
| if (isCreating) { | ||
| // If your record has id === -1, you might show a "Create" button or something else | ||
| return ( | ||
| <ActionRowContainer> | ||
| <BaseButton className="action-btn" onClick={() => handleToggleRow(record.id)}> | ||
| {t('apiTable.create')} | ||
| </BaseButton> | ||
| </ActionRowContainer> | ||
| ); | ||
| } | ||
|
|
||
| // Normal row: show activate/deactivate and delete | ||
| return ( | ||
| <ActionRowContainer> | ||
| <BaseButton | ||
| className="action-btn" | ||
| ghost | ||
| onClick={() => handleToggleRow(record.id)} | ||
| icon={record.isActive ? <StopOutlined /> : <CheckCircleOutlined />} | ||
| > | ||
| {record.isActive ? t('apiTable.deactivate') : t('apiTable.activate')} | ||
| </BaseButton> | ||
|
|
||
| <div className="divider" /> | ||
|
|
||
| <BaseButton | ||
| className="action-btn delete-btn" | ||
| danger | ||
| onClick={() => handleDeleteRow(record.id)} | ||
| icon={<DeleteOutlined />} | ||
| > | ||
| {t('apiTable.delete')} | ||
| </BaseButton> | ||
| </ActionRowContainer> | ||
| ); | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| // ApiKeyTable.styles.ts (example filename) | ||
| import styled from 'styled-components'; | ||
|
|
||
| export const ActionRowContainer = styled.div` | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; /* center in the column */ | ||
| gap: 1rem; /* space between buttons */ | ||
| padding: 0.5rem 1rem; | ||
| border-radius: 8px; | ||
|
|
||
| /* Eye-catching gradient for the action area */ | ||
| // background: unset; | ||
|
|
||
| /* Optional subtle shadow for a “raised” look */ | ||
| // box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15); | ||
|
|
||
| /* A small vertical divider between activate/deactivate and delete */ | ||
| .divider { | ||
| width: 1px; | ||
| height: 24px; | ||
| background-color: rgba(255, 255, 255, 0.5); | ||
| } | ||
|
|
||
| /* Style the buttons to match the gradient background */ | ||
| .action-btn { | ||
| color: #fff; | ||
| border: none; | ||
| transition: background-color 0.2s, color 0.2s; | ||
|
|
||
| &:hover { | ||
| background-color: rgba(255, 255, 255, 0.15); | ||
| color: #fff; | ||
| } | ||
|
|
||
| /* For “danger” or “delete” buttons, you might want a slight | ||
| variation in color or an icon. (Example: a red accent.) | ||
| */ | ||
| &.delete-btn { | ||
| background-color: rgba(255, 0, 0, 0.2); | ||
| &:hover { | ||
| background-color: rgba(255, 0, 0, 0.3); | ||
| } | ||
| } | ||
| } | ||
| `; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The commented-out code should be removed to keep the code clean and maintainable.