• Ryan Groch's avatar
    Show file path in refactor button tooltip (#2511) · 955e587c
    Ryan Groch 提交于
    Closes #1272.
    
    Currently, the refactor suggestion button doesn't show the full path of
    the file that it's going to refactor. This PR adds the file path in the
    tooltip so that the user can see the path if they hover over the button.
    
    I also took the liberty to make the button slightly wider by 20px. This
    means that the button will typically show ~2-4 more characters than it
    does currently, which I think makes it a bit easier at a glance to infer
    which file the AI will refactor without needing to hover. For example,
    if the suggestion is to refactor `src/components/big-file.tsx`, this
    might make the difference of having the button show "Refactor
    components/big-fil..." instead of "Refactor components/big...".
    <!-- devin-review-badge-begin -->
    
    ---
    
    <a href="https://app.devin.ai/review/dyad-sh/dyad/pull/2511"
    target="_blank">
      <picture>
    <source media="(prefers-color-scheme: dark)"
    srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1">
    <img
    src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1"
    alt="Open with Devin">
      </picture>
    </a>
    <!-- devin-review-badge-end -->
    
    
    <!-- This is an auto-generated description by cubic. -->
    ---
    ## Summary by cubic
    Added the full file path to the refactor button tooltip for clarity.
    Widened the button from 180px to 200px to show a few more characters in
    the label.
    
    <sup>Written for commit c8824c43fa66506ba6ced69b0c6675c4978ecaf9.
    Summary will update on new commits.</sup>
    
    <!-- End of auto-generated description by cubic. -->
    955e587c
名称
最后提交
最后更新
..
__tests__ 正在载入提交数据...
app 正在载入提交数据...
atoms 正在载入提交数据...
client_logic 正在载入提交数据...
components 正在载入提交数据...
constants 正在载入提交数据...
contexts 正在载入提交数据...
db 正在载入提交数据...
hooks 正在载入提交数据...
ipc 正在载入提交数据...
lib 正在载入提交数据...
main 正在载入提交数据...
neon_admin 正在载入提交数据...
pages 正在载入提交数据...
paths 正在载入提交数据...
pro 正在载入提交数据...
prompts 正在载入提交数据...
routes 正在载入提交数据...
shared 正在载入提交数据...
store 正在载入提交数据...
styles 正在载入提交数据...
supabase_admin 正在载入提交数据...
utils 正在载入提交数据...
backup_manager.ts 正在载入提交数据...
main.ts 正在载入提交数据...
preload.ts 正在载入提交数据...
renderer.tsx 正在载入提交数据...
router.ts 正在载入提交数据...