Commit Graph
272 Commits
Author SHA1 Message Date
daniel.subiabre 26c18cc42e Merge branch 'main' into feat/dtf-web 2026-11-18 11:54:48 +01:00
David Moreno Cámaraanddaniel.subiabre 2fc242f387 [feat] Customize theme colors palette admin subpage (#588)
* feat: add polished library for accessibility purposes

* chore: update gitignore adding AGENTS.md

* feat: D1 theme colors migration

* feat: add i18n keys for them colors page

* feat: add utils, actions and repositories files for theme colors page

* fix: rename colours subsection to colors

* feat: add new actions to index

* feat: add new colors page with its form and input components

* refactor: modify Astro layout to load the saved theme colors

* feat: make global.css theme colors dynamic

---------

Co-authored-by: Daniel Subiabre <daniel.subiabre@platoniq.net>
2026-11-16 15:14:52 +01:00
4113e88c79 Feat/dynamic header logo (#591)
* feat: add the header logo table

* feat: add the header logo repository

* feat: add the header logo server actions

* feat: expose the active header logo

* feat: render the managed logo in the header

* feat: add the header logo admin copy

* feat: add the header logo admin page

---------

Co-authored-by: Angel Di Pinto <angel.dipinto@platoniq.net>
Co-authored-by: Daniel Subiabre <daniel.subiabre@platoniq.net>
2026-11-16 14:56:30 +01:00
Pep Villalonga Amorós f929eb2c91 feat: Editable footer from /admin/customize/footer (#585)
* feat: store footer content in D1 and render it server-side

* feat: add footer editor to /admin/customize/footer

* feat: collapse admin sidebar to a letter rail

* feat: round the footer logos band to match the main block

* feat: round the bottom corners of the footer preview

* refactor: use canonical Tailwind variants in footer preview
2026-11-16 14:44:49 +01:00
David Moreno Cámara 1217e446ea [feat] Customize interface tweaks admin page (#583)
* refactor: share admin sidebar sub-sections through a single helper

* feat: add /admin/customize admin section
2026-11-10 11:27:35 +01:00
Pep Villalonga Amorós 930b07958b fix: resolve svelte-check and astro check errors and warnings (#575)
* fix: resolve svelte-check and astro check errors and warnings

* chore: disable Shiki syntax highlighting to silence CSP warning

* chore: regenerate SDK and update renamed DTOs

* fix: resolve svelte-check errors and warnings from develop merge

* fix: keep new personal profile fields on language change
2026-11-10 11:26:54 +01:00
David Moreno Cámaraanddaniel.subiabre 1ba45fa317 [fix] Keep forms info on language change (#577)
* fix: keep form values when the language changes

* fix: keep form values on language change in public forms

* fix: keep form values on language change in admin forms

* chore: format code with prettier

---------

Co-authored-by: Daniel Subiabre García <daniel.subiabre@platoniq.net>
2026-11-09 13:20:43 +01:00
Pep Villalonga Amorós 3157d7320f fix: admin projects status tag, status change, min-optimum, actions and filtered total (#538)
* fix: admin projects status tag, status change, min-optimum, actions and filtered total

* fix: use projects money_total endpoint and show loading in admin total
2026-11-04 16:54:06 +01:00
David Moreno Cámaraanddaniel.subiabre 7ecfd02aac [feat] Proposed campaigns admin page with D1 (#540)
* feat: add D1 schema and save action for proposed campaigns

* feat: add admin proposed campaigns page

* feat: show proposed campaigns in home tabs carousel

* refactor: type Grid props explicitly

* chore/fix: format and fix es.json

* fix: prioritize project cover over video thumbnail and fix proposed modal i18n keys

* fix: other conflicts after the develop merge

* fix: number clash in db migrations for featured_users and proposed_campaigns

---------

Co-authored-by: Daniel Subiabre García <daniel.subiabre@platoniq.net>
2026-11-04 16:53:07 +01:00
daniel.subiabre 4dd55cfa45 fix: project bad cover, project.video before project.cover (#576)
* fix: use project true type on transformProjectToCampaign

* fix: matching of projectSupports by IRI in FeedbackForm

* fix: bad references to project.video imgs before project.cover

* fix: code style issues by prettier
2026-11-03 15:51:16 +01:00
Pep Villalonga Amorósanddaniel.subiabre 8e40eae995 fix: translate and correct project statuses in /admin/projects (#574)
Co-authored-by: Daniel Subiabre <daniel.subiabre@platoniq.net>
2026-11-03 15:03:37 +01:00
David Moreno Cámara 7c3f7461d7 feat: add categorization admin dashboard (#568) 2026-11-02 13:49:48 +01:00
David Moreno Cámaraanddaniel.subiabre d7e60d2c5e [feat] Add password inputs in private user and users admin areas (#559)
* feat: add password change inputs

* chore: format code with prettier

---------

Co-authored-by: Daniel Subiabre <daniel.subiabre@platoniq.net>
2026-11-02 13:49:04 +01:00
Pep Villalonga Amorós d964ae9c9c feat: add DropdownSearch component and replace DropdownMenu hasSearch uses (#545)
* chore: exclude wrangler and miniflare from minimumReleaseAge and refresh lockfile

* feat: add DropdownSearch and slim DropdownMenu to a plain dropdown
2026-11-02 13:46:38 +01:00
daniel.subiabre 8e216c1efb fix: categories not selectable (#564)
* fix: make extractId return last numeric piece in IRI for ID

* fix: make CategorySelect component also take Theme SDK type

* fix: make getTerritoryDisplayName log errors

* fix: code style issues by prettier
2026-10-29 15:08:16 +01:00
daniel.subiabre 571135e60c fix: code style issues by prettier and eslint
Prettier Format Check / format-check (pull_request) Canceled after 0s
2026-10-29 13:43:27 +01:00
daniel.subiabre 6d40e9e7bf Merge branch 'main' into feat/dtf-web 2026-10-28 15:58:32 +01:00
David Moreno Cámara 40621e010c [fix] Change detail actions in /admin/projects (#560)
* feat: update project detail actions in /admin/projects table

* fix: handle missing project locales in SingleProject

* fix: handle missing calendar in SingleProject

* fix: handle missing accounting.owner in ProjectRewards

* fix: handle missing territory in getTerritoryDisplayName

* fix: don't render TerritoryTag without territory

* fix: make admin project preview modal smaller

* fix: ensure preview modal appears above header

* fix: use black blur backdrop for preview modal

* fix: allow dismissing preview modal

* chore: format code with prettier
2026-10-28 15:56:22 +01:00
mfmcl 41e6b0a2e4 Refine DTF typography and add system-based light/dark styling (#2)
Prettier Format Check / format-check (pull_request) Canceled after 0s
Adds a working light/dark base that follows the browser/system setting, using the palette from democratictech.fund. I'm open to tweaking the color palette, my main aim here was to get the light/dark themes working.

### Changes

- Switched interface font to variable Atkinson Hyperlegible Next, with Boldonse reserved for selected display headings.
- Tightened header and campaign-card spacing, fixed mismatched card border-radius, and added missing hover states for buttons.
- Updated footer partner logos and links
- Adjusted text foreground color variable to work with the themes.

The shared styles also affect checkout, profile and admin screens, though I can't check all of those myself currently.

**Note:** The kitten photos and sample campaign content in the screenshots are placeholders I put in locally because I don't have API access. Neither the placeholders nor my local preview setup are included in this PR.

### Screenshots

Light mode:

![Homepage in light mode, showing local placeholder campaign content](https://git.coopcloud.tech/attachments/49311be1-0348-49e6-8da6-19eb0fe0b603)

Dark mode:

![Homepage in dark mode, showing local placeholder campaign content](https://git.coopcloud.tech/attachments/4f354916-613c-449f-99c3-ea8253be9b8c)

Reviewed-on: #2
Co-authored-by: mfmcl <mfmcln@proton.me>
2026-10-28 13:41:26 +00:00
daniel.subiabre 7011b3a363 Merge branch 'main' into feat/dtf-web
Prettier Format Check / format-check (pull_request) Canceled after 0s
2026-10-27 16:41:51 +01:00
Pep Villalonga Amorós aaffdd9696 fix: loading states, async button spinners and admin filters Apply (#556)
* fix: show loading states instead of placeholder data

* fix: add spinners and disabled state to async buttons

* fix: make admin filters Apply button work

* chore: format
2026-10-27 15:49:14 +01:00
daniel.subiabre 07c83bca8d Merge branch 'main' into feat/dtf-web 2026-10-26 14:28:53 +01:00
David Moreno Cámara a708eecaaf [feat] UserResultRow reusable library component + fixes (#546)
* feat: add reusable UserResultRow component

* fix: route search requests through /api/relay

* feat: render users with UserResultRow in searches
2026-10-26 14:15:32 +01:00
bf6514d729 Fix/admin charges improvements (#548)
* fix: show loading indicator while source and destination data are loading

* fix: update charge modals header colour, cursor, and copy icon alignment

* fix: keep copy tooltip text on a single line

---------

Co-authored-by: Daniel Subiabre García <daniel.subiabre@platoniq.net>
Co-authored-by: Pep Villalonga <pep.villalonga@platoniq.net>
Co-authored-by: Angel Di Pinto <angel.dipinto@platoniq.net>
2026-10-26 14:15:00 +01:00
angeldipintoandAngel Di Pinto d16c9524ab refactor: move banners section from admin comm to admin home (#551)
Co-authored-by: Angel Di Pinto <angel.dipinto@platoniq.net>
2026-10-26 14:14:38 +01:00
Pep e70e6c725f fix: modal close button and double scroll 2026-10-21 14:13:56 +02:00
Pep 3d8dde4ecb fix: color contrast on dark theme 2026-10-21 14:13:56 +02:00
ef04a10d98 Feat/featured users admin (#521)
* feat: add featured users table and repository

* feat: add owner project summary service

* feat: add saveFeaturedUsers action

* feat: add slotEditor for admin

* feat: add featured users admin section

* feat: add featured user card and home grid

* refactor: replace promoters block with featured users

* refactor: remove class prop from featured users form

* docs: add SlotEditor story

* refactor: extract shared FeaturedUser type

* fix: correct slot message for featured users

* fix: use user wording in featured users modal

* refactor: reuse common add label in featured users modal

* refactor: use Astro.locals lang in home page

* refactor: move featured users resolution into a service

* refactor: move raised project statuses to projectStatus util

* refactor: carry a MoneyOutput through the featured users chain

* fix: format

* fix: order of migration files

---------

Co-authored-by: Angel Di Pinto <angel.dipinto@platoniq.net>
Co-authored-by: Daniel Subiabre <daniel.subiabre@platoniq.net>
2026-10-16 17:38:06 +02:00
David Moreno Cámaraanddaniel.subiabre 265f51b685 [feat] Connect project reviews pages with api + unmalicious markdown feature (#528)
* chore: update SDK

* chore: remove mocks

* feat: back project reviews with the v4 API

* feat: wire review pages and admin overview to the live API

* feat: render safe markdown in review chat and add formatting hotkeys

* feat: assign an advisor from the reviews administration

* feat: persist risk-change cards in the review conversation

* fix: prebundle the client actions entrypoint so dev stops reloading

* feat: let the review admin post links and images in the chat

* fix: tidy the review card activity wording and button layout

* feat: add isAssignedReviewer function and update review access logic for reviewer

* chore: format code with prettier

* refactor: extract review validation and enforce the comment length in the chat

* refactor: simplify the reviews admin page loading and add review filters

* refactor: improve minimum characters counter in ChatTextarea

* fix: hydrate review rows reactively and show area risk squares

* feat: improve debouncing

* fix: update missing statuses options

* fix: code style issues by prettier and eslint

* Merge branch 'develop' into feat/connect-project-reviews-pages-with-api

---------

Co-authored-by: Daniel Subiabre <daniel.subiabre@platoniq.net>
2026-10-16 17:25:44 +02:00
Pep Villalonga Amorós 7789a26383 feat: unify resource search into one component and adapter layer (#456)
* feat: unify resource search into one component and adapter layer

* chore: format
2026-10-16 16:47:36 +02:00
Pep Villalonga Amorósanddaniel.subiabre 67d6e32405 feat: add translations to banners and share TranslationLanguages selector with hero and blog (#533)
* feat: add translations to banners and share TranslationLanguages selector with hero and blog

* fix: code style issues by prettier and eslint

* feat: add db:rebuild command to fully apply all migrations

---------

Co-authored-by: Daniel Subiabre <daniel.subiabre@platoniq.net>
2026-10-16 16:41:35 +02:00
Pep Villalonga Amorós 34007824f6 feat: admin users role editing, dates and charges link in details row (#529)
* feat: admin users role editing, dates and charges link in details row

* fix: move admin user roles and recent charges into modals
2026-10-16 16:19:44 +02:00
daniel.subiabre 57f338ebd5 fix: Bad "for" as "by" translation (#536)
* fix: update key name from byAtLeast to forAtLeast

* fix: code style issues by prettier and eslint
2026-10-16 16:19:06 +02:00
Pep Villalonga Amorós f784ae580f feat: add admin blog list and editor with translations backed by D1 (#524)
* fix: prebundle markdown deps so RichTextEditor loads in dev

* feat: add admin blog list and editor with translations backed by D1

* feat: add public blog pages and show the latest post on the home (#530)

* refactor: move BodyBlog from typography to layout

* feat: allow multiple header images in blog posts for a carousel

* feat: store blog translations like the home hero

* feat: add public blog pages with a media carousel

* feat: show the latest blog post on the home

* fix: admin sidebar, tables and forms layout
2026-10-13 17:55:33 +02:00
David Moreno CámaraandPep Villalonga b0e2db8908 [feat] Admit localized content for home hero (#503)
* fix: make home hero text required and media optional

* fix: hero start-only scheduling, prefilled form and history with delete

* feat: add hero preview modal to admin form and fix icon home

* fix: default home hero timestamps to current date

* feat: preview hero from history rows in a modal

* fix: accept local hero urls and reload after save

* feat: admit localized content for home hero, base language and translations

* feat: add itemClass to override DropdownItem classes

* chore: format code with prettier

* feat: allow hero translations in any language with a searchable picker

- Searchable picker fed by the full ISO 639-1 catalog, not limited to UI locales
- No base language: the platform language only seeds the form and can be
  removed once a second language exists
- Locale pattern validation in createHomeHero
- LanguagesDropdown controlled from the parent
- Chosen label shown in the picker input
- es.json hero keys

* fix: bind all 11 home_hero columns when storing a hero

The previous merge left 10 placeholders for 11 columns, so creating a hero row was failing.

* fix: drop unused TranslationRecord interface

* chore: format code with prettier

* feat: add updateHomeHero to overwrite a stored hero

* feat: preview heroes in any of their languages

* feat: validate title and content in every selected language

* feat: overwrite a hero from the history

* fix: rename admin home hero tabs

* chore: format code with Prettier

---------

Co-authored-by: Pep Villalonga <pep.villalonga@platoniq.net>
2026-10-08 16:25:30 +02:00
David Moreno Cámara 8c021b5806 [feat] Project reviews (areas + chat admin-user) (#523)
* chore: move RiskCard, ChatMessage and ChatTextarea components to /components/review

* feat: add review domain types, mocks and services

* feat: expose review actions and open reviews routes

* feat: build review areas and chat screens

* fix: navigate from BackButton links

* chore: remove review temporary CTA from home

* chore: format code by prettier
2026-10-07 13:44:39 +02:00
Pep Villalonga Amorós 888a954f68 feat: add project review admin page (#517)
* feat: add project review admin page

* fix: scope project review to campaign statuses and trust API currency
2026-10-07 13:37:23 +02:00
Pep Villalonga Amorós 190f5275e6 feat: add project manage page for owners and admins (#504)
* feat: add project manage page for owners and admins

* fix: widen claim status columns and add bottom padding

* feat: add user search and CSV export to manage tables

* fix: address review on project manage page

* feat: show non-anchored toasts floating at bottom-right
2026-10-05 17:31:13 +02:00
Pep Villalonga Amorós 71991431ff feat: show non-anchored toasts floating at bottom-right (#515) 2026-10-05 17:14:50 +02:00
Pep Villalonga Amorós 6ccb2baff2 feat: add link, lists and quote to RichTextEditor with opt-out toolbar props (#509)
* feat: add link, lists and quote to RichTextEditor with opt-out toolbar props

* feat: add heading select to RichTextEditor and close link popover on outside click
2026-09-29 13:23:19 +02:00
Pep Villalonga Amorós 83de5412a0 Fix: admin highlights save (#511)
* fix: cast highlight slot project ids to integer

* fix: drop highlight slots outside selected layout on save
2026-09-28 17:01:05 +02:00
daniel.subiabre 8f1fbf2768 Merge pull request #497 from goteo/fix/admin-highlights-project-search
Fix: admin highlights project search
2026-09-25 12:20:11 +02:00
Pep Villalonga Amorósanddaniel.subiabre f7bcf3c026 Fix: admin pagination (#498)
* fix: refetch admin tables on page change

* chore: drop dead search and cache-bypass code in admin tables

* fix(pagination): guard rapid clicks, i18n labels, figma tokens

* chore: format

* fix: move pagination i18n keys out of common into domain

* fix: replace common.pagination key references

* chore: delete redundant comment

---------

Co-authored-by: Daniel Subiabre <daniel.subiabre@platoniq.net>
2026-09-24 14:20:14 +02:00
Pep Villalonga Amorós dd4ba9583e fix: keep deleted heroes out of admin history after switching tabs (#499) 2026-09-24 14:19:53 +02:00
Pep Villalonga cb89e4bed1 fix: add save feedback, cover images and 84px cells to highlights 2026-09-24 10:41:14 +02:00
Pep Villalonga 9382f69585 fix: project search in admin highlights 2026-09-23 13:04:59 +02:00
Pep Villalonga 292936a218 refactor: extract shared debounce util 2026-09-23 13:04:59 +02:00
Pep Villalonga Amorós a6e369bb6f Fix: home hero required text optional media (#473)
* fix: make home hero text required and media optional

* fix: hero start-only scheduling, prefilled form and history with delete

* feat: add hero preview modal to admin form and fix icon home

* fix: default home hero timestamps to current date

* feat: preview hero from history rows in a modal

* fix: accept local hero urls and reload after save
2026-09-23 12:20:07 +02:00
Pep Villalonga Amorósanddaniel.subiabre 863f81d5f7 feat: replace money inputs with CurrencyInput (#482)
Co-authored-by: Daniel Subiabre <daniel.subiabre@platoniq.net>
2026-09-22 13:40:04 +02:00
Pep Villalonga Amorósanddaniel.subiabre 6ba0bc5c0c feat: add image support to RichTextEditor (#487)
* feat: add image support to RichTextEditor

* fix: rebuild pnpm-lock.yaml

---------

Co-authored-by: Daniel Subiabre <daniel.subiabre@platoniq.net>
2026-09-22 13:38:49 +02:00