Service pages improvements #152

Merged
tobru merged 11 commits from 132-frontend-improvements into main 2025-09-04 13:15:13 +00:00
Member

#132

  • Fix service tile height
  • Add "Learn more" link display
  • Show all external links on service detail page
  • Show "Learn more" link on offering detail page
  • Show service external links on offering detail page
  • Show service offering description text
#132 - [x] Fix service tile height - [x] Add "Learn more" link display - [x] Show all external links on service detail page - [ ] ~~Show "Learn more" link on offering detail page~~ - [x] Show service external links on offering detail page - [x] Show service offering description text
rixx force-pushed 132-frontend-improvements from 3c365c0824 to e24e368654 2025-07-11 11:23:09 +00:00 Compare
rixx force-pushed 132-frontend-improvements from e24e368654 to 5b876de18a 2025-08-01 11:11:39 +00:00 Compare
Author
Member

I'm not entirely clear on the "Learn more" link per service offering – everything else should be resolved, though configuring the links requires entering JSON (documented structure) manually.

I'm not entirely clear on the "Learn more" link per service offering – everything else should be resolved, though configuring the links requires entering JSON (documented structure) manually.
rixx changed title from WIP: Service pages improvements to Service pages improvements 2025-08-01 11:23:55 +00:00
Owner

Added the following JSON to a service:

{"url": "https://www.servala.com/", "title": "link 1", "featured": false}

This ended in:

AttributeError at /org/my-acme-7/services/

'str' object has no attribute 'get'

Error during template rendering

In template /home/tobru/src/servala/portal/src/servala/frontend/templates/frontend/organizations/services.html, error at line 40

The space between the cards in the service listing and the footer appears to be too narrow compared to other pages.

Regarding the "Learn more" link: Maybe it's enough with the external links. I'll check it when the above issue is fixed.

Added the following JSON to a service: ``` {"url": "https://www.servala.com/", "title": "link 1", "featured": false} ``` This ended in: ``` AttributeError at /org/my-acme-7/services/ 'str' object has no attribute 'get' Error during template rendering In template /home/tobru/src/servala/portal/src/servala/frontend/templates/frontend/organizations/services.html, error at line 40 ``` The space between the cards in the service listing and the footer appears to be too narrow compared to other pages. Regarding the "Learn more" link: Maybe it's enough with the external links. I'll check it when the above issue is fixed.
Owner

Forget about the error message! I was stupid enough to forget that this should be a JSON array. With that, it works:

[{"url": "https://www.servala.com/", "title": "link 1", "featured": true}]

Besides the spacing issue, I think this PR is done. There's no need for a separate "Learn more" link.

Forget about the error message! I was stupid enough to forget that this should be a JSON array. With that, it works: ``` [{"url": "https://www.servala.com/", "title": "link 1", "featured": true}] ``` Besides the spacing issue, I think this PR is done. There's no need for a separate "Learn more" link.
Owner

Maybe something like https://github.com/bhch/django-jsonform could help to work with JSONFields?

Maybe something like https://github.com/bhch/django-jsonform could help to work with JSONFields?
rixx force-pushed 132-frontend-improvements from 3c14c312d7 to 6c7f945c7a 2025-09-03 22:43:26 +00:00 Compare
Author
Member

Fixed the spacing and added django-jsonform:

Fixed the spacing and added django-jsonform:
tobru merged commit 2a1327c42e into main 2025-09-04 13:15:13 +00:00
tobru deleted branch 132-frontend-improvements 2025-09-04 13:15:13 +00:00
Sign in to join this conversation.
No description provided.