Currently, the page name order is title attribute > first heading’s title > file name.
There’s a :page-name-order option, if you prefer to use the file name as the page title instead of the first heading’s title, add :page-name-order "file " to the file logseq/config.edn , and then re-index your graph.