Skip to content
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

Create child views managing list of Predictions #2292

Merged

Conversation

ianguerin
Copy link
Collaborator

@ianguerin ianguerin commented Mar 5, 2024

Prediction models can be represented by a PredictionView which are in
turn managed as an unordered list.

#1796

@ianguerin ianguerin self-assigned this Mar 6, 2024
@ianguerin ianguerin changed the base branch from develop to feature-1796-places-autocomplete March 6, 2024 16:06
@ianguerin ianguerin force-pushed the feature-1796-pr-3 branch 13 times, most recently from bbd347c to 49ea0c5 Compare March 7, 2024 23:44
src/js/models/maps/viewfinder/ViewfinderModel.js Outdated Show resolved Hide resolved
src/js/models/maps/viewfinder/ViewfinderModel.js Outdated Show resolved Hide resolved
@@ -0,0 +1,6 @@
<div class="<%= classNames.content %> <% if(isFocused) { %>viewfinder-prediction__focused<% } %>">
<i class="icon-map-marker"></i>
<div class="viewfinder-prediction__main" title="<%= description %>">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interesting- is title for accessibility?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This provides a mechanism for the user to see the entire prediction description, since it will overflow with ellipsis if the string is too long
ellipses

src/js/views/maps/viewfinder/PredictionView.js Outdated Show resolved Hide resolved
src/js/views/maps/viewfinder/PredictionView.js Outdated Show resolved Hide resolved
@ianguerin ianguerin force-pushed the feature-1796-pr-3 branch 3 times, most recently from be6d824 to 5ed2497 Compare March 11, 2024 22:58
@ianguerin ianguerin marked this pull request as ready for review March 12, 2024 16:31
@ianguerin ianguerin requested a review from robyngit March 12, 2024 16:31
@ianguerin ianguerin force-pushed the feature-1796-pr-3 branch 2 times, most recently from f35c676 to 5057b73 Compare March 15, 2024 22:34
@ianguerin ianguerin force-pushed the feature-1796-places-autocomplete branch from 0b1ff8c to 92f7005 Compare March 15, 2024 22:39
@ianguerin ianguerin force-pushed the feature-1796-pr-3 branch 2 times, most recently from dc7703c to e4c661c Compare March 15, 2024 23:20
Add ViewfinderModel which will be used by ViewfinderView in a later
commit.
Prediction models can be represented by a PredictionView which are in
turn managed as an unordered list.
@ianguerin ianguerin merged commit 6a625b4 into NCEAS:feature-1796-places-autocomplete Mar 19, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants