Project

General

Profile

Actions

New Function #207

closed

[APP] 출발-도착 역 선택 시, 제한 적용

Added by Jisoo Choi 10 months ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
11/28/2023
Due date:
% Done:

0%

Estimated time:
Spent time:

Description

 

 

1. 기차역 출발-지하철역 도착 / 지하철역 출발-기차역 도착 제한

: 출발역의 '역 구분' 정보를 기반으로 도착역의 버튼 비활성화 처리를 부탁드립니다.

만약 버튼 비활성화 처리가 어렵다면 대체로 팝업 안내 및 처리 제한으로도 괜찮을 것 같습니다.

팝업 내용 : "*기차역과 지하철역 간 이동 처리는 불가합니다."

 

2. 출발역과 도착역의 이름이 같은 경우 제한

: 출발역 정보를 기반으로 도착역과 출발역의 이름이 아예 동일한 경우의 비활성화 처리를 부탁드립니다.

버튼 비활성화 처리가 어렵다면 이쪽도 대체로 팝업 안내 및 처리 제한으로 괜찮을 것 같습니다.

팝업 내용 : "*동일한 이름의 역 간 이동 처리는 불가합니다."

 

- 통념상 동일한 역이지만 '서울', '서울역'처럼 이름이 다르게 입력된 경우 제한 처리가 불가한데 이 부분은 데이터가 수정되어야 하는 것이기 때문에 무관합니다.

- 완전히 다른 역이지만 우연히 이름이 동일해서 제한 처리가 되는 경우, 이 부분도 거의 없도록 데이터가 생성되어 있지만 무관합니다.

 

 

 

 


Files

동일역_도착제한.png (3.93 MB) 동일역_도착제한.png Jisoo Choi, 11/28/2023 05:56 PM
기차역_지하철역_도착제한.png (3.92 MB) 기차역_지하철역_도착제한.png Jisoo Choi, 11/28/2023 05:56 PM
Screenshot_20240102_125001_ .jpg (0 Bytes) Screenshot_20240102_125001_ .jpg Jisoo Choi, 01/02/2024 02:07 PM
arrival_error.png (164 KB) arrival_error.png Deca Park, 01/02/2024 03:47 PM
Actions #1

Updated by Deca Park 9 months ago

  • Assignee changed from Deca Park to bryant bryant

[출발(depart)-도착(arrive)]

1.도착 (arrive) page
  1) stations displayed on map
    - display just arrive stations which is same with station_type of depart station (DB: st_station.station_type (subway/train))
  2) 도착(arrive) button
    a) if arrive station_name is same with depart station_name
      - alert msg. ("동일한 이름의 역 간 이동 처리는 불가합니다.")

Actions #2

Updated by bryant bryant 9 months ago

  • Status changed from New to Resolved
  • Assignee changed from bryant bryant to Deca Park
Actions #3

Updated by Deca Park 9 months ago

  • Assignee changed from Deca Park to Jisoo Choi
Actions #4

Updated by Jisoo Choi 9 months ago

 

 

1. 기차역 출발-지하철역 도착 / 지하철역 출발-기차역 도착 제한

-> 지하철역에서 출발한 후, 기차역에서 도착 처리를 하려고 하면 사진처럼 에러가 발생합니다.

 

1.의 에러가 발생한 후에는 아예 멀리 떨어진 역을 선택해도 도착 처리가 되지 않는 것 같습니다.

(버튼 UI는 활성화된 상태로 표시되는데, 클릭했을 때 아무런 반응이 없습니다) 

Actions #5

Updated by Deca Park 9 months ago

[APP] 도착(arrival)

1.when arrival, error happens

  • refer to attach image and js error log

1 of 1 unhandled error

Unhandled Runtime Error
SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON

Source
lib/hooks/CommonMutationHook.ts (53:49) @ json

  51 | .catch(async (error) => {
  52 |   console.error(error);
> 53 |   const errorJson = await error.response.json();
     |                                         ^
  54 |   if (!options?.hiddenErrorAlert)
  55 |     alert({
  56 |       message: errorJson.message,

Actions #6

Updated by Deca Park 9 months ago

  • Status changed from Feedback to Resolved
  • Assignee changed from bryant bryant to Jisoo Choi
Actions #7

Updated by Jisoo Choi 9 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF