Import and Export beside the heading, with a format choice when there is more than one #862

Closed
opened 2026-10-10 16:01:30 +00:00 by tiagoagueda · 1 comment
Owner

On the Calendar, Your details and Your career: Import (file-up) and Export (file-down) as a button group beside the h1, aligned to the end. When more than one format is available — JSON, plus whatever a plugin adds — the button opens a popover to choose.

What exists today

  • Calendar: iCalendar download and import in a second header row (templates/applications/calendar.html:161-169; applications/views_ical.py). No JSON of the calendar alone.
  • Your details: Export or import your record at the foot of the page (templates/accounts/profile.html:362-373) → the candidate file (resume:candidate_file, JSON of details and career); and a vCard of yourself (:375-387).
  • Your career: Import (Europass) and Export (candidate file) already beside the h1 (templates/resume/overview.html:17-23), as ghost links without icons.
  • No format registry for these: register_document_format is for CV output (documents/formats.py); imports have the importer plugin kind (plugins/kinds.py:30, Europass built in). file-up and file-down are not synced icons.

What would change

  • A shared group: one format goes straight there, several open a popover listing them.
  • A small registry of import/export formats per subject (calendar, details, career), copying documents/formats.py's rules, with the built-ins registered (calendar: iCalendar; details and career: candidate JSON, vCard export, Europass import).

Decisions

  • The list said upon click goes to previous equivalent period for Your career's Import and Export — read as a copy from the calendar's bullets; they import and export, as here.
  • Your details' foot keeps a pointer to the full archive (Export everything). Recommended.

Checked against main at 8c3d03570. From the maintainer's improvements list of 2026-10-07.

On the Calendar, Your details and Your career: *Import* (`file-up`) and *Export* (`file-down`) as a button group beside the `h1`, aligned to the end. When more than one format is available — JSON, plus whatever a plugin adds — the button opens a popover to choose. ## What exists today - Calendar: iCalendar download and import in a second header row (`templates/applications/calendar.html:161-169`; `applications/views_ical.py`). No JSON of the calendar alone. - Your details: *Export or import your record* at the foot of the page (`templates/accounts/profile.html:362-373`) → the candidate file (`resume:candidate_file`, JSON of details and career); and a vCard of yourself (`:375-387`). - Your career: Import (Europass) and Export (candidate file) already beside the `h1` (`templates/resume/overview.html:17-23`), as ghost links without icons. - **No format registry** for these: `register_document_format` is for CV output (`documents/formats.py`); imports have the `importer` plugin kind (`plugins/kinds.py:30`, Europass built in). `file-up` and `file-down` are not synced icons. ## What would change - A shared group: one format goes straight there, several open a popover listing them. - A small registry of import/export formats per subject (calendar, details, career), copying `documents/formats.py`'s rules, with the built-ins registered (calendar: iCalendar; details and career: candidate JSON, vCard export, Europass import). ## Decisions - **The list said** *upon click goes to previous equivalent period* for Your career's Import and Export — read as a copy from the calendar's bullets; they import and export, as here. - **Your details' foot** keeps a pointer to the full archive (*Export everything*). Recommended. Checked against `main` at `8c3d03570`. From the maintainer's improvements list of 2026-10-07.
tiagoagueda added this to the 0.6.0 milestone 2026-10-10 16:01:30 +00:00
Author
Owner

Fixed in 36b060a1a on main.

Fixed in 36b060a1a on main.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Postulo/postulo#862
No description provided.