Closed CraigClark closed 10 months ago
Checkbox for this is above; will be addressed in #19.
For the misaligned search icon on the home page and the dashboard, we need to change the HTML so there is a wrapper around the text input and the icon
Can we please replace the html?
<div class="bcbb-search-api-form block block-bcbb-search block-bcbb-search-api-block" data-drupal-selector="bcbb-search-api-form">
<form action="/" method="post" id="bcbb-search-api-form" accept-charset="UTF-8" role="search">
<input data-drupal-selector="edit-search-url" type="hidden" name="search_url" value="/data-set">
<div class="js-form-item form-item js-form-type-textfield form-type-textfield js-form-item-search-keyword form-item-search-keyword">
<label for="edit-search-keyword">Find metadata records</label>
<input data-drupal-selector="edit-search-keyword" aria-describedby="edit-search-keyword--description" type="text" id="edit-search-keyword" name="search_keyword" value="" maxlength="255" placeholder="" class="form-text form-control">
<div id="edit-search-keyword--description" class="description">
<a href="/data-set">Advanced search</a>
</div>
</div>
<input aria-label="Do search" class="icon-bi button js-form-submit form-submit btn btn-primary" data-drupal-selector="edit-submit" type="submit" id="edit-submit" name="op" value="">
<input autocomplete="off" data-drupal-selector="form-d4nbfh-mmbogrc7-wt2r0xcrgz2qb8al6w0pib7lh0" type="hidden" name="form_build_id" value="form-d4NbFH-_mmbOgrC7_Wt2r0XcRGZ2qb8AL6w0PiB7lH0">
<input data-drupal-selector="edit-bcbb-search-api-form" type="hidden" name="form_id" value="bcbb_search_api_form">
</form>
</div>
With
<div class="bcbb-search-api-form block block-bcbb-search block-bcbb-search-api-block" data-drupal-selector="bcbb-search-api-form">
<form action="/" method="post" id="bcbb-search-api-form" accept-charset="UTF-8" role="search">
<input data-drupal-selector="edit-search-url" type="hidden" name="search_url" value="/data-set">
<div class="js-form-item form-item js-form-type-textfield form-type-textfield js-form-item-search-keyword form-item-search-keyword">
<label for="edit-search-keyword">Find metadata records</label>
<div class="d-flex position-relative">
<input data-drupal-selector="edit-search-keyword" aria-describedby="edit-search-keyword--description" type="text" id="edit-search-keyword" name="search_keyword" value="" maxlength="255" placeholder="" class="form-text form-control">
<input aria-label="Do search" class="icon-bi button js-form-submit form-submit btn btn-primary" data-drupal-selector="edit-submit" type="submit" id="edit-submit" name="op" value="">
<input autocomplete="off" data-drupal-selector="form-d4nbfh-mmbogrc7-wt2r0xcrgz2qb8al6w0pib7lh0" type="hidden" name="form_build_id" value="form-d4NbFH-_mmbOgrC7_Wt2r0XcRGZ2qb8AL6w0PiB7lH0">
<input data-drupal-selector="edit-bcbb-search-api-form" type="hidden" name="form_id" value="bcbb_search_api_form">
</div>
<div id="edit-search-keyword--description" class="description">
<a href="/data-set">Advanced search</a>
</div>
</div>
</form>
</div>
alignment of search icon on home and dashboard is fixed, still needs tests and merge see branch 261-remove-advanced-search-link
pager link color updated in bcbb_theme
Dashboard replaced with Home for the front page and title removed as requested by @NicoledeGreef
Changes are in this branch https://github.com/bcgov/MFIN-Data-Catalogue/tree/261-set-homepage
@lkmorlan I tried to change the search page path in page manager from data-set, to search but it didn't work. You will need to look after this one. It seems that there are a lot of references in code to data-set in the path that will need to be removed. We no longer need it for breadcrumbs for example.
[!NOTE] I installed snowball stemmer and received a notice that it's not recommended for SOLR. Stemmer seems to be working, we can create a stemming specific task if needed down the road
Search seems to be indexing. We can create an issue if it fails again
Bookmarks is now in the correct order in the DOM, waiting for review and merge see https://github.com/bcgov/MFIN-Data-Catalogue/tree/261-bookmarks-placement
OP timer
https://openplus.monday.com/boards/4092908516/pulses/5640742274
Pre-alpha release general review
Reviewed on 1.0.x
General observations
On dashboard and build pages add aria tags to build and view buttons.Will be fixed in #271.dc_theme
for edit view.Search
Role: anonymous
html
in snippet fix submittedRole: DC user, Org: none
Misc search related
/data-set
tosearch
/data-set
in the URLAdmin
Metadata record node view
Role: DC user, Org: none
field--name-field-data-custodian
.yes
orno
value. This is independent behavior from the alert at the top of the Data set when Data set does contain personal info.Metadata record build
It isn't clear if I should be able to delete an MR or not. see #219
var(--bs-gray-600)
small
or target withfont-size: 0.875em;
About text formats
link<h4 class="label">…</h4>
and in others it<label for="…">…</label>
.We can make things look the same with<label for="…" class="label">…</label>
. The<h4>
is another issue, it appears that it is being used for display, not hierachy which isn't correct.button-small
from Remove button at/node/NID/edit?display=section_5
,dv21 example here, this is the data dictionary paragraphsSection 1: Details
Add Data set name in this section so user's know this is where they can change the titleNixing this idea for now. It will involve too much custom code for what it is designed to do.Edit Section 1: Details
max-width: 50%
onlg-min
and up.Section 2: Data description
Edit Section 2: Data description
.form-control {width: 100%}
with{width: auto}
Section 3: Data usage
Edit Section 3: Data usage
Section 4: Data value
Edit Section 4: Data value
/node/53
Section 5: Data dictionary
Edit Section 5: Data dictionary: Import data columns
Edit Section 5: Data dictionary: Add columns in UI (Paragraph)
he name of the column in the dataset.
should beThe name of the column in the dataset.
max-width: 50%
onlg-min
and up.put all the provenance stuff in a container to show they are relatedlooks fine now that some theming has been applied.