Differences

This shows you the differences between two versions of the page.

Link to this comparison view

projects:vehicle_registration [2026/08/22 18:04] – created samp20projects:vehicle_registration [2026/08/22 18:16] (current) samp20
Line 14: Line 14:
 ==== Landing page ==== ==== Landing page ====
  
-The landing page should provide a button to add a new vehicle, along with cards listing existing vehicles. The cards should list the vehicle registration, (stretch) some metadata such as make and colour, when it was registered, and a delete button.+The landing page should provide a button to add a new vehicle, along with cards listing existing vehicles. The cards should list the vehicle registration, some metadata such as make and colour, when it was registered, and a delete button.
  
 ==== Vehicle delete confirmation page ==== ==== Vehicle delete confirmation page ====
Line 47: Line 47:
  
 The template/style files can be borrowed from another application. The most complete currently is probably the [[https://codeberg.org/BristolHackspace/email|Email service (Codeberg)]]. This is currently built in Jinja, but should be trivial to convert into another engine. The template/style files can be borrowed from another application. The most complete currently is probably the [[https://codeberg.org/BristolHackspace/email|Email service (Codeberg)]]. This is currently built in Jinja, but should be trivial to convert into another engine.
 +
 +===== Vehicle metadata =====
 +
 +We should avoid repeat calls to the VES API if possible. Implementation suggestions welcome.
 +
 +One approach could be caching the result. This is probably easiest done with a database record containing the registration, fetch timestamp, and metadata. We should probably cache this data forever, but run a daily/weekly task to delete records that are no longer registered to a member.
  • projects/vehicle_registration.1787421873
  • Last modified: 23 hours ago
  • by samp20