Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions Backend/src/gists/dto/create-gist.dto.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { IsInt, IsLatitude, IsLongitude, IsOptional, IsString, Max, MaxLength, Min } from 'class-validator';
import { IsStellarAddress } from '../../common/validators';

export class CreateGistDto {
@ApiProperty({
Expand All @@ -26,18 +27,6 @@ export class CreateGistDto {
@IsOptional()
@IsStellarAddress()
authorAddress?: string;
@IsString()
@MaxLength(80)
author?: string;

@ApiPropertyOptional({
description: 'Optional Stellar address alias for the author',
example: 'GABC...XYZ',
})
@IsOptional()
@IsString()
@MaxLength(80)
authorAddress?: string;

@ApiPropertyOptional({
description: 'Time-to-live in hours (default: 24, max: 168)',
Expand Down
7 changes: 6 additions & 1 deletion Backend/src/gists/gists.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ import { stripHtml } from '../common/utils/sanitize';

const DEFAULT_TTL_HOURS = 24;

interface CacheEntry {
data: Record<string, unknown>;
expiresAt: number;
}

export interface CountNearbyResult {
count: number;
radius: number;
Expand Down Expand Up @@ -47,7 +52,7 @@ export class GistsService {
created_at: new Date().toISOString(),
});

const author = dto.authorAddress ?? dto.author;
const author = dto.authorAddress;
const { gistId, txHash } = await this.sorobanService.postGist(locationCell, cid, author);

this.logger.log(`Gist posted → cell=${locationCell} cid=${cid} gistId=${gistId}`);
Expand Down
136 changes: 133 additions & 3 deletions Frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,19 @@
"lint": "next lint"
},
"dependencies": {
"@gsap/react": "^2.1.2",
"chart.js": "^4.5.1",
"clsx": "^2.1.1",
"framer-motion": "^12.42.2",
"gsap": "^3.15.0",
"leaflet": "^1.9.4",
"lucide-react": "^0.539.0",
"next": "15.4.6",
"react": "19.1.0",
"react-chartjs-2": "^5.3.1",
"react-dom": "19.1.0",
"react-leaflet": "^5.0.0",
"tailwind-merge": "^3.6.0",
"viem": "^2.33.3",
"wagmi": "^2.16.3"
},
Expand Down
2 changes: 1 addition & 1 deletion Frontend/src/components/map/MapLoader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useMemo } from 'react';
export default function MapLoader() {
const Map = useMemo(
() =>
dynamic(() => import('components/map/Map'), {
dynamic(() => import('@/components/map/Map'), {
loading: () => <p>Map is loading...</p>,
ssr: false, // This is allowed here!
}),
Expand Down
Loading