Implement signature ingestion and cleanup
- Add functionality to paste and parse signatures from text input. - Implement a "clean" toggle to delete signatures not present in the pasted input. - Update routing to use /regions/<region>/<system> format.
This commit is contained in:
@@ -57,11 +57,7 @@ const fetchRegionData = async (regionName: string): Promise<SolarSystem[]> => {
|
||||
return systems;
|
||||
};
|
||||
|
||||
export const RegionMap: React.FC<RegionMapProps> = ({
|
||||
regionName,
|
||||
focusSystem,
|
||||
isCompact = false
|
||||
}) => {
|
||||
const RegionMap = ({ regionName, focusSystem, isCompact = false }: RegionMapProps) => {
|
||||
const navigate = useNavigate();
|
||||
const [viewBox, setViewBox] = useState({ x: 0, y: 0, width: 1200, height: 800 });
|
||||
const [isPanning, setIsPanning] = useState(false);
|
||||
@@ -135,8 +131,9 @@ export const RegionMap: React.FC<RegionMapProps> = ({
|
||||
}, [systems, focusSystem, isCompact]);
|
||||
|
||||
const handleSystemClick = (systemName: string) => {
|
||||
// Pass the region name when navigating to a system
|
||||
navigate(`/systems/${systemName}?region=${regionName}`);
|
||||
if (focusSystem === systemName) return;
|
||||
|
||||
navigate(`/regions/${regionName}/${systemName}`);
|
||||
};
|
||||
|
||||
const handleMouseDown = useCallback((e: React.MouseEvent) => {
|
||||
@@ -378,3 +375,5 @@ export const RegionMap: React.FC<RegionMapProps> = ({
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default RegionMap;
|
||||
|
||||
Reference in New Issue
Block a user