Project

General

Profile

Actions

Feature #18192

closed

CV "top" section

Added by Boone Gorges about 1 year ago. Updated 4 months ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
CV
Target version:
Start date:
2023-08-11
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)
Deployment actions:

Description

Breaking out from #17768, the general CV ticket.

Let's do some thinking about how best to build the "top" section of the new CV, by which I mean everything that appears above the dashed line (above 'Education'): https://www.figma.com/proto/0Ke5bCwheE5SXXkT6wDd2l/CUNY-Design---Spring-2023?page-id=2888%3A56943&node-id=2889-67871&viewport=3501%2C4218%2C0.13&scaling=min-zoom

While we'll be using the block editor to edit this section, its structure will be fairly static. WordPress allows locking at the level of the post-type template as well as the level of the block. The post-type template is too broad, so we'll need to build some sort of wrapper block with a 'lock' property. See https://developer.wordpress.org/block-editor/reference-guides/block-api/block-templates/#individual-block-locking

Most of the components of the top section should be definable as single blocks, while several will potentially need a more complex implementation. Here's an initial rundown:

1. The top-level block might be a Columns block, to enable the left-hand avatar photo. The Columns block will allow us to inherit some responsiveness. On the other hand, we don't really want users to be able to edit the column dimensions, so we might think about using custom styling for this side-by-side appearance instead.
2. The avatar upload can probably use the Featured Image block. We might build something into the CV provisioning process so that the default Featured Image is copied from the user's CAC avatar.
3. The cuny.is link is generated automatically, and every user has one. But it is currently editable by the user, so we'll probably need to build a custom block in order to enable editing.
4. The 'Active...' section will be a "dynamic" (ie PHP-generated) block.
5. The user's name ("Matthew K. Gold") can likely be a heading block. As in 2, we can probably pre-fill it with the Commons display name.
6. The Pronouns section can probably be an editable field (maybe a plain Input?) that can be pre-populated from the user's Commons settings, but like everything else, I think it should be separately editable (or deletable) for the purposes of the CV.
7. The user title ("Associate Professor...") can likely be a heading block. But I'm not sure whether we're maintaining this separately as a non-CV field as well, for use in directories. If so, we can pre-fill with that value.
8. The user description ("My research & teaching interests...") could be multiple paragraphs, so I think it will probably need to be a custom block that has a limited allowedBlocks.
9. 'View Commons Activity' link/button can be static HTML
10. For 'Find me Online', do we want to leverage WP's Social Links block? One consequence would be that the data would be stored in post_content rather than as separate usermeta, making it harder to use elsewhere on the Commons. I don't think we currently do use it elsewhere, though.
11. 'Contact' in the mockup has two different fields, for phone number and for email. We could do something like this, or simply make it a text field that people can add whatever they want to (along with some helper text). Here too we will have to decide whether the information should be pre-filled from CAC account information - my thought is that it probably should not be in the case of contact info.
12. Website and Blog can be single blocks

Hopefully this will be a good starting place for discussion about how this section of the CV will work.


Files


Subtasks 1 (0 open1 closed)

Feature #18585: CV shortlink / cuny.is blockResolvedBoone Gorges2023-08-11

Actions

Related issues

Related to CUNY Academic Commons - Feature #17768: CV Editing and PublishingResolvedJeremy Felt2023-03-04

Actions
Related to CUNY Academic Commons - Feature #18194: Migration routine for CVsNewBoone Gorges2023-05-09

Actions
Actions

Also available in: Atom PDF