Skip to content

Dev#3

Open
jairomelo wants to merge 49 commits intomainfrom
dev
Open

Dev#3
jairomelo wants to merge 49 commits intomainfrom
dev

Conversation

@jairomelo
Copy link
Member

This pull request introduces several major improvements to the application, focusing on authentication, UI components, and deployment. The changes include implementing a new authentication store, adding reusable UI components for navigation and status, supporting virtual keyboard functionality, updating Docker configuration for production builds, and improving package dependencies. These updates enhance the user experience, facilitate secure access control, and streamline deployment.

Authentication and Access Control:

  • Added a new auth store in src/lib/stores/auth.ts to manage user authentication, registration, login, logout, and error handling, with derived store isAuthenticated for easy access to authentication status.
  • Updated the root page and dashboard layout to redirect users based on authentication status, ensuring only authenticated users can access dashboard routes. (src/routes/+page.svelte, src/routes/+page.ts, src/routes/dashboard/+layout.svelte) [1] [2] [3]

UI Components:

  • Added new reusable components: Sidebar.svelte for dashboard navigation, StatusBar.svelte for system status display (camera and temperature), and CollectionTreeItem.svelte for hierarchical collection browsing. [1] [2] [3]
  • Implemented a cameraStatus store to track camera capture errors and update the status bar accordingly.

Virtual Keyboard Support:

  • Introduced a client-side virtual keyboard component (VirtualKeyboard.svelte) using the simple-keyboard package, with dynamic import and event handling for input fields. [1] [2]
  • Updated layout to optionally include the virtual keyboard component. (src/routes/+layout.svelte) [1] [2]

Deployment and Build Configuration:

  • Added a multi-stage production Dockerfile for building and running the SvelteKit app, separating build and runtime stages for efficiency and security.
  • Updated Dockerfile.dev to ignore npm scripts during install for improved development environment setup.

Package and Asset Updates:

  • Switched SvelteKit adapter from adapter-auto to adapter-node in package.json for Node.js deployment compatibility.
  • Added a versioned CSS link in src/app.html for cache busting.
  • Re-exported API client and auth store in src/lib/index.ts for easier imports.

These changes collectively modernize the app's architecture, improve user interaction, and prepare it for robust production deployment.

…abilities

- Added a new record detail page at `src/routes/dashboard/records/[id]/+page.svelte` to display record information, including metadata and images.
- Implemented functions for loading, editing, saving, and deleting records.
- Added image viewer functionality to view images associated with the record.
- Updated navigation to redirect to the new record detail page from collection and project views.
- Enhanced UI with new styles for record metadata, images grid, and image viewer modal.
@jairomelo jairomelo requested a review from Asemica-me February 21, 2026 08:19
@jairomelo jairomelo added the enhancement New feature or request label Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant