chore: remove Hero from studio-panel (archive stub) — 2025-11-10
This commit is contained in:
parent
a501d398ff
commit
a81ada0b63
8
.idea/.gitignore
generated
vendored
Normal file
8
.idea/.gitignore
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
|
# Editor-based HTTP Client requests
|
||||||
|
/httpRequests/
|
||||||
|
# Datasource local storage ignored files
|
||||||
|
/dataSources/
|
||||||
|
/dataSources.local.xml
|
||||||
12
.idea/AvanzaCast.iml
generated
Normal file
12
.idea/AvanzaCast.iml
generated
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="WEB_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager">
|
||||||
|
<content url="file://$MODULE_DIR$">
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
||||||
6
.idea/copilot.data.migration.agent.xml
generated
Normal file
6
.idea/copilot.data.migration.agent.xml
generated
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="AgentMigrationStateService">
|
||||||
|
<option name="migrationStatus" value="COMPLETED" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
6
.idea/copilot.data.migration.ask.xml
generated
Normal file
6
.idea/copilot.data.migration.ask.xml
generated
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="AskMigrationStateService">
|
||||||
|
<option name="migrationStatus" value="COMPLETED" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
6
.idea/copilot.data.migration.edit.xml
generated
Normal file
6
.idea/copilot.data.migration.edit.xml
generated
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="EditMigrationStateService">
|
||||||
|
<option name="migrationStatus" value="COMPLETED" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
8
.idea/modules.xml
generated
Normal file
8
.idea/modules.xml
generated
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/AvanzaCast.iml" filepath="$PROJECT_DIR$/.idea/AvanzaCast.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
0
docs/REMOVED_Hero.md
Normal file
0
docs/REMOVED_Hero.md
Normal file
14
docs/archive/Hero-removed-2025-11-10.txt
Normal file
14
docs/archive/Hero-removed-2025-11-10.txt
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
Hero component removed from `packages/studio-panel` on 2025-11-10.
|
||||||
|
|
||||||
|
Current file (stub) contents archived here:
|
||||||
|
|
||||||
|
// Hero removed for Studio Panel context.
|
||||||
|
// Kept as a stub to avoid deleting the file from the repo — returns null so it doesn't render.
|
||||||
|
export default function Hero() {
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
|
Notes:
|
||||||
|
- The full original Hero implementation was previously replaced during a refactor and is not available in this archived stub. If you need the original implementation, retrieve it from git history (e.g., `git log -- packages/studio-panel/src/components/Hero.tsx` and `git checkout <commit> -- packages/studio-panel/src/components/Hero.tsx`).
|
||||||
|
- After archiving this stub, the file `packages/studio-panel/src/components/Hero.tsx` will be deleted from the repository.
|
||||||
|
|
||||||
0
docs/design-tokens.md
Normal file
0
docs/design-tokens.md
Normal file
0
docs/figma-extracted-tokens.md
Normal file
0
docs/figma-extracted-tokens.md
Normal file
0
docs/figma-import-report.md
Normal file
0
docs/figma-import-report.md
Normal file
0
packages/studio-panel/.eslintrc.cjs
Normal file
0
packages/studio-panel/.eslintrc.cjs
Normal file
0
packages/studio-panel/src/components/Hero.tsx
Normal file
0
packages/studio-panel/src/components/Hero.tsx
Normal file
27
packages/studio-panel/src/components/ui/Button.tsx
Normal file
27
packages/studio-panel/src/components/ui/Button.tsx
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
// ...existing code...
|
||||||
|
import React from 'react'
|
||||||
|
|
||||||
|
type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
||||||
|
variant?: 'default' | 'primary' | 'ghost'
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function Button({
|
||||||
|
children,
|
||||||
|
variant = 'default',
|
||||||
|
className = '',
|
||||||
|
...props
|
||||||
|
}: ButtonProps) {
|
||||||
|
const base = 'inline-flex items-center justify-center rounded-md px-3 py-1 text-sm font-medium transition'
|
||||||
|
const variants: Record<string, string> = {
|
||||||
|
default: 'bg-white/10 text-white hover:bg-white/20',
|
||||||
|
primary: 'bg-gradient-to-br from-blue-600 to-blue-500 text-white shadow-sm',
|
||||||
|
ghost: 'bg-transparent text-white hover:bg-white/4',
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<button className={`${base} ${variants[variant] ?? variants.default} ${className}`} {...props}>
|
||||||
|
{children}
|
||||||
|
</button>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
0
packages/studio-panel/src/components/ui/Dialog.tsx
Normal file
0
packages/studio-panel/src/components/ui/Dialog.tsx
Normal file
18
packages/studio-panel/src/components/ui/IconButton.tsx
Normal file
18
packages/studio-panel/src/components/ui/IconButton.tsx
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
// ...existing code...
|
||||||
|
import React from 'react'
|
||||||
|
|
||||||
|
type IconButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
||||||
|
'aria-label': string
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function IconButton({ className = '', children, ...props }: IconButtonProps) {
|
||||||
|
return (
|
||||||
|
<button
|
||||||
|
className={`inline-flex items-center justify-center p-2 rounded-md hover:bg-white/6 transition ${className}`}
|
||||||
|
{...props}
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
</button>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
0
packages/studio-panel/src/components/ui/index.ts
Normal file
0
packages/studio-panel/src/components/ui/index.ts
Normal file
0
packages/studio-panel/src/design/figma-tokens.json
Normal file
0
packages/studio-panel/src/design/figma-tokens.json
Normal file
Loading…
x
Reference in New Issue
Block a user