-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 1498 - Adding entity fields #1526
Conversation
@@ -332,7 +346,59 @@ function tsml_settings_page() | |||
</form> | |||
</div> | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check the order of these on the settings screen. I ended up putting this in spot 2, left column, and moved the Feeds settings to top of the middle column. But I don't stare at this screen much, so it's a guess.
- show default values in form so user is aware what will be in exports - reprocess POT
This reverts commit 45a4fbd.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
look great, thanks for jumping on this so quickly! just a few comments
templates/single-meetings.php
Outdated
<?php the_modified_date() ?> | ||
</p> | ||
<?php | ||
if (!empty($meeting->{'data_source'})) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think we need some intro text here potentially like "This meeting listing is provided by:"
let's not show the email address - this is more for administrative purposes
the feedback email form should either be hidden and we add something here, or it should send to the entity's feedback_email addresses if present
minor: could we use the $meeting->data_source
pattern for this and the other vars?
minor: i would like to steer away from using <br>
tags - could this be Ps or a UL?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or it should send to the entity's feedback_email addresses if present
Honestly this raises questions I want to talk about, cause it'll be a mess typing it out. Don't feel equipped with enough history on this tool to answer them myself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm, yeah, i'm not so sure. perhaps less is more?
my reason for wanting to add it is that we want to make it clear what this section is - some users might get confused and think it is meeting information.
the purpose of this section is to be like this section in the app:
if we could replicate the headline style for the other sections for the entity name, and make the url and phone buttons like in this pic:
we might try the This meeting listing is provided by:
above the headline in a <small>
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here's what it currently looks like in this PR for TSML UI:
not that it needs to match per se but just for context
includes/admin_settings.php
Outdated
|
||
<form method="post" class="stack compact" action="<?php echo $_SERVER['REQUEST_URI'] ?>"> | ||
<?php wp_nonce_field($tsml_nonce, 'tsml_nonce', false) ?> | ||
<h3> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could these h3
s be label
s instead? the smaller type should look good as well
i would keep it Entity Name
but change:
Entity Contact Email
-> Administrative Contact Email
Entity Contact Phone
-> Public Phone Number
Entity Location
-> Your Service Area
Entity Website
-> Website Address
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's good! maybe make them label
s though, if they're not already
'entity_phone', | ||
'entity_location', | ||
'entity_url', | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to add feedback email here? the idea is that they should pass through from the imported service entity
also i think |
one last piece of feedback, and feel free to push back and/or say we should make this a subsequent PR, is i think if feedback emails are present on a meeting in legacy, we should expose the feedback form and send to those emails. ie here:
we might say
… but looks like you already did the work to make is actually send, so i could be missing something? maybe it's not importing because of the array_values issue above? |
- when casting to array, also use array_valus to avoid associative keys - ensure settings page has all possible entity fields present for display - update logic for displaying change request form
@joshreisner FYI
|
maybe need a prettier config in this project?
Adds Entity form fields to Settings page:
Adds Entity fields to export / import
Adds Entity fields to TSML Legacy