-
Notifications
You must be signed in to change notification settings - Fork 90
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
חברה מפעילה input inconsistency #401
Comments
I want to discuss possible solutions, should I do it here or on slack? |
@i5x64BIT could you please clarify and provide example for inconsistencies / false information? |
@NoamGaash // OperatorSelector
setOperators(
filter == FilterOperatorOptions.MAJOR && resultObj
? resultObj.filter((item) => majorOperatorsIds.includes(item.id))
: resultObj,
), // OperatorSelector
return (
<Autocomplete
disablePortal
style={{ width: '100%' }}
value={value}
onChange={(e, value) => setOperatorId(value ? value.id : '')}
id="operator-select"
options={operators}
renderInput={(params) => <TextField {...params} label={t('choose_operator')} />}
getOptionLabel={(option) => option.name}
/>
) So I figured that changing the // Dashboard
<OperatorSelector
operatorId={operatorId}
setOperatorId={setOperatorId}
filter={FilterOperatorOptions.MAJOR} // Changing from MAJOR to ALL should've fixed it
/> but turns out that this filtering mechanic is buggy by itself. After changing to Screen.Recording.2024-02-07.at.22.30.50.movSo to start off I would say my solution to the inconsistency would be to remove the filtering from Secondly displaying all the operators clearly needs some work so there is that. |
BTW the data for |
Screen.Recording.2024-02-24.at.11.31.41.movA followup on this issue is some wierdness with WorstLinesChart, where operators that aren't included in |
@all-contributors please add @Haswell-s for code |
I've put up a pull request to add @Haswell-s! 🎉 |
The fact that items are pre-selected creates inconsistensies between pages and does not reflect the db.
I would suggest to chnage the behavior of the component to fetch the db instead.
To make it faster I would say to cache the data from the landing page (קיום נסיעות) charts and use them as the options, but this is out of the scope of this issue.
The text was updated successfully, but these errors were encountered: