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

Modificação nas telas de abrigos para adicionar cidades #110

Merged
merged 17 commits into from
May 15, 2024

Conversation

kelvinsb
Copy link
Contributor

@kelvinsb kelvinsb commented May 12, 2024

Descrição

Com a criação de diversos campos de endereço e a normalização do campo city e melhorar a experiência do site é preciso fazer algumas alterações de filtros baseado em cidade

Mudanças

  • Filtro de cidade
    • Os filtros selecionados de cidades são exibidos embaixo do campo de Buscar por abrigo ou endereço
      • Clicando em um este é removido
    • Ao clicar em Filtros tem uma nova seção Qual cidade você quer ajudar?
      • Em que se pode selecionar várias cidades para o filtro funcionar, também aparece entre parenteses a quantidade de abrigos naquela cidade
  • Formulário de abrigo
    • Criação e edição de abrigo
      • Campos de endereço novos
      • Campo de CEP ao ser preenchido por pelo menos 8 letras é requisitado a viaCep para pegar dados e facilitar
      • Com campo de pesquisa com cidades já populados do RS
  • Exibição de cidade
    • Nos abrigos listados na página inicial após o nome do abrigo é exposto a cidade: - Cidade
    • Na página de detalhes do abrigo também é exposto a cidade

Mudanças técnicas

  • Foi criado um hook para debounce(esperar x tempo até mudar o valor de fato), usado para requisição do viaCep não ser chamada a cada tecla instantaneamente
  • Criado um hook de useViaCep para requisição
  • Alterado o useFetch para ser condicional
    • Quando o path é vazio não é feito a requisição
    • Quando um pathé fornecido então é feito a requisição
    • Não é pra alterar o comportamento dos outros fetchs, mas é bom testar e ver se nada quebrou, dependendo por precaução faço um hook diferente só pra isso

Rotas novas consultadas

  • shelters/cities: para consulta das cidades disponíveis e a quantidade de abrigos para cada um
  • viacep.com.br: para consultar dados de um CEP

O que falta

  • Alinhar com time de UX sobre mudanças

Testes recomendados a serem feitos no code review ou QA

  1. Verificar em Filtros se o filtro de cidade está funcionando corretamente
    1. Se pode selecionar vários
    2. Se pode pesquisar digitando
    3. Se pode selecionar um dos itens
    4. E está aplicando corretamente na listagem
  2. Se as cidades aplicadas do ponto anterior estão aparecendo embaixo do campo de pesquisa de nome do abrigo em cima da listagem
    1. Se ao clicar em um item
      1. Ele é removido
      2. A listagem é atualizada de acordo
  3. No painel de abrigos
    1. Cadastrar abrigo
      1. Seguintes campos aparecem e são obrigatórios: CEP , Logradouro (Rua/avenida) , Número , Bairro e Cidade
      2. Ao digitar um CEP e estando em um dos formatos aceitados preenchendo os campos de Logradouro (Rua/avenida) , Bairro e Cidade
      3. Ao salvar os devidos dados são salvos(verificar rota de GET e a página de detalhes do abrigo)
    2. Editar abrigo
      1. Seguintes campos aparecem e são obrigatórios: CEP , Logradouro (Rua/avenida) , Número , Bairro e Cidade
      2. Ao digitar um CEP e estando em um dos formatos aceitados preenchendo os campos de Logradouro (Rua/avenida) , Bairro e Cidade
        • Se a requisição é feita somente quando o campo é alterado, não é pra requisitar só de iniciar a página
      3. Ao salvar os devidos dados são salvos(verificar rota de GET e a página de detalhes do abrigo)
      • Campo de endereço é exibido para verificação de dado antigo(caso queira normalizar os outros campos)
    3. Detalhes do abrigo
      1. Aparecer cidade(ícone de prédio)
      2. Caso address seja nulo aparecer formatado com os dados dos outros campos(comparar dados da requests com os
        que aparecem)
  • Como foi alterado o hook de useFetch é bom testar as outras rotas pra ver se nada quebrou e está funcionando de acordo

Depende

depends on backend#

@kelvinsb kelvinsb changed the title WIP: Modificação nas telas de abrigos para adicionar cidades Modificação nas telas de abrigos para adicionar cidades May 12, 2024
Copy link
Contributor

@filipepacheco filipepacheco left a comment

Choose a reason for hiding this comment

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

lgtm

@filipepacheco filipepacheco merged commit 883097b into SOS-RS:develop May 15, 2024
rhuam pushed a commit that referenced this pull request May 15, 2024
* [fix] Config readme

* wip: loading

* Delete yarn.lock

* refact: created shelter list view component in home page

* Fix: mobile UI has broken for mobile devices (#22)

*Fix: mobile UI has broken for mobile devices

* fix: remove chip as fixed as no wrap property

* chore: add shelter card clickable

* chore: remove Fragment component

* build: add set sm as max mobile dimension
          sm: 425px

* style: add responsive layout

* refactor: filter page

* fix: priority

* fix: filter parameters

* fix: fixed volunteer supply that had been fulfilled displaying on shelter page

* fix: improve readability

* feat: hidden filter button if filter is empty

* feat: cache in axios request

* fix: cache search params

* feat: cache clean on searchs

* wip: donation tags

* fix: clean search params

* Update README.md

[fix] Retirando a seção Funcionalidades e Backlog

* fix: donation tags / componentized the urgent supplies section

* fix: removed empty shelter tags empty row

* feat: full edit shelter and improved interface of pet friendly in shelter page

* refact: add live link and tech stack to readme

* Fix/develop bugs (#90)

* fix: cache bug (invalite cache on create/update operation)

* feat: added update many shelter supplies and admin rule

* Add license (#81)

Closes #65.

* fix: app port (#80)

* docs: added shadcn/ui reference

* fix for volunteer shelter title (#95)

* treat contact link as a proper link

* simplified href

* docs: add discord link on readme

* Normalizes search string in supply filter so it ignores accents (#125)

* normalized search string to ignore accents

* revert removed button

* add a copy to clipboard button to PIX and contact info (#124)

* add a copy to clipboard button to PIX and contact info

* use && operator instead of ternary

* Substitui onClick e useNavigate por <Link> para melhorar acessibilidade (#128)

* replaced navigate in favour of html link and added card hover

* fixed lint warnings

* fix: change shelter title style (#106)

Prevents badge misalignment on very large titles

* Add new feature and creating LoadingSkeleton (#115)

* Add new feature and creating LoadingSkeleton

* fix/add: add favicon and canonical metatag (#136)

* fix/add: add favicon and canonical metatag

* fix: fixed the path

* refactor: changed order of shelters to updated at instead priority sum (#137)

* Remove zod dependency (#143)

* replaced zod validation with yup

* removed zod dependency from package.json

* sort dependencies

* fixed validation schema variable name

* removed .shape() and added .strict()

* deleted unused file

* Added burger menu to home page (#149)

* Implemented Burger menu

* commented unused components

* feat: Update BurgerMenu to display user's name when logged in

* removed comments

* implemented login and logout button

* Feat/partners (#155)

* fix: menu bar with api partners

* fix: menu bar with api partners

* fix: remove unused session in burguer menu / removed import all icons from lucide and use link icon instead custom icons

* [BUG] Botão de Limpar Filtro sumindo após remover input de busca (#147)

* fix: clean filter button disappearing after removing search input manually

* fix: removing log

* Modificação nas telas de abrigos para adicionar cidades (#110)

* feat: filter shlters by cities

* feat: city on shelter forms, info and list

* feat: shelter city quantities on filter

* fix: wrong conditional

* fix: bug that removing city filter on home doesnt affect the filter

* feat: new address fields on shelter forms

* feat: useDebouncedValue, useViaCep

* feat: adapt useFetch for conditional paths and different response

* feat: address fields required and zipCode triggering viaCep

* feat: address fields required on update shelter

* feat: address fields on shelter details when theres no address field

* fix: suggestions(shorthand, optional chaining, separated zipCode, formatted city on list)

* feat: sticky footer on filter dialog

* fix: reset errors on zipcode search; copy filter change

* fix: timeoutId not assigned value; InfoRow copy can copy undefined

* Campo de quantidade adicionado quando adicionar suprimento a um abrigo (#46)

* feat(shelter-supply): input to add quantity supply

* feat(shelter-supply): show quantity supply at Shelter page and EditShelter page

* resolve conflict

---------

Co-authored-by: Lipe <lip3pacheco@gmail.com>

* feat: google analytics

* feat: edit shelter supply item quantity (#170)

* fix: send address field formatted (#171)

* feat: add a template to log bugs/defects (#168)

* feat: add a template to log bugs/defects

* Feat/privacy terms about us (#169)

* feat: privacy policy page

* feat: done about us page

* fix: removed redundant value check in info row component

* fix: ordering the list of items on the shelter edit page (#166)

* feat: Melhoria no esquema de cores dos chip's e ajuste de acessibilidade (#162)

* feat: new text colors with adjusted light var colors

* feat: change chip element tag to span and improve a11y

* feat: added update date information to shelter page (#159)

* Adding update date to shelter page

* (Aditional) Informing when no update date for shelter in main page

* feat: ajuste de textos de voluntários e doações (#129)

* hotfix: shelter list item broken div tag

* Feat/back navigation to home (#177)

* feat: added back navigation to home when click in header label

* Hotfix/merge bugs (#183)

* fix: shelter list item duplicate code after merge

* fix: order in filter select menu, filter supplies by category and useSupplies interface

* fix: update shelter validation schema and created useAuthRoles hook to reduce complexity of code

* fix: conflicts with master branch

---------

Co-authored-by: helenapaixao <hp.helenapaixao@gmail.com>
Co-authored-by: Luccas Specht <luccas.specht.dev@gmail.com>
Co-authored-by: MatheusDubin <matheusdsilveira@gmail.com>
Co-authored-by: danmqs <daniel.marques@sudema.pb.gov.br>
Co-authored-by: Giovanni Bassi <334958+giggio@users.noreply.github.com>
Co-authored-by: Felipe Monteiro <fm3209742@gmail.com>
Co-authored-by: André Ferraz <74271823+decofma@users.noreply.github.com>
Co-authored-by: Sombrio <sombrio@sombrasoft.dev>
Co-authored-by: Filipe Pacheco de Fraga <lip3pacheco@gmail.com>
Co-authored-by: Daniel Marques <dev.danielmarques@outlook.com>
Co-authored-by: Matheus Dubin Da Silveira <46721495+MatheusDubin@users.noreply.github.com>
Co-authored-by: Miguel Dalberto <65927539+migueldalberto@users.noreply.github.com>
Co-authored-by: Pablo A. Maximo <pabloadrianomc@gmail.com>
Co-authored-by: Marcos Nascimento <62677231+Marcos-Nacimento@users.noreply.github.com>
Co-authored-by: Gilmar José <99229360+g42puts@users.noreply.github.com>
Co-authored-by: Kelvin <kelvinbr11@gmail.com>
Co-authored-by: Jhonatan David <82552187+jotahdavid@users.noreply.github.com>
Co-authored-by: Alexander Scheibler <60936422+alexanderscheibler@users.noreply.github.com>
Co-authored-by: Giovani Andrino Carnaval <gi.carnaval@hotmail.com>
Co-authored-by: Thiago Oliveira <55795035+thdq@users.noreply.github.com>
Co-authored-by: Henrique Uhlmann Gobbi <hgugobbi@gmail.com>
Co-authored-by: Janderson Soares <7406406+jandersonsc@users.noreply.github.com>
rhuam added a commit that referenced this pull request May 18, 2024
* [fix] Config readme

* wip: loading

* Delete yarn.lock

* refact: created shelter list view component in home page

* Fix: mobile UI has broken for mobile devices (#22)

*Fix: mobile UI has broken for mobile devices

* fix: remove chip as fixed as no wrap property

* chore: add shelter card clickable

* chore: remove Fragment component

* build: add set sm as max mobile dimension
          sm: 425px

* style: add responsive layout

* refactor: filter page

* fix: priority

* fix: filter parameters

* fix: fixed volunteer supply that had been fulfilled displaying on shelter page

* fix: improve readability

* feat: hidden filter button if filter is empty

* feat: cache in axios request

* fix: cache search params

* feat: cache clean on searchs

* wip: donation tags

* fix: clean search params

* Update README.md

[fix] Retirando a seção Funcionalidades e Backlog

* fix: donation tags / componentized the urgent supplies section

* fix: removed empty shelter tags empty row

* feat: full edit shelter and improved interface of pet friendly in shelter page

* refact: add live link and tech stack to readme

* Fix/develop bugs (#90)

* fix: cache bug (invalite cache on create/update operation)

* feat: added update many shelter supplies and admin rule

* Add license (#81)

Closes #65.

* fix: app port (#80)

* docs: added shadcn/ui reference

* fix for volunteer shelter title (#95)

* treat contact link as a proper link

* simplified href

* docs: add discord link on readme

* Normalizes search string in supply filter so it ignores accents (#125)

* normalized search string to ignore accents

* revert removed button

* add a copy to clipboard button to PIX and contact info (#124)

* add a copy to clipboard button to PIX and contact info

* use && operator instead of ternary

* Substitui onClick e useNavigate por <Link> para melhorar acessibilidade (#128)

* replaced navigate in favour of html link and added card hover

* fixed lint warnings

* fix: change shelter title style (#106)

Prevents badge misalignment on very large titles

* Add new feature and creating LoadingSkeleton (#115)

* Add new feature and creating LoadingSkeleton

* fix/add: add favicon and canonical metatag (#136)

* fix/add: add favicon and canonical metatag

* fix: fixed the path

* refactor: changed order of shelters to updated at instead priority sum (#137)

* Remove zod dependency (#143)

* replaced zod validation with yup

* removed zod dependency from package.json

* sort dependencies

* fixed validation schema variable name

* removed .shape() and added .strict()

* deleted unused file

* Added burger menu to home page (#149)

* Implemented Burger menu

* commented unused components

* feat: Update BurgerMenu to display user's name when logged in

* removed comments

* implemented login and logout button

* Feat/partners (#155)

* fix: menu bar with api partners

* fix: menu bar with api partners

* fix: remove unused session in burguer menu / removed import all icons from lucide and use link icon instead custom icons

* [BUG] Botão de Limpar Filtro sumindo após remover input de busca (#147)

* fix: clean filter button disappearing after removing search input manually

* fix: removing log

* Modificação nas telas de abrigos para adicionar cidades (#110)

* feat: filter shlters by cities

* feat: city on shelter forms, info and list

* feat: shelter city quantities on filter

* fix: wrong conditional

* fix: bug that removing city filter on home doesnt affect the filter

* feat: new address fields on shelter forms

* feat: useDebouncedValue, useViaCep

* feat: adapt useFetch for conditional paths and different response

* feat: address fields required and zipCode triggering viaCep

* feat: address fields required on update shelter

* feat: address fields on shelter details when theres no address field

* fix: suggestions(shorthand, optional chaining, separated zipCode, formatted city on list)

* feat: sticky footer on filter dialog

* fix: reset errors on zipcode search; copy filter change

* fix: timeoutId not assigned value; InfoRow copy can copy undefined

* Campo de quantidade adicionado quando adicionar suprimento a um abrigo (#46)

* feat(shelter-supply): input to add quantity supply

* feat(shelter-supply): show quantity supply at Shelter page and EditShelter page

* resolve conflict

---------

Co-authored-by: Lipe <lip3pacheco@gmail.com>

* feat: google analytics

* feat: edit shelter supply item quantity (#170)

* fix: send address field formatted (#171)

* feat: add a template to log bugs/defects (#168)

* feat: add a template to log bugs/defects

* Feat/privacy terms about us (#169)

* feat: privacy policy page

* feat: done about us page

* fix: removed redundant value check in info row component

* fix: ordering the list of items on the shelter edit page (#166)

* feat: Melhoria no esquema de cores dos chip's e ajuste de acessibilidade (#162)

* feat: new text colors with adjusted light var colors

* feat: change chip element tag to span and improve a11y

* feat: added update date information to shelter page (#159)

* Adding update date to shelter page

* (Aditional) Informing when no update date for shelter in main page

* feat: ajuste de textos de voluntários e doações (#129)

* hotfix: shelter list item broken div tag

* Feat/back navigation to home (#177)

* feat: added back navigation to home when click in header label

* Hotfix/merge bugs (#183)

* fix: shelter list item duplicate code after merge

* fix: order in filter select menu, filter supplies by category and useSupplies interface

* fix: update shelter validation schema and created useAuthRoles hook to reduce complexity of code

* fix: conflicts with master branch

* feat: dev and staging gh actions

* wip

* feat: done supporters page

* feat: added shelter category (#250)

Co-authored-by: José Fagundes <fagundesjg@outlook.com>

---------

Co-authored-by: helenapaixao <hp.helenapaixao@gmail.com>
Co-authored-by: José Fagundes <fagundesjg@outlook.com>
Co-authored-by: Luccas Specht <luccas.specht.dev@gmail.com>
Co-authored-by: MatheusDubin <matheusdsilveira@gmail.com>
Co-authored-by: danmqs <daniel.marques@sudema.pb.gov.br>
Co-authored-by: Giovanni Bassi <334958+giggio@users.noreply.github.com>
Co-authored-by: Felipe Monteiro <fm3209742@gmail.com>
Co-authored-by: André Ferraz <74271823+decofma@users.noreply.github.com>
Co-authored-by: Sombrio <sombrio@sombrasoft.dev>
Co-authored-by: Filipe Pacheco de Fraga <lip3pacheco@gmail.com>
Co-authored-by: Daniel Marques <dev.danielmarques@outlook.com>
Co-authored-by: Matheus Dubin Da Silveira <46721495+MatheusDubin@users.noreply.github.com>
Co-authored-by: Miguel Dalberto <65927539+migueldalberto@users.noreply.github.com>
Co-authored-by: Pablo A. Maximo <pabloadrianomc@gmail.com>
Co-authored-by: Marcos Nascimento <62677231+Marcos-Nacimento@users.noreply.github.com>
Co-authored-by: Gilmar José <99229360+g42puts@users.noreply.github.com>
Co-authored-by: Kelvin <kelvinbr11@gmail.com>
Co-authored-by: Jhonatan David <82552187+jotahdavid@users.noreply.github.com>
Co-authored-by: Alexander Scheibler <60936422+alexanderscheibler@users.noreply.github.com>
Co-authored-by: Giovani Andrino Carnaval <gi.carnaval@hotmail.com>
Co-authored-by: Thiago Oliveira <55795035+thdq@users.noreply.github.com>
Co-authored-by: Henrique Uhlmann Gobbi <hgugobbi@gmail.com>
Co-authored-by: Janderson Soares <7406406+jandersonsc@users.noreply.github.com>
AlchemistByte pushed a commit to AlchemistByte/frontend that referenced this pull request Jun 6, 2024
* feat: filter shlters by cities

* feat: city on shelter forms, info and list

* feat: shelter city quantities on filter

* fix: wrong conditional

* fix: bug that removing city filter on home doesnt affect the filter

* feat: new address fields on shelter forms

* feat: useDebouncedValue, useViaCep

* feat: adapt useFetch for conditional paths and different response

* feat: address fields required and zipCode triggering viaCep

* feat: address fields required on update shelter

* feat: address fields on shelter details when theres no address field

* fix: suggestions(shorthand, optional chaining, separated zipCode, formatted city on list)

* feat: sticky footer on filter dialog

* fix: reset errors on zipcode search; copy filter change

* fix: timeoutId not assigned value; InfoRow copy can copy undefined
AlchemistByte pushed a commit to AlchemistByte/frontend that referenced this pull request Jun 6, 2024
* [fix] Config readme

* wip: loading

* Delete yarn.lock

* refact: created shelter list view component in home page

* Fix: mobile UI has broken for mobile devices (SOS-RS#22)

*Fix: mobile UI has broken for mobile devices

* fix: remove chip as fixed as no wrap property

* chore: add shelter card clickable

* chore: remove Fragment component

* build: add set sm as max mobile dimension
          sm: 425px

* style: add responsive layout

* refactor: filter page

* fix: priority

* fix: filter parameters

* fix: fixed volunteer supply that had been fulfilled displaying on shelter page

* fix: improve readability

* feat: hidden filter button if filter is empty

* feat: cache in axios request

* fix: cache search params

* feat: cache clean on searchs

* wip: donation tags

* fix: clean search params

* Update README.md

[fix] Retirando a seção Funcionalidades e Backlog

* fix: donation tags / componentized the urgent supplies section

* fix: removed empty shelter tags empty row

* feat: full edit shelter and improved interface of pet friendly in shelter page

* refact: add live link and tech stack to readme

* Fix/develop bugs (SOS-RS#90)

* fix: cache bug (invalite cache on create/update operation)

* feat: added update many shelter supplies and admin rule

* Add license (SOS-RS#81)

Closes SOS-RS#65.

* fix: app port (SOS-RS#80)

* docs: added shadcn/ui reference

* fix for volunteer shelter title (SOS-RS#95)

* treat contact link as a proper link

* simplified href

* docs: add discord link on readme

* Normalizes search string in supply filter so it ignores accents (SOS-RS#125)

* normalized search string to ignore accents

* revert removed button

* add a copy to clipboard button to PIX and contact info (SOS-RS#124)

* add a copy to clipboard button to PIX and contact info

* use && operator instead of ternary

* Substitui onClick e useNavigate por <Link> para melhorar acessibilidade (SOS-RS#128)

* replaced navigate in favour of html link and added card hover

* fixed lint warnings

* fix: change shelter title style (SOS-RS#106)

Prevents badge misalignment on very large titles

* Add new feature and creating LoadingSkeleton (SOS-RS#115)

* Add new feature and creating LoadingSkeleton

* fix/add: add favicon and canonical metatag (SOS-RS#136)

* fix/add: add favicon and canonical metatag

* fix: fixed the path

* refactor: changed order of shelters to updated at instead priority sum (SOS-RS#137)

* Remove zod dependency (SOS-RS#143)

* replaced zod validation with yup

* removed zod dependency from package.json

* sort dependencies

* fixed validation schema variable name

* removed .shape() and added .strict()

* deleted unused file

* Added burger menu to home page (SOS-RS#149)

* Implemented Burger menu

* commented unused components

* feat: Update BurgerMenu to display user's name when logged in

* removed comments

* implemented login and logout button

* Feat/partners (SOS-RS#155)

* fix: menu bar with api partners

* fix: menu bar with api partners

* fix: remove unused session in burguer menu / removed import all icons from lucide and use link icon instead custom icons

* [BUG] Botão de Limpar Filtro sumindo após remover input de busca (SOS-RS#147)

* fix: clean filter button disappearing after removing search input manually

* fix: removing log

* Modificação nas telas de abrigos para adicionar cidades (SOS-RS#110)

* feat: filter shlters by cities

* feat: city on shelter forms, info and list

* feat: shelter city quantities on filter

* fix: wrong conditional

* fix: bug that removing city filter on home doesnt affect the filter

* feat: new address fields on shelter forms

* feat: useDebouncedValue, useViaCep

* feat: adapt useFetch for conditional paths and different response

* feat: address fields required and zipCode triggering viaCep

* feat: address fields required on update shelter

* feat: address fields on shelter details when theres no address field

* fix: suggestions(shorthand, optional chaining, separated zipCode, formatted city on list)

* feat: sticky footer on filter dialog

* fix: reset errors on zipcode search; copy filter change

* fix: timeoutId not assigned value; InfoRow copy can copy undefined

* Campo de quantidade adicionado quando adicionar suprimento a um abrigo (SOS-RS#46)

* feat(shelter-supply): input to add quantity supply

* feat(shelter-supply): show quantity supply at Shelter page and EditShelter page

* resolve conflict

---------

Co-authored-by: Lipe <lip3pacheco@gmail.com>

* feat: google analytics

* feat: edit shelter supply item quantity (SOS-RS#170)

* fix: send address field formatted (SOS-RS#171)

* feat: add a template to log bugs/defects (SOS-RS#168)

* feat: add a template to log bugs/defects

* Feat/privacy terms about us (SOS-RS#169)

* feat: privacy policy page

* feat: done about us page

* fix: removed redundant value check in info row component

* fix: ordering the list of items on the shelter edit page (SOS-RS#166)

* feat: Melhoria no esquema de cores dos chip's e ajuste de acessibilidade (SOS-RS#162)

* feat: new text colors with adjusted light var colors

* feat: change chip element tag to span and improve a11y

* feat: added update date information to shelter page (SOS-RS#159)

* Adding update date to shelter page

* (Aditional) Informing when no update date for shelter in main page

* feat: ajuste de textos de voluntários e doações (SOS-RS#129)

* hotfix: shelter list item broken div tag

* Feat/back navigation to home (SOS-RS#177)

* feat: added back navigation to home when click in header label

* Hotfix/merge bugs (SOS-RS#183)

* fix: shelter list item duplicate code after merge

* fix: order in filter select menu, filter supplies by category and useSupplies interface

* fix: update shelter validation schema and created useAuthRoles hook to reduce complexity of code

* fix: conflicts with master branch

---------

Co-authored-by: helenapaixao <hp.helenapaixao@gmail.com>
Co-authored-by: Luccas Specht <luccas.specht.dev@gmail.com>
Co-authored-by: MatheusDubin <matheusdsilveira@gmail.com>
Co-authored-by: danmqs <daniel.marques@sudema.pb.gov.br>
Co-authored-by: Giovanni Bassi <334958+giggio@users.noreply.github.com>
Co-authored-by: Felipe Monteiro <fm3209742@gmail.com>
Co-authored-by: André Ferraz <74271823+decofma@users.noreply.github.com>
Co-authored-by: Sombrio <sombrio@sombrasoft.dev>
Co-authored-by: Filipe Pacheco de Fraga <lip3pacheco@gmail.com>
Co-authored-by: Daniel Marques <dev.danielmarques@outlook.com>
Co-authored-by: Matheus Dubin Da Silveira <46721495+MatheusDubin@users.noreply.github.com>
Co-authored-by: Miguel Dalberto <65927539+migueldalberto@users.noreply.github.com>
Co-authored-by: Pablo A. Maximo <pabloadrianomc@gmail.com>
Co-authored-by: Marcos Nascimento <62677231+Marcos-Nacimento@users.noreply.github.com>
Co-authored-by: Gilmar José <99229360+g42puts@users.noreply.github.com>
Co-authored-by: Kelvin <kelvinbr11@gmail.com>
Co-authored-by: Jhonatan David <82552187+jotahdavid@users.noreply.github.com>
Co-authored-by: Alexander Scheibler <60936422+alexanderscheibler@users.noreply.github.com>
Co-authored-by: Giovani Andrino Carnaval <gi.carnaval@hotmail.com>
Co-authored-by: Thiago Oliveira <55795035+thdq@users.noreply.github.com>
Co-authored-by: Henrique Uhlmann Gobbi <hgugobbi@gmail.com>
Co-authored-by: Janderson Soares <7406406+jandersonsc@users.noreply.github.com>
AlchemistByte pushed a commit to AlchemistByte/frontend that referenced this pull request Jun 6, 2024
* [fix] Config readme

* wip: loading

* Delete yarn.lock

* refact: created shelter list view component in home page

* Fix: mobile UI has broken for mobile devices (SOS-RS#22)

*Fix: mobile UI has broken for mobile devices

* fix: remove chip as fixed as no wrap property

* chore: add shelter card clickable

* chore: remove Fragment component

* build: add set sm as max mobile dimension
          sm: 425px

* style: add responsive layout

* refactor: filter page

* fix: priority

* fix: filter parameters

* fix: fixed volunteer supply that had been fulfilled displaying on shelter page

* fix: improve readability

* feat: hidden filter button if filter is empty

* feat: cache in axios request

* fix: cache search params

* feat: cache clean on searchs

* wip: donation tags

* fix: clean search params

* Update README.md

[fix] Retirando a seção Funcionalidades e Backlog

* fix: donation tags / componentized the urgent supplies section

* fix: removed empty shelter tags empty row

* feat: full edit shelter and improved interface of pet friendly in shelter page

* refact: add live link and tech stack to readme

* Fix/develop bugs (SOS-RS#90)

* fix: cache bug (invalite cache on create/update operation)

* feat: added update many shelter supplies and admin rule

* Add license (SOS-RS#81)

Closes SOS-RS#65.

* fix: app port (SOS-RS#80)

* docs: added shadcn/ui reference

* fix for volunteer shelter title (SOS-RS#95)

* treat contact link as a proper link

* simplified href

* docs: add discord link on readme

* Normalizes search string in supply filter so it ignores accents (SOS-RS#125)

* normalized search string to ignore accents

* revert removed button

* add a copy to clipboard button to PIX and contact info (SOS-RS#124)

* add a copy to clipboard button to PIX and contact info

* use && operator instead of ternary

* Substitui onClick e useNavigate por <Link> para melhorar acessibilidade (SOS-RS#128)

* replaced navigate in favour of html link and added card hover

* fixed lint warnings

* fix: change shelter title style (SOS-RS#106)

Prevents badge misalignment on very large titles

* Add new feature and creating LoadingSkeleton (SOS-RS#115)

* Add new feature and creating LoadingSkeleton

* fix/add: add favicon and canonical metatag (SOS-RS#136)

* fix/add: add favicon and canonical metatag

* fix: fixed the path

* refactor: changed order of shelters to updated at instead priority sum (SOS-RS#137)

* Remove zod dependency (SOS-RS#143)

* replaced zod validation with yup

* removed zod dependency from package.json

* sort dependencies

* fixed validation schema variable name

* removed .shape() and added .strict()

* deleted unused file

* Added burger menu to home page (SOS-RS#149)

* Implemented Burger menu

* commented unused components

* feat: Update BurgerMenu to display user's name when logged in

* removed comments

* implemented login and logout button

* Feat/partners (SOS-RS#155)

* fix: menu bar with api partners

* fix: menu bar with api partners

* fix: remove unused session in burguer menu / removed import all icons from lucide and use link icon instead custom icons

* [BUG] Botão de Limpar Filtro sumindo após remover input de busca (SOS-RS#147)

* fix: clean filter button disappearing after removing search input manually

* fix: removing log

* Modificação nas telas de abrigos para adicionar cidades (SOS-RS#110)

* feat: filter shlters by cities

* feat: city on shelter forms, info and list

* feat: shelter city quantities on filter

* fix: wrong conditional

* fix: bug that removing city filter on home doesnt affect the filter

* feat: new address fields on shelter forms

* feat: useDebouncedValue, useViaCep

* feat: adapt useFetch for conditional paths and different response

* feat: address fields required and zipCode triggering viaCep

* feat: address fields required on update shelter

* feat: address fields on shelter details when theres no address field

* fix: suggestions(shorthand, optional chaining, separated zipCode, formatted city on list)

* feat: sticky footer on filter dialog

* fix: reset errors on zipcode search; copy filter change

* fix: timeoutId not assigned value; InfoRow copy can copy undefined

* Campo de quantidade adicionado quando adicionar suprimento a um abrigo (SOS-RS#46)

* feat(shelter-supply): input to add quantity supply

* feat(shelter-supply): show quantity supply at Shelter page and EditShelter page

* resolve conflict

---------

Co-authored-by: Lipe <lip3pacheco@gmail.com>

* feat: google analytics

* feat: edit shelter supply item quantity (SOS-RS#170)

* fix: send address field formatted (SOS-RS#171)

* feat: add a template to log bugs/defects (SOS-RS#168)

* feat: add a template to log bugs/defects

* Feat/privacy terms about us (SOS-RS#169)

* feat: privacy policy page

* feat: done about us page

* fix: removed redundant value check in info row component

* fix: ordering the list of items on the shelter edit page (SOS-RS#166)

* feat: Melhoria no esquema de cores dos chip's e ajuste de acessibilidade (SOS-RS#162)

* feat: new text colors with adjusted light var colors

* feat: change chip element tag to span and improve a11y

* feat: added update date information to shelter page (SOS-RS#159)

* Adding update date to shelter page

* (Aditional) Informing when no update date for shelter in main page

* feat: ajuste de textos de voluntários e doações (SOS-RS#129)

* hotfix: shelter list item broken div tag

* Feat/back navigation to home (SOS-RS#177)

* feat: added back navigation to home when click in header label

* Hotfix/merge bugs (SOS-RS#183)

* fix: shelter list item duplicate code after merge

* fix: order in filter select menu, filter supplies by category and useSupplies interface

* fix: update shelter validation schema and created useAuthRoles hook to reduce complexity of code

* fix: conflicts with master branch

* feat: dev and staging gh actions

* wip

* feat: done supporters page

* feat: added shelter category (SOS-RS#250)

Co-authored-by: José Fagundes <fagundesjg@outlook.com>

---------

Co-authored-by: helenapaixao <hp.helenapaixao@gmail.com>
Co-authored-by: José Fagundes <fagundesjg@outlook.com>
Co-authored-by: Luccas Specht <luccas.specht.dev@gmail.com>
Co-authored-by: MatheusDubin <matheusdsilveira@gmail.com>
Co-authored-by: danmqs <daniel.marques@sudema.pb.gov.br>
Co-authored-by: Giovanni Bassi <334958+giggio@users.noreply.github.com>
Co-authored-by: Felipe Monteiro <fm3209742@gmail.com>
Co-authored-by: André Ferraz <74271823+decofma@users.noreply.github.com>
Co-authored-by: Sombrio <sombrio@sombrasoft.dev>
Co-authored-by: Filipe Pacheco de Fraga <lip3pacheco@gmail.com>
Co-authored-by: Daniel Marques <dev.danielmarques@outlook.com>
Co-authored-by: Matheus Dubin Da Silveira <46721495+MatheusDubin@users.noreply.github.com>
Co-authored-by: Miguel Dalberto <65927539+migueldalberto@users.noreply.github.com>
Co-authored-by: Pablo A. Maximo <pabloadrianomc@gmail.com>
Co-authored-by: Marcos Nascimento <62677231+Marcos-Nacimento@users.noreply.github.com>
Co-authored-by: Gilmar José <99229360+g42puts@users.noreply.github.com>
Co-authored-by: Kelvin <kelvinbr11@gmail.com>
Co-authored-by: Jhonatan David <82552187+jotahdavid@users.noreply.github.com>
Co-authored-by: Alexander Scheibler <60936422+alexanderscheibler@users.noreply.github.com>
Co-authored-by: Giovani Andrino Carnaval <gi.carnaval@hotmail.com>
Co-authored-by: Thiago Oliveira <55795035+thdq@users.noreply.github.com>
Co-authored-by: Henrique Uhlmann Gobbi <hgugobbi@gmail.com>
Co-authored-by: Janderson Soares <7406406+jandersonsc@users.noreply.github.com>
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.

5 participants