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

ISSUE-198 - Reorganization of the plot of land interface, in particular for waste garbage cans #207

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

LPoin
Copy link
Contributor

@LPoin LPoin commented Dec 31, 2024

Multiple changes to the parcel search interface:

  • the ‘+’ button is now placed after the tabs used to search for plots, like a web browser.
  • tab deletion is now done by a cross on each tab. The dustbin has been removed.
  • the ‘search’ and ‘delete’ buttons have been grouped together in the plot search block to avoid confusion with the plot selection block below.

These changes have been reflected in the search for owners and co-owners to maintain the overall consistency of cadastrapp.

Tested in integration.
Mapstore 2023.02
Node 16.20.2

@landryb
Copy link
Member

landryb commented Jan 2, 2025

deployed locally, renders like this:

image

strangely i cant select plots anymore in the search results. i can doubleclick on the plot line and it opens the info form, i can tick the 'select all' box, but the box on the plot line is inactive. thus i cant select the plot line to test the trash...

creating a new empty selection tab 2, coming back to the selection 1 tab and clicking on the cross to close selection tab 2 destroys the wrong selection tab (ie tab1, the one where i had a plot from a map selection)

Peek 02-01-2025 10-08

@LPoin
Copy link
Contributor Author

LPoin commented Jan 2, 2025

Both issues have been fixed.

@landryb
Copy link
Member

landryb commented Jan 3, 2025

It's better, but there's still an UX annoyance: if you close a tab which isnt displayed/selected, after confirming, you get a blank area, and you need to reselect the previously selected tab, while it shouldn't stop showing the currently selected tab..

Peek 03-01-2025 11-18

@pierrejego
Copy link
Member

It's better, but there's still an UX annoyance: if you close a tab which isnt displayed/selected, after confirming, you get a blank area, and you need to reselect the previously selected tab, while it shouldn't stop showing the currently selected tab..

Peek 03-01-2025 11-18 Peek 03-01-2025 11-18

This is a regression, it was working on previous version. This point has to be corrected before merging

confirmContent={<Message msgId={'cadastrapp.search.confirmDeleteTab'}/>}
onClick={(e) => {
e.stopPropagation();
onTabDelete(!isDrop ? index : index + (MAX_TABS - 1));
Copy link

@Gaetanbrl Gaetanbrl Jan 8, 2025

Choose a reason for hiding this comment

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

You can also (other solution) just pass the delete func as property to reduce function complexity:

<DeletePlot delete={() => onTabDelete(index + (MAX_TABS - 1))}/>

Function :

function DeletePlot ({
    delete = () => {},
}) {    
    return (
        <OverlayTrigger placement="bottom" overlay={<Tooltip><Message msgId={'cadastrapp.search.deleteTab'}/></Tooltip>}>
            <ConfirmButton
                href="javascript:void(0)"
                confirmContent={<Message msgId={'cadastrapp.search.confirmDeleteTab'}/>}
                onClick={(e) => {
                    e.stopPropagation();
                    delete();
                    }}>
                <Glyphicon glyph="remove" />
            </ConfirmButton>
        </OverlayTrigger>
    )
}

Copy link

@Gaetanbrl Gaetanbrl left a comment

Choose a reason for hiding this comment

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

Minor not required change

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.

4 participants