Cidadania Espanhola
Self-initiated app to track a family’s Spanish citizenship application: each person’s documents, the stages of the process and the family tree with the attachments.


- Project team
- Allan SanchesConcept, design and development
- Project scope
- Idea
- Design
- Code
- Context
- Personal project
- 2026
The public version is a demo, with a fictional family, the Garcías. Changes made in it are saved only in the visitor’s browser; the family’s version requires login.
Technologies used
- Next.js
- React
- TypeScript
- Tailwind
- daisyUI
- Supabase
- PostgreSQL
- Vercel
Which documents are still missing for each person in the family?
The Democratic Memory Law, in force since October 21, 2022, opened Spanish citizenship to the children and grandchildren of Spaniards born outside Spain. Each person applies under a case, Annex I, II or III, and each case requires its own forms and certificates, several of them full-text and apostilled.
In a family with several generations, each person gathers about nine required documents, submitted in stages. To avoid missing any, you have to keep track person by person and document by document.
I created an app for the family to track the application. Each person has their own case, their stage and the list of what they need to submit, and the family tree ties it all together: a click on a person opens their documents.
How the app was built
What’s missing, in plain sight. The dashboard shows how many people are in the process, the percentage of required documents already gathered and how many people are at each stage. Below, each family member has a card with their case, stage and a progress bar. In the "Documents by family member" tab, a table crosses documents and people: each cell marks whether the document already exists, and what doesn’t apply to the person’s case appears as a dash.
One case per person. The documents required depend on the annex: children and grandchildren of Spaniards born outside Spain apply under Annex I; children of a Spanish woman who lost her nationality by marrying a foreigner before 1978, under Annex II; adult children of those who obtained nationality under the Historical Memory Law, under Annex III. The document catalog states which annexes each document applies to, and the "Information" tab summarizes the law and each case’s list, with a link to the page of the Embassy of Spain in Brasília.
The tree as a map. The family tree starts with the user and moves with the mouse, scrolling or the zoom buttons. Each card shows the initials, the name, the years of birth and death and the stage. A click opens the person’s documents and, in the family’s version, the file upload.
In the colors of Spain. The red and gold of the flag, on cream, mark the headings and the number blocks, and a red, gold and red band, like the flag, runs along the top of the page. The stages and the document status use softer tones (blue, terracotta and sage), so as not to compete with the identity.
Only the family gets in. The family’s version requires login. Open sign-up is turned off, and the database rules release data and files only to the family’s email addresses, even if someone manages to create an account. Files are kept in a private storage space and open through a link that expires in one hour. The public version runs without a database, with a fictional family saved only in the browser.
The result is a single place for the family to know, person by person, what has already been gathered and what is still missing for the citizenship application.
What was delivered
- Dashboard with the people in the process, the required documents gathered and the stages
- Card for each family member with case, stage and document progress
- Table of documents by family member
- Family member records, with the case (Annex I, II or III) and the stage
- Document catalog, with the annexes each one applies to
- Family tree with zoom, starting from the user
- Each person’s documents and files, opened from the tree
- Summary of the Democratic Memory Law and of the documents for each case
- Login only for the family’s email addresses, with private files
- Demo version with a fictional family
Project images




Have a project in mind?
Let’s start with a conversation.
Talk about a project