diff --git a/.cursor/mcp.json b/.cursor/mcp.json index 433bd63..efc2531 100644 --- a/.cursor/mcp.json +++ b/.cursor/mcp.json @@ -1,9 +1,40 @@ { - "mcpServers": { - "10x-mvp-tracker": { - "command": "npx", - "args": ["-y", "@przeprogramowani/10x-mvp-tracker@latest"], - "transport": "stdio" - } + "mcpServers": { + "10x-mvp-tracker": { + "command": "npx", + "args": ["-y", "@przeprogramowani/10x-mvp-tracker@latest"], + "transport": "stdio" + }, + "playwright": { + "command": "npx", + "args": [ + "@playwright/mcp@latest" + ] + }, + "filesystem": { + "command": "npx", + "args": ["-y", "@modelcontextprotocol/server-filesystem", "."], + "transport": "stdio" + }, + "fetch": { + "command": "npx", + "args": ["-y", "@modelcontextprotocol/server-fetch"], + "transport": "stdio" + }, + "git": { + "command": "npx", + "args": ["-y", "@modelcontextprotocol/server-git"], + "transport": "stdio" + }, + "memory": { + "command": "npx", + "args": ["-y", "@modelcontextprotocol/server-memory"], + "transport": "stdio" + }, + "time": { + "command": "npx", + "args": ["-y", "@modelcontextprotocol/server-time"], + "transport": "stdio" } + } } diff --git a/.cursor/rules/shared.md b/.cursor/rules/shared.md new file mode 100644 index 0000000..9762ce8 --- /dev/null +++ b/.cursor/rules/shared.md @@ -0,0 +1,34 @@ +--- +description: +globs: +alwaysApply: true +--- +# AI Rules for {app-name} + +{project-description} + +## Tech Stack + +- htmx +- tailwind +- Django +- PostgreSQL +- nginx + +## Project Structure + +When introducing changes to the project, always follow the Django preferred directory structure + +## Coding practices + +### Guidelines for clean code + +- Use feedback from linters to improve the code when making changes. +- Prioritize error handling and edge cases. +- Handle errors and edge cases at the beginning of functions. +- Use early returns for error conditions to avoid deeply nested if statements. +- Place the happy path last in the function for improved readability. +- Avoid unnecessary else statements; use if-return pattern instead. +- Use guard clauses to handle preconditions and invalid states early. +- Implement proper error logging and user-friendly error messages. +- Consider using custom error types or error factories for consistent error handling. \ No newline at end of file diff --git a/app/templates/account/base.html b/app/templates/account/base.html index 0f452f3..228da2f 100644 --- a/app/templates/account/base.html +++ b/app/templates/account/base.html @@ -7,29 +7,24 @@ - - - {% load static %} - - {% block extra_head %}{% endblock %} - +
-
+
- -

📷 SmartGallery

+
+

SmartGallery

-

{% block page_title %}Welcome{% endblock %}

+

{% block page_title %}Welcome{% endblock %}

{% if messages %}
{% for message in messages %} -