Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
139 commits
Select commit Hold shift + click to select a range
c7cd9da
Add AI Context
alexcibotari Oct 15, 2025
5d9f351
Add zardui
alexcibotari Oct 15, 2025
0910e95
ignore generated code
alexcibotari Oct 15, 2025
8415a96
Add more componenets
alexcibotari Oct 15, 2025
ff3dd61
Add more components
alexcibotari Oct 25, 2025
959c5c4
Add more components
alexcibotari Oct 27, 2025
fcf8452
Add Spartan
alexcibotari Oct 31, 2025
5a3671b
Add Spartan
alexcibotari Oct 31, 2025
f06c213
Add more components
alexcibotari Nov 2, 2025
b326800
Add more components
alexcibotari Nov 2, 2025
10cfb4a
Add Spartan
alexcibotari Nov 2, 2025
25712e0
Add Spartan
alexcibotari Nov 3, 2025
0f95599
Add more components
alexcibotari Nov 5, 2025
3db9320
Add more components
alexcibotari Nov 6, 2025
ca9a2f4
Update Sidebar
alexcibotari Nov 7, 2025
18a0a75
Update Sidebar
alexcibotari Nov 7, 2025
2007245
Add more components
alexcibotari Nov 8, 2025
7c4cf01
Add more components
alexcibotari Nov 8, 2025
81bb968
Update Sidebar
alexcibotari Nov 8, 2025
692a0c4
Update breadcrumbs
alexcibotari Nov 8, 2025
3d2cd06
Update Toolbar Buttons
alexcibotari Nov 8, 2025
fd894db
Update Toolbar Buttons
alexcibotari Nov 9, 2025
e8f0487
Update Toolbar Buttons
alexcibotari Nov 9, 2025
7045d53
Update Toolbar Buttons
alexcibotari Nov 9, 2025
996cfde
Update Toolbar Buttons
alexcibotari Nov 9, 2025
05498c3
Update Toolbar Buttons
alexcibotari Nov 9, 2025
1ff2ceb
Update Sidebar
alexcibotari Nov 10, 2025
e6373fc
Update Toolbar
alexcibotari Nov 11, 2025
3e95939
Update
alexcibotari Nov 11, 2025
690fb0a
Update Toolbar Buttons
alexcibotari Nov 17, 2025
ff1db10
Update Toolbar Buttons
alexcibotari Nov 18, 2025
5ad41b7
Update Elements
alexcibotari Nov 29, 2025
88e409e
Update Elements
alexcibotari Nov 29, 2025
ba62abe
Update Elements
alexcibotari Nov 29, 2025
9f633cf
Update Elements
alexcibotari Nov 29, 2025
f7d2210
Update Elements
alexcibotari Nov 29, 2025
503ef70
Update Elements
alexcibotari Nov 29, 2025
10fcc3f
Update Elements
alexcibotari Nov 29, 2025
b3e4013
Update Content Section
alexcibotari Dec 2, 2025
2dedc2b
Update Content Section
alexcibotari Dec 3, 2025
0cfd807
Update Content Section
alexcibotari Dec 3, 2025
df10100
Update Content Section
alexcibotari Dec 5, 2025
38464c3
Fix Login Error Message
alexcibotari Dec 5, 2025
8216083
Check unknown errors
alexcibotari Dec 5, 2025
22aa412
Rewrite Filter Form
alexcibotari Dec 5, 2025
16fb364
Rewrite Filter Form
alexcibotari Dec 7, 2025
238adcb
Update Elements
alexcibotari Dec 10, 2025
266377e
Rewrite Filter Form
alexcibotari Dec 10, 2025
b2e0545
Rewrite Filter Form
alexcibotari Dec 10, 2025
83c6ddd
update functions
alexcibotari Dec 11, 2025
4dec6e5
update functions
alexcibotari Dec 11, 2025
10e9f1f
Update Dependency
alexcibotari Dec 12, 2025
067249e
Update Elements
alexcibotari Dec 12, 2025
7d9b112
Update Elements
alexcibotari Dec 12, 2025
dad9f8e
Update Elements
alexcibotari Dec 12, 2025
4000d94
Update Elements
alexcibotari Dec 12, 2025
580072d
Update Elements
alexcibotari Dec 12, 2025
da7868b
update functions
alexcibotari Dec 13, 2025
126c0c8
update functions
alexcibotari Dec 13, 2025
a4a9931
update functions
alexcibotari Dec 13, 2025
014c1dc
update functions
alexcibotari Dec 13, 2025
890ddba
update functions
alexcibotari Dec 13, 2025
5a83c42
update functions
alexcibotari Dec 13, 2025
0a21787
update UI
alexcibotari Dec 13, 2025
a81adc8
update UI
alexcibotari Dec 13, 2025
e9c1705
update UI
alexcibotari Dec 14, 2025
c5efb0f
Update Elements
alexcibotari Dec 15, 2025
1bf5adf
Update Elements
alexcibotari Dec 15, 2025
9730f1b
Update Elements
alexcibotari Dec 17, 2025
7bbbafb
Update Deployment
alexcibotari Dec 17, 2025
6c632f5
Update Deployment
alexcibotari Dec 17, 2025
3ec3e89
Update Deployment
alexcibotari Dec 17, 2025
a23dd4a
Update Deployment
alexcibotari Dec 17, 2025
c0fbc4e
Update Deployment
alexcibotari Dec 17, 2025
1d139ea
Update Deployment
alexcibotari Dec 17, 2025
4d752bd
Update Deployment
alexcibotari Dec 17, 2025
42139ca
Update Deployment
alexcibotari Dec 17, 2025
cefe306
Update UI
alexcibotari Dec 19, 2025
74857df
Merge branch 'develop' of https://github.com/Lessify/localess into de…
alexcibotari Dec 19, 2025
cdf1122
Update UI
alexcibotari Dec 19, 2025
2d8fd60
Update Deployment
alexcibotari Dec 19, 2025
eb4fde0
Update UI
alexcibotari Dec 22, 2025
38ee8e1
Merge branch 'develop' of https://github.com/Lessify/localess into de…
alexcibotari Dec 22, 2025
997004d
Update UI
alexcibotari Dec 23, 2025
57ee813
Update UI
alexcibotari Dec 24, 2025
e94adf1
Update UI
alexcibotari Dec 24, 2025
6d0910a
Update UI
alexcibotari Dec 24, 2025
fae2e3c
Update UI
alexcibotari Dec 24, 2025
49fc6f2
Update UI
alexcibotari Dec 26, 2025
1bf0485
Update UI
alexcibotari Dec 26, 2025
3a61636
Update UI
alexcibotari Dec 28, 2025
cf7318a
Update UI
alexcibotari Dec 28, 2025
522143b
Update UI
alexcibotari Dec 28, 2025
d69b08b
Update UI
alexcibotari Dec 28, 2025
187353b
Update UI
alexcibotari Dec 28, 2025
6a3514f
Update UI
alexcibotari Dec 29, 2025
384feff
Update UI
alexcibotari Dec 29, 2025
defbf81
Update UI
alexcibotari Dec 29, 2025
1ae79f0
Update UI
alexcibotari Dec 29, 2025
ff7f91b
Update UI
alexcibotari Dec 29, 2025
5594c36
Update UI
alexcibotari Dec 30, 2025
a374dfc
Update UI
alexcibotari Dec 30, 2025
74c2b8e
Update UI
alexcibotari Dec 30, 2025
f862fed
Update UI
alexcibotari Dec 30, 2025
572caa5
Update UI
alexcibotari Dec 30, 2025
d00da31
Update UI
alexcibotari Dec 30, 2025
18f09dd
Update UI
alexcibotari Dec 30, 2025
ad85a69
Update UI
alexcibotari Dec 30, 2025
25d8b5c
Update UI
alexcibotari Dec 30, 2025
ce38aa6
Update UI
alexcibotari Dec 30, 2025
897bb46
Update UI
alexcibotari Dec 31, 2025
02cd1f8
Update UI
alexcibotari Jan 1, 2026
876a476
Update UI
alexcibotari Jan 1, 2026
b9ee72e
Update UI
alexcibotari Jan 1, 2026
8628844
Update UI
alexcibotari Jan 1, 2026
5f4b261
Update UI
alexcibotari Jan 1, 2026
2969e7e
Update UI
alexcibotari Jan 1, 2026
c3bb24a
Update UI
alexcibotari Jan 2, 2026
c255db0
Update UI
alexcibotari Jan 2, 2026
a3b0745
Update UI
alexcibotari Jan 2, 2026
d192d88
Update UI
alexcibotari Jan 2, 2026
d23da5b
Update UI
alexcibotari Jan 2, 2026
22bc47a
Update UI
alexcibotari Jan 2, 2026
e6e6d66
Update UI
alexcibotari Jan 2, 2026
72a18c9
Update UI
alexcibotari Jan 2, 2026
2cd5af8
Update UI
alexcibotari Jan 2, 2026
ed8ab76
Update UI
alexcibotari Jan 2, 2026
d4efc26
Update UI
alexcibotari Jan 3, 2026
9832462
Update UI
alexcibotari Jan 3, 2026
1f28095
Update UI
alexcibotari Jan 3, 2026
12ee43b
Update UI
alexcibotari Jan 4, 2026
c8f75b8
Update UI
alexcibotari Jan 4, 2026
c87f0f9
Update UI
alexcibotari Jan 4, 2026
030bd9d
Update UI
alexcibotari Jan 4, 2026
f0013b0
Update UI
alexcibotari Jan 4, 2026
52ee26c
Update UI
alexcibotari Jan 4, 2026
a463a0c
Update UI
alexcibotari Jan 4, 2026
ee914f1
Update UI
alexcibotari Jan 4, 2026
4d2a0a3
Update UI
alexcibotari Jan 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ package-lock.json
yarn.lock

# Generated
libs/
src/app/shared/generated/
firebase-export*

Expand Down
7 changes: 6 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"root": true,
"ignorePatterns": ["projects/**/*", "src/app/shared/generated/**/*"],
"ignorePatterns": [
"projects/**/*",
"src/app/shared/generated/**/*",
"src/app/shared/components/ui/**/*",
"src/app/shared/utils/**/*"
],
"plugins": [
"prettier"
],
Expand Down
114 changes: 114 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
# Persona

You are a dedicated Angular developer who thrives on leveraging the absolute latest features of the framework to build cutting-edge applications. You are currently immersed in Angular v20+, passionately adopting signals for reactive state management, embracing standalone components for streamlined architecture, and utilizing the new control flow for more intuitive template logic. Performance is paramount to you, who constantly seeks to optimize change detection and improve user experience through these modern Angular paradigms. When prompted, assume You are familiar with all the newest APIs and best practices, valuing clean, efficient, and maintainable code.

## Examples

These are modern examples of how to write an Angular 20 component with signals

```ts
import { ChangeDetectionStrategy, Component, signal } from '@angular/core';


@Component({
selector: '{{tag-name}}-root',
templateUrl: '{{tag-name}}.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class {{ClassName}} {
protected readonly isServerRunning = signal(true);
toggleServerStatus() {
this.isServerRunning.update(isServerRunning => !isServerRunning);
}
}
```

```css
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;

button {
margin-top: 10px;
}
}
```

```html
<section class="container">
@if (isServerRunning()) {
<span>Yes, the server is running</span>
} @else {
<span>No, the server is not running</span>
}
<button (click)="toggleServerStatus()">Toggle Server Status</button>
</section>
```

When you update a component, be sure to put the logic in the ts file, the styles in the css file and the html template in the html file.

## Resources

Here are some links to the essentials for building Angular applications. Use these to get an understanding of how some of the core functionality works
https://angular.dev/essentials/components
https://angular.dev/essentials/signals
https://angular.dev/essentials/templates
https://angular.dev/essentials/dependency-injection

## Best practices & Style guide

Here are the best practices and the style guide information.

### Coding Style guide

Here is a link to the most recent Angular style guide https://angular.dev/style-guide

### TypeScript Best Practices

- Use strict type checking
- Prefer type inference when the type is obvious
- Avoid the `any` type; use `unknown` when type is uncertain

### Angular Best Practices

- Always use standalone components over `NgModules`
- Do NOT set `standalone: true` inside the `@Component`, `@Directive` and `@Pipe` decorators
- Use signals for state management
- Implement lazy loading for feature routes
- Use `NgOptimizedImage` for all static images.
- Do NOT use the `@HostBinding` and `@HostListener` decorators. Put host bindings inside the `host` object of the `@Component` or `@Directive` decorator instead

### Components

- Keep components small and focused on a single responsibility
- Use `input()` signal instead of decorators, learn more here https://angular.dev/guide/components/inputs
- Use `output()` function instead of decorators, learn more here https://angular.dev/guide/components/outputs
- Use `computed()` for derived state learn more about signals here https://angular.dev/guide/signals.
- Set `changeDetection: ChangeDetectionStrategy.OnPush` in `@Component` decorator
- Prefer inline templates for small components
- Prefer Reactive forms instead of Template-driven ones
- Do NOT use `ngClass`, use `class` bindings instead, for context: https://angular.dev/guide/templates/binding#css-class-and-style-property-bindings
- Do NOT use `ngStyle`, use `style` bindings instead, for context: https://angular.dev/guide/templates/binding#css-class-and-style-property-bindings

### State Management

- Use signals for local component state
- Use `computed()` for derived state
- Keep state transformations pure and predictable
- Do NOT use `mutate` on signals, use `update` or `set` instead

### Templates

- Keep templates simple and avoid complex logic
- Use native control flow (`@if`, `@for`, `@switch`) instead of `*ngIf`, `*ngFor`, `*ngSwitch`
- Use the async pipe to handle observables
- Use built in pipes and import pipes when being used in a template, learn more https://angular.dev/guide/templates/pipes#

### Services

- Design services around a single responsibility
- Use the `providedIn: 'root'` option for singleton services
- Use the `inject()` function instead of constructor injection
225 changes: 35 additions & 190 deletions .junie/guidelines.md
Original file line number Diff line number Diff line change
@@ -1,202 +1,47 @@
# Localess Project Guidelines
You are an expert in TypeScript, Angular, and scalable web application development. You write maintainable, performant, and accessible code following Angular and TypeScript best practices.

This document provides essential information for developers working on the Localess project.
## TypeScript Best Practices

## Build/Configuration Instructions
- Use strict type checking
- Prefer type inference when the type is obvious
- Avoid the `any` type; use `unknown` when type is uncertain

### Project Setup
## Angular Best Practices

1. **Node.js Version**: This project requires Node.js version 20 as specified in both the root and functions package.json files.
- Always use standalone components over NgModules
- Must NOT set `standalone: true` inside Angular decorators. It's the default.
- Use signals for state management
- Implement lazy loading for feature routes
- Do NOT use the `@HostBinding` and `@HostListener` decorators. Put host bindings inside the `host` object of the `@Component` or `@Directive` decorator instead
- Use `NgOptimizedImage` for all static images.
- `NgOptimizedImage` does not work for inline base64 images.

2. **Install Dependencies**:
```bash
# Install root project dependencies
npm install

# Install Firebase Functions dependencies
cd functions
npm install
```
## Components

### Building the Project
- Keep components small and focused on a single responsibility
- Use `input()` and `output()` functions instead of decorators
- Use `computed()` for derived state
- Set `changeDetection: ChangeDetectionStrategy.OnPush` in `@Component` decorator
- Prefer inline templates for small components
- Prefer Reactive forms instead of Template-driven ones
- Do NOT use `ngClass`, use `class` bindings instead
- Do NOT use `ngStyle`, use `style` bindings instead

The project consists of an Angular frontend and Firebase Functions backend:
## State Management

#### Frontend (Angular)
- Use signals for local component state
- Use `computed()` for derived state
- Keep state transformations pure and predictable
- Do NOT use `mutate` on signals, use `update` or `set` instead

```bash
# Development build
npm run build
## Templates

# Production build
npm run build:prod
- Keep templates simple and avoid complex logic
- Use native control flow (`@if`, `@for`, `@switch`) instead of `*ngIf`, `*ngFor`, `*ngSwitch`
- Use the async pipe to handle observables

# Docker configuration build
npm run build:docker
```
## Services

#### Backend (Firebase Functions)

```bash
# Build Firebase Functions
cd functions
npm run build
```

### Running the Project

```bash
# Start Angular development server with proxy configuration
npm run start

# Start Firebase emulators with data import/export
npm run emulator

# Start Firebase emulators with debug mode
npm run emulator:debug
```

## Testing Information

### Running Tests

The project uses Karma and Jasmine for testing the Angular application:

```bash
# Run all tests
npm run test

# Run specific tests
npm test -- --include=path/to/test.spec.ts
```

### Writing Tests

Tests follow the standard Angular testing patterns using Jasmine:

1. **File Naming**: Test files should be named with the `.spec.ts` suffix and placed alongside the file they are testing.

2. **Basic Test Structure**:
```typescript
import { YourService } from './your-service';

describe('YourService', () => {
describe('specificMethod', () => {
it('should do something specific', () => {
expect(YourService.specificMethod('input')).toBe('expected output');
});
});
});
```

### Example Test

Here's an example of a simple utility service and its test:

**string-utils.service.ts**:
```typescript
export class StringUtils {
/**
* Reverses a string
* @param input The string to reverse
* @returns The reversed string
*/
static reverse(input: string): string {
return input.split('').reverse().join('');
}

/**
* Checks if a string is a palindrome (reads the same forward and backward)
* @param input The string to check
* @returns True if the string is a palindrome, false otherwise
*/
static isPalindrome(input: string): boolean {
const normalized = input.toLowerCase().replace(/[^a-z0-9]/g, '');
return normalized === this.reverse(normalized);
}
}
```

**string-utils.service.spec.ts**:
```typescript
import { StringUtils } from './string-utils.service';

describe('StringUtils', () => {
describe('reverse', () => {
it('should reverse a string', () => {
expect(StringUtils.reverse('hello')).toBe('olleh');
expect(StringUtils.reverse('world')).toBe('dlrow');
expect(StringUtils.reverse('')).toBe('');
});
});

describe('isPalindrome', () => {
it('should return true for palindromes', () => {
expect(StringUtils.isPalindrome('racecar')).toBe(true);
expect(StringUtils.isPalindrome('A man, a plan, a canal: Panama')).toBe(true);
expect(StringUtils.isPalindrome('No lemon, no melon')).toBe(true);
});

it('should return false for non-palindromes', () => {
expect(StringUtils.isPalindrome('hello')).toBe(false);
expect(StringUtils.isPalindrome('world')).toBe(false);
});

it('should handle empty strings', () => {
expect(StringUtils.isPalindrome('')).toBe(true);
});
});
});
```

## Additional Development Information

### Code Style

The project uses ESLint and Prettier for code formatting and linting:

```bash
# Lint the code
npm run lint

# Fix linting issues
npm run lint:fix

# Check formatting
npm run prettier

# Fix formatting issues
npm run prettier:fix
```

### Angular Component Naming Conventions

- **Component Selector Prefix**: All component selectors should use the `ll` prefix (e.g., `ll-my-component`).
- **Component Selector Style**: Component selectors should use kebab-case.
- **Directive Selector Prefix**: All directive selectors should use the `ll` prefix.
- **Directive Selector Style**: Directive selectors should use camelCase.

### Firebase Configuration

The project uses multiple Firebase services:

- **Firestore**: Database for storing application data.
- **Hosting**: For hosting the Angular application.
- **Functions**: Backend services written in TypeScript.
- **Storage**: For storing files.

Local development uses Firebase Emulators which can be started with `npm run emulator`.

### Project Structure

- **src/app**: Angular application code.
- **functions/src**: Firebase Functions code.
- **src/app/core**: Core functionality used throughout the application.
- **src/app/shared**: Shared components, services, and utilities.

### Path Aliases

The project uses TypeScript path aliases for cleaner imports:

- `@shared/*`: Maps to `src/app/shared/*`
- `@core/*`: Maps to `src/app/core/*`
- Design services around a single responsibility
- Use the `providedIn: 'root'` option for singleton services
- Use the `inject()` function instead of constructor injection
6 changes: 5 additions & 1 deletion .postcssrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"plugins": {
"@tailwindcss/postcss": {}
"@tailwindcss/postcss": {
"optimize": {
"minify": true
}
}
}
}
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ node_modules
dist
package-lock.json

libs/

src/app/shared/generated/

functions
Loading