Skip to content

Conversation

@aspiringLich
Copy link

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 PaginatedTableManager in index_base.html which 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:

  • Hack something together for the subject view and get scanning to work! Possibly with BFD9020 AI stuff as well.
  • Integrate backend and frontend together, replace static data with API calls
  • Finish individual records / subject view, fully populated with all relevant data

Copy link

Copilot AI left a 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_required decorators on all views
  • Implemented paginated table views with search functionality using a reusable PaginatedTableManager JavaScript 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants