-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/23 initial django UI new #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
lovingly slop coded
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR implements the initial Django UI for the BFD9000 archive system. It introduces a complete frontend with authentication, navigation, and table views for subjects, encounters, and records using Django templates, DaisyUI, and TailwindCSS. The data is currently hardcoded for development purposes and will be replaced with API calls when the backend is integrated.
Key Changes
- Added authentication system with login/logout functionality and
@login_requireddecorators on all views - Implemented paginated table views with search functionality using a reusable
PaginatedTableManagerJavaScript class - Created form pages for creating new subjects and encounters
- Added comprehensive styling with DaisyUI and TailwindCSS
Reviewed changes
Copilot reviewed 23 out of 26 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| flake.nix | Updated Python package references and added watchman dependency |
| bfd9000_web/manage.py | Updated to use double quotes for string literals |
| bfd9000_web/archive/views.py | Added login-protected views for index, subjects, encounters, and records |
| bfd9000_web/archive/urls.py | Created URL routing for archive app views |
| bfd9000_web/archive/templates/archive/*.html | Created base templates and page-specific templates with Django template syntax |
| bfd9000_web/archive/static/css/*.css | Added TailwindCSS configuration and compiled output |
| bfd9000_web/BFD9000/settings.py | Updated settings with authentication URLs and double-quote strings |
| bfd9000_web/BFD9000/urls.py | Added login/logout URLs and included archive app URLs |
| bfd9000_web/README.md | Updated with instructions for DaisyUI/TailwindCSS setup |
| .gitignore | Added entries to ignore DaisyUI and TailwindCSS binaries |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Initial implementation of the django UI. Currently, all the data is hardcoded and static, but it should be easy enough to swap out for real data once the backend is merged. Note there's some difficulty with developing the frontend since you need to install daisyUI / tailwindCSS and I did not want to include that in the git repo. Also note
PaginatedTableManagerinindex_base.htmlwhich cuts down a LOT of repeated javascript code. Currently, the individual records / subject view are not finished. We don't have any of the actual records data / the subject view is tightly integrated with scanning (creating new records).Next steps: